diff --git a/src/main.c b/src/main.c --- a/src/main.c +++ b/src/main.c @@ -88,6 +88,7 @@ int main(void) dma_init(); adc_init(); i2c_init(); + gps_init(); // Disable ICs HAL_GPIO_WritePin(OSC_NOTEN, 1); @@ -110,8 +111,6 @@ int main(void) HAL_Delay(100); -// MX_USART1_UART_Init(); - jtencode_init(); //gps_init(); @@ -139,7 +138,7 @@ int main(void) if(HAL_GetTick() - led_timer > 100) { - HAL_GPIO_TogglePin(LED_BLUE); +// HAL_GPIO_TogglePin(LED_BLUE); led_timer = HAL_GetTick(); } if(HAL_GetTick() - last_gps > 3000) @@ -150,7 +149,6 @@ int main(void) enter_sleep(); } - } @@ -163,6 +161,7 @@ void enter_sleep(void) //HAL_ResumeTick(); } + void enter_deepsleep(void) { // Request to enter STOP mode with regulator in low power mode @@ -172,7 +171,6 @@ void enter_deepsleep(void) } - // Initialize system clocks void sysclk_init(void) {