diff Small_CPU/Inc/gpio.h @ 988:d9290c76b840 GasConsumption

OSTC4/5 joined code: In the previous version code differences between OSTC4/5 were identified using the ENABLE_GPIO_V2 compiler switch. In the new version this is done using the display version as indicator which OSTC model is in used. Since this is detected by Firmware the information is forwarded from there to the RTE. This causes a little delay in the GPIO initialization but this applies only to the cold start of the RTE which should not happen very often.
author ideenmodellierer
date Sun, 06 Apr 2025 21:02:17 +0200 (11 days ago)
parents e9c37071933b
children
line wrap: on
line diff
--- a/Small_CPU/Inc/gpio.h	Sat Mar 29 14:56:08 2025 +0100
+++ b/Small_CPU/Inc/gpio.h	Sun Apr 06 21:02:17 2025 +0200
@@ -38,7 +38,7 @@
 void GPIO_Power_MainCPU_ON(void);
 void GPIO_Power_MainCPU_OFF(void);
 
-#ifdef ENABLE_GPIO_V2
+
 void GPIO_LED_RED_OFF(void);
 void GPIO_LED_RED_ON(void);
 void GPIO_LED_GREEN_OFF(void);
@@ -50,11 +50,12 @@
 void GPIO_GPS_BCKP_OFF(void);
 void GPIO_GPS_BCKP_ON(void);
 
+uint8_t GPIO_GetVersion(void);
+void GPIO_Activate_V2(void);
 void GPIO_HandleBuzzer();
 #endif
 #ifdef __cplusplus
 }
-#endif
 #endif /* GPIO_H */