annotate Small_CPU/Inc/gpio.h @ 953:d565812061f4 Evo_2_23

Bugfix ascent graph in simulator: The ascent graph in simulator mode was not show if a depth < 5m was reached. Rootcause was a wrong source for current depth. This has be fixed now.
author Ideenmodellierer
date Wed, 01 Jan 2025 17:28:36 +0100
parents e9c37071933b
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);
951
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 938
diff changeset
52
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 938
diff changeset
53 void GPIO_HandleBuzzer();
935
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
54 #endif
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
55 #ifdef __cplusplus
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
56 }
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
57 #endif
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
58 #endif /* GPIO_H */
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
59
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
60
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
61
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
62 /************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/