comparison 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
comparison
equal deleted inserted replaced
1023:d268fc2b6052 1024:9fabad6436a2
181 181
182 void GPIO_Activate_V2(void) 182 void GPIO_Activate_V2(void)
183 { 183 {
184 if(GPIO_Version == 0) 184 if(GPIO_Version == 0)
185 { 185 {
186 GPIO_Version = 1; 186 GPIO_Version = 1;
187 GPIO_LEDs_VIBRATION_Init(); 187 }
188 188 }
189
190 void GPIO_Init_V2(void)
191 {
192 if(GPIO_Version == 1)
193 {
194 GPIO_LEDs_VIBRATION_Init();
189 #ifdef ENABLE_GNSS_INTERN 195 #ifdef ENABLE_GNSS_INTERN
190 GNSS_IO_init(); 196 GNSS_IO_init();
191 GPIO_GPS_ON(); 197 GPIO_GPS_ON();
192 GPIO_GPS_BCKP_ON(); 198 GPIO_GPS_BCKP_ON();
193 MX_USART6_UART_Init(); 199 MX_USART6_UART_Init();
194 GNSS_Init(&GNSS_Handle, &huart6); 200 GNSS_Init(&GNSS_Handle, &huart6);
195 #endif 201 #endif
196 } 202 }
197 } 203 }
198 /* Private functions ---------------------------------------------------------*/ 204 /* Private functions ---------------------------------------------------------*/
199 205