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