view Small_CPU/Inc/gpio.h @ 952:33e24b77cc6c Evo_2_23 tip

Bugfix ppo2 high/low check in OC mode: The fallback option which is used in CC mode was applied to the OC mode as well. As result the check could be deactivated depending on the fallback state, even if a OC dive is performed. now the check will always be performed if the dive mode is OC. Added vibration warning: The internal buzzer of the GPIO_V2 may now be used as additional warning notificator. It can be activated using the check button in the customer view menu. The vibration will be active while the warning message is displayed in the dive window. In case the diver is in the menu then the warning will be active for a shorter duration.
author Ideenmodellierer
date Sun, 29 Dec 2024 18:33:02 +0100
parents e9c37071933b
children
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>&copy; 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);

#ifdef ENABLE_GPIO_V2
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);

void GPIO_HandleBuzzer();
#endif
#ifdef __cplusplus
}
#endif
#endif /* GPIO_H */



/************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/