Mercurial > public > ostc4
view Small_CPU/Inc/gpio.h @ 1014:8c0134a287da GasConsumption
Add a log data event to the scrubber timer at the start of the dive and every time the timer (in minutes)
is decremented. The event contains a 12 bit signed integer for the remaining scrubber duration, and two
flags for scrubber warning (0x2000, <= 30 minutes remaining) and scrubber error (0x4000, <= 0 minutes remaining).
(mikeller)
| author | heinrichsweikamp |
|---|---|
| date | Sun, 11 May 2025 16:18:20 +0200 |
| parents | d9290c76b840 |
| children | 9fabad6436a2 |
line wrap: on
line source
/** ****************************************************************************** * @file gpio.h * @author heinrichs weikamp gmbh * @version V0.0.1 * @date 08-Dec-2024 * @brief new GPIO definitions (GPIO_V2) ****************************************************************************** * @attention * * <h2><center>© COPYRIGHT(c) 2024 heinrichs weikamp</center></h2> * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef GPIO_H #define GPIO_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "configuration.h" #define VIBRATION_CONTROL_PIN GPIO_PIN_3 /* PortA */ #define LED_CONTROL_PIN_RED GPIO_PIN_2 /* PortA */ #define LED_CONTROL_PIN_GREEN GPIO_PIN_1 /* PortA */ #define MAINCPU_CONTROL_PIN GPIO_PIN_0 /* PortC */ #define GPS_POWER_CONTROL_PIN GPIO_PIN_15 /* PortB */ #define GPS_BCKP_CONTROL_PIN GPIO_PIN_14 /* PortB */ void GPIO_LEDs_VIBRATION_Init(void); void GPIO_GNSS_Init(); void GPIO_Power_MainCPU_Init(void); void GPIO_Power_MainCPU_ON(void); void GPIO_Power_MainCPU_OFF(void); void GPIO_LED_RED_OFF(void); void GPIO_LED_RED_ON(void); void GPIO_LED_GREEN_OFF(void); void GPIO_LED_GREEN_ON(void); void GPIO_VIBRATION_OFF(void); void GPIO_VIBRATION_ON(void); void GPIO_GPS_OFF(void); void GPIO_GPS_ON(void); 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 /* GPIO_H */ /************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/
