Mercurial > public > ostc4
comparison Small_CPU/Src/gpio.c @ 1000:c386ae6635e4 GasConsumption
Improve GNSS operation:
during OSTC 4/5 code merge a problem with the wakeup of the gnss module showed up which has been fixed with the new verion. In addition a compile switch has been added which activated the synchronization of time between OSTC and gnss module. This my cause problems if the time is not accurate => deactivated at the moment.
| author | Ideenmodellierer |
|---|---|
| date | Mon, 28 Apr 2025 19:51:36 +0200 |
| parents | bad5561c0c59 |
| children | 9fabad6436a2 |
comparison
equal
deleted
inserted
replaced
| 999:ac25c35a3c97 | 1000:c386ae6635e4 |
|---|---|
| 179 return GPIO_Version; | 179 return GPIO_Version; |
| 180 } | 180 } |
| 181 | 181 |
| 182 void GPIO_Activate_V2(void) | 182 void GPIO_Activate_V2(void) |
| 183 { | 183 { |
| 184 if(GPIO_Version == 0) | |
| 185 { | |
| 184 GPIO_Version = 1; | 186 GPIO_Version = 1; |
| 185 GPIO_LEDs_VIBRATION_Init(); | 187 GPIO_LEDs_VIBRATION_Init(); |
| 186 | 188 |
| 187 #ifdef ENABLE_GNSS_INTERN | 189 #ifdef ENABLE_GNSS_INTERN |
| 188 GNSS_IO_init(); | 190 GNSS_IO_init(); |
| 189 GPIO_GPS_ON(); | 191 GPIO_GPS_ON(); |
| 190 GPIO_GPS_BCKP_ON(); | 192 GPIO_GPS_BCKP_ON(); |
| 191 MX_USART6_UART_Init(); | 193 MX_USART6_UART_Init(); |
| 192 GNSS_Init(&GNSS_Handle, &huart6); | 194 GNSS_Init(&GNSS_Handle, &huart6); |
| 193 #endif | 195 #endif |
| 196 } | |
| 194 } | 197 } |
| 195 /* Private functions ---------------------------------------------------------*/ | 198 /* Private functions ---------------------------------------------------------*/ |
| 196 | 199 |
| 197 | 200 |
| 198 /************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/ | 201 /************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/ |
