935
|
1 /**
|
|
2 ******************************************************************************
|
|
3 * @file gpio.h
|
|
4 * @author heinrichs weikamp gmbh
|
|
5 * @version V0.0.1
|
|
6 * @date 08-Dec-2024
|
|
7 * @brief new GPIO definitions (GPIO_V2)
|
|
8 ******************************************************************************
|
|
9 * @attention
|
|
10 *
|
|
11 * <h2><center>© COPYRIGHT(c) 2024 heinrichs weikamp</center></h2>
|
|
12 *
|
|
13 ******************************************************************************
|
|
14 */
|
|
15
|
|
16 /* Define to prevent recursive inclusion -------------------------------------*/
|
|
17 #ifndef GPIO_H
|
|
18 #define GPIO_H
|
|
19
|
|
20 #ifdef __cplusplus
|
|
21 extern "C" {
|
|
22 #endif
|
|
23
|
|
24 /* Includes ------------------------------------------------------------------*/
|
|
25
|
|
26 #include "configuration.h"
|
|
27
|
|
28 #define VIBRATION_CONTROL_PIN GPIO_PIN_3 /* PortA */
|
|
29 #define LED_CONTROL_PIN_RED GPIO_PIN_2 /* PortA */
|
|
30 #define LED_CONTROL_PIN_GREEN GPIO_PIN_1 /* PortA */
|
|
31 #define MAINCPU_CONTROL_PIN GPIO_PIN_0 /* PortC */
|
|
32 #define GPS_POWER_CONTROL_PIN GPIO_PIN_15 /* PortB */
|
|
33 #define GPS_BCKP_CONTROL_PIN GPIO_PIN_14 /* PortB */
|
|
34
|
|
35 void GPIO_LEDs_VIBRATION_Init(void);
|
938
|
36 void GPIO_GNSS_Init();
|
935
|
37 void GPIO_Power_MainCPU_Init(void);
|
|
38 void GPIO_Power_MainCPU_ON(void);
|
|
39 void GPIO_Power_MainCPU_OFF(void);
|
|
40
|
|
41 #ifdef ENABLE_GPIO_V2
|
|
42 void GPIO_LED_RED_OFF(void);
|
|
43 void GPIO_LED_RED_ON(void);
|
|
44 void GPIO_LED_GREEN_OFF(void);
|
|
45 void GPIO_LED_GREEN_ON(void);
|
|
46 void GPIO_VIBRATION_OFF(void);
|
|
47 void GPIO_VIBRATION_ON(void);
|
|
48 void GPIO_GPS_OFF(void);
|
|
49 void GPIO_GPS_ON(void);
|
|
50 void GPIO_GPS_BCKP_OFF(void);
|
|
51 void GPIO_GPS_BCKP_ON(void);
|
951
|
52
|
|
53 void GPIO_HandleBuzzer();
|
935
|
54 #endif
|
|
55 #ifdef __cplusplus
|
|
56 }
|
|
57 #endif
|
|
58 #endif /* GPIO_H */
|
|
59
|
|
60
|
|
61
|
|
62 /************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/
|