Mercurial > public > ostc4
diff Small_CPU/Src/gpio.c @ 1024:9fabad6436a2 GasConsumption
GPIO sleep cleanup:
During bringup of OSTC5 HW usage of new GPIO pins was introduced. To avoid not needed active GPIO pins during sleep some cleanup has been done (pins are only active if needed by new hardware, clocks deactivated during sleep etc.)
| author | Ideenmodellierer |
|---|---|
| date | Tue, 29 Jul 2025 17:15:35 +0200 |
| parents | c386ae6635e4 |
| children |
line wrap: on
line diff
--- a/Small_CPU/Src/gpio.c Sun Jul 13 17:20:45 2025 +0200 +++ b/Small_CPU/Src/gpio.c Tue Jul 29 17:15:35 2025 +0200 @@ -183,15 +183,21 @@ { if(GPIO_Version == 0) { - GPIO_Version = 1; - GPIO_LEDs_VIBRATION_Init(); + GPIO_Version = 1; + } +} +void GPIO_Init_V2(void) +{ + if(GPIO_Version == 1) + { + GPIO_LEDs_VIBRATION_Init(); #ifdef ENABLE_GNSS_INTERN - GNSS_IO_init(); - GPIO_GPS_ON(); - GPIO_GPS_BCKP_ON(); - MX_USART6_UART_Init(); - GNSS_Init(&GNSS_Handle, &huart6); + GNSS_IO_init(); + GPIO_GPS_ON(); + GPIO_GPS_BCKP_ON(); + MX_USART6_UART_Init(); + GNSS_Init(&GNSS_Handle, &huart6); #endif } }
