Mercurial > public > ostc4
comparison Small_CPU/Inc/gpio.h @ 935:f2494a708f52 Evo_2_23
Added unit files for GPIO:
The new gpios need to be accessed from severall units. That's why the current, static implementation in the baseCPU did not fit. To enable global usage of the function they have been moved into new source / header file
author | Ideenmodellierer |
---|---|
date | Sun, 08 Dec 2024 21:59:22 +0100 |
parents | |
children | df87dbfc9c21 |
comparison
equal
deleted
inserted
replaced
934:406d498786e7 | 935:f2494a708f52 |
---|---|
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); | |
36 void GPIO_Power_MainCPU_Init(void); | |
37 void GPIO_Power_MainCPU_ON(void); | |
38 void GPIO_Power_MainCPU_OFF(void); | |
39 | |
40 #ifdef ENABLE_GPIO_V2 | |
41 void GPIO_LED_RED_OFF(void); | |
42 void GPIO_LED_RED_ON(void); | |
43 void GPIO_LED_GREEN_OFF(void); | |
44 void GPIO_LED_GREEN_ON(void); | |
45 void GPIO_VIBRATION_OFF(void); | |
46 void GPIO_VIBRATION_ON(void); | |
47 void GPIO_GPS_OFF(void); | |
48 void GPIO_GPS_ON(void); | |
49 void GPIO_GPS_BCKP_OFF(void); | |
50 void GPIO_GPS_BCKP_ON(void); | |
51 #endif | |
52 #ifdef __cplusplus | |
53 } | |
54 #endif | |
55 #endif /* GPIO_H */ | |
56 | |
57 | |
58 | |
59 /************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/ |