|
@@ -133,8 +133,9 @@ int main(void)
|
133
|
133
|
while (1)
|
134
|
134
|
{
|
135
|
135
|
// printf("Uart Start \r\n");
|
136
|
|
- while (TerminalQueue.data > 0 && UartTimerCnt > 1500) GetDataFromUartQueue(&hTerminal);
|
137
|
|
- while(FirmwareTimerCnt > 100000) Jump_App();
|
|
136
|
+ if(LedTimerCnt > 500){HAL_GPIO_TogglePin(BOOT_LED_GPIO_Port,GPIO_PIN_14);LedTimerCnt = 0;}
|
|
137
|
+ while (TerminalQueue.data > 0 && UartTimerCnt > 100) GetDataFromUartQueue(&hTerminal);
|
|
138
|
+ while(FirmwareTimerCnt > 3000) Jump_App();
|
138
|
139
|
|
139
|
140
|
//HAL_Delay(500);
|
140
|
141
|
/* USER CODE END WHILE */
|
|
@@ -289,10 +290,14 @@ static void MX_GPIO_Init(void)
|
289
|
290
|
|
290
|
291
|
/* GPIO Ports Clock Enable */
|
291
|
292
|
__HAL_RCC_GPIOA_CLK_ENABLE();
|
|
293
|
+ __HAL_RCC_GPIOG_CLK_ENABLE();
|
292
|
294
|
|
293
|
295
|
/*Configure GPIO pin Output Level */
|
294
|
296
|
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_15, GPIO_PIN_RESET);
|
295
|
297
|
|
|
298
|
+ /*Configure GPIO pin Output Level */
|
|
299
|
+ HAL_GPIO_WritePin(BOOT_LED_GPIO_Port, BOOT_LED_Pin, GPIO_PIN_RESET);
|
|
300
|
+
|
296
|
301
|
/*Configure GPIO pin : PA15 */
|
297
|
302
|
GPIO_InitStruct.Pin = GPIO_PIN_15;
|
298
|
303
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
|
@@ -300,6 +305,13 @@ static void MX_GPIO_Init(void)
|
300
|
305
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
301
|
306
|
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
|
302
|
307
|
|
|
308
|
+ /*Configure GPIO pin : BOOT_LED_Pin */
|
|
309
|
+ GPIO_InitStruct.Pin = BOOT_LED_Pin;
|
|
310
|
+ GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
|
311
|
+ GPIO_InitStruct.Pull = GPIO_NOPULL;
|
|
312
|
+ GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
|
313
|
+ HAL_GPIO_Init(BOOT_LED_GPIO_Port, &GPIO_InitStruct);
|
|
314
|
+
|
303
|
315
|
}
|
304
|
316
|
|
305
|
317
|
/* USER CODE BEGIN 4 */
|