annotate Small_CPU/Inc/gpio.h @ 939:f41974734268 Evo_2_23 tip

Resume UART com with gnss after sleep: Some changes were needed to get the communication up and running again after the gnns modul was set into power mode. The config needs to be safed at shutdown and the receiver needs to be wake up using dummy bytes before real communication may be resumed
author Ideenmodellierer
date Tue, 10 Dec 2024 21:03:04 +0100
parents df87dbfc9c21
children
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);
938
df87dbfc9c21 Update GPIO:
Ideenmodellierer
parents: 935
diff changeset
36 void GPIO_GNSS_Init();
935
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
37 void GPIO_Power_MainCPU_Init(void);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
38 void GPIO_Power_MainCPU_ON(void);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
39 void GPIO_Power_MainCPU_OFF(void);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
40
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
41 #ifdef ENABLE_GPIO_V2
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
42 void GPIO_LED_RED_OFF(void);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
43 void GPIO_LED_RED_ON(void);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
44 void GPIO_LED_GREEN_OFF(void);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
45 void GPIO_LED_GREEN_ON(void);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
46 void GPIO_VIBRATION_OFF(void);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
47 void GPIO_VIBRATION_ON(void);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
48 void GPIO_GPS_OFF(void);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
49 void GPIO_GPS_ON(void);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
50 void GPIO_GPS_BCKP_OFF(void);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
51 void GPIO_GPS_BCKP_ON(void);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
52 #endif
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
53 #ifdef __cplusplus
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
54 }
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
55 #endif
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
56 #endif /* GPIO_H */
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
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
60 /************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/