Mercurial > public > ostc4
comparison 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 (2 weeks ago) |
parents | e9c37071933b |
children |
comparison
equal
deleted
inserted
replaced
984:41136649b90d | 988:d9290c76b840 |
---|---|
36 void GPIO_GNSS_Init(); | 36 void GPIO_GNSS_Init(); |
37 void GPIO_Power_MainCPU_Init(void); | 37 void GPIO_Power_MainCPU_Init(void); |
38 void GPIO_Power_MainCPU_ON(void); | 38 void GPIO_Power_MainCPU_ON(void); |
39 void GPIO_Power_MainCPU_OFF(void); | 39 void GPIO_Power_MainCPU_OFF(void); |
40 | 40 |
41 #ifdef ENABLE_GPIO_V2 | 41 |
42 void GPIO_LED_RED_OFF(void); | 42 void GPIO_LED_RED_OFF(void); |
43 void GPIO_LED_RED_ON(void); | 43 void GPIO_LED_RED_ON(void); |
44 void GPIO_LED_GREEN_OFF(void); | 44 void GPIO_LED_GREEN_OFF(void); |
45 void GPIO_LED_GREEN_ON(void); | 45 void GPIO_LED_GREEN_ON(void); |
46 void GPIO_VIBRATION_OFF(void); | 46 void GPIO_VIBRATION_OFF(void); |
48 void GPIO_GPS_OFF(void); | 48 void GPIO_GPS_OFF(void); |
49 void GPIO_GPS_ON(void); | 49 void GPIO_GPS_ON(void); |
50 void GPIO_GPS_BCKP_OFF(void); | 50 void GPIO_GPS_BCKP_OFF(void); |
51 void GPIO_GPS_BCKP_ON(void); | 51 void GPIO_GPS_BCKP_ON(void); |
52 | 52 |
53 uint8_t GPIO_GetVersion(void); | |
54 void GPIO_Activate_V2(void); | |
53 void GPIO_HandleBuzzer(); | 55 void GPIO_HandleBuzzer(); |
54 #endif | 56 #endif |
55 #ifdef __cplusplus | 57 #ifdef __cplusplus |
56 } | 58 } |
57 #endif | |
58 #endif /* GPIO_H */ | 59 #endif /* GPIO_H */ |
59 | 60 |
60 | 61 |
61 | 62 |
62 /************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/ | 63 /************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/ |