annotate Small_CPU/Src/gpio.c @ 955:9b29995d6619 Evo_2_23 tip

GNSS backup position: In the previous implementation a position had to be provided by the module in order to be stored in the log. This may cause a wrong position entry (default) in the log, for example if signal is lost while preparing for the dive in the water. To avoid this the last received position will be used for ~2 hours => Diver may take the dive side position before starting with the dive preparation. The last known position will be display in the GNSS position search window as well.
author Ideenmodellierer
date Wed, 01 Jan 2025 20:37:17 +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.c
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 Definitions for GPIO operations (GPIO_V2)
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
8 *
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
9 @verbatim
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
10 ==============================================================================
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
11 ##### How to use #####
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
12 ==============================================================================
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
13 @endverbatim
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
14 ******************************************************************************
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
15 * @attention
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
16 *
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
17 * <h2><center>&copy; COPYRIGHT(c) 2024 heinrichs weikamp</center></h2>
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
18 *
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
19 ******************************************************************************
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
20 */
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
21
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
22 /* Includes ------------------------------------------------------------------*/
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
23
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
24 #include "stm32f4xx_hal.h"
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
25 #include "gpio.h"
951
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
26 #include "data_exchange.h"
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
27 #include "scheduler.h"
935
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
28
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
29 /* Exported variables --------------------------------------------------------*/
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
30 /* Private variables ---------------------------------------------------------*/
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
31
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
32 /* Private types -------------------------------------------------------------*/
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
33
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
34 /* Private function prototypes -----------------------------------------------*/
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
35
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
36 /* Exported functions --------------------------------------------------------*/
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
37 void GPIO_LEDs_VIBRATION_Init(void) {
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
38 GPIO_InitTypeDef GPIO_InitStructure;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
39
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
40 __GPIOA_CLK_ENABLE();
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
41 GPIO_InitStructure.Pin = LED_CONTROL_PIN_RED;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
42 GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
43 GPIO_InitStructure.Pull = GPIO_PULLUP;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
44 GPIO_InitStructure.Speed = GPIO_SPEED_LOW;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
45 HAL_GPIO_Init( GPIOA, &GPIO_InitStructure);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
46 HAL_GPIO_WritePin( GPIOA, LED_CONTROL_PIN_RED, GPIO_PIN_SET);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
47
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
48 GPIO_InitStructure.Pin = LED_CONTROL_PIN_GREEN;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
49 GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
50 GPIO_InitStructure.Pull = GPIO_PULLUP;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
51 GPIO_InitStructure.Speed = GPIO_SPEED_LOW;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
52 HAL_GPIO_Init( GPIOA, &GPIO_InitStructure);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
53 HAL_GPIO_WritePin( GPIOA, LED_CONTROL_PIN_GREEN, GPIO_PIN_SET);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
54
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
55 GPIO_InitStructure.Pin = VIBRATION_CONTROL_PIN;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
56 GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
57 GPIO_InitStructure.Pull = GPIO_PULLDOWN;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
58 GPIO_InitStructure.Speed = GPIO_SPEED_LOW;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
59 HAL_GPIO_Init( GPIOA, &GPIO_InitStructure);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
60 HAL_GPIO_WritePin( GPIOA, VIBRATION_CONTROL_PIN, GPIO_PIN_RESET);
938
df87dbfc9c21 Update GPIO:
Ideenmodellierer
parents: 935
diff changeset
61 }
df87dbfc9c21 Update GPIO:
Ideenmodellierer
parents: 935
diff changeset
62
df87dbfc9c21 Update GPIO:
Ideenmodellierer
parents: 935
diff changeset
63 void GPIO_GNSS_Init()
df87dbfc9c21 Update GPIO:
Ideenmodellierer
parents: 935
diff changeset
64 {
df87dbfc9c21 Update GPIO:
Ideenmodellierer
parents: 935
diff changeset
65 GPIO_InitTypeDef GPIO_InitStructure;
935
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
66
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
67 __GPIOB_CLK_ENABLE();
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
68 GPIO_InitStructure.Pin = GPS_POWER_CONTROL_PIN;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
69 GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
70 GPIO_InitStructure.Pull = GPIO_PULLUP;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
71 GPIO_InitStructure.Speed = GPIO_SPEED_LOW;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
72 HAL_GPIO_Init( GPIOB, &GPIO_InitStructure);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
73 HAL_GPIO_WritePin( GPIOB, GPS_POWER_CONTROL_PIN, GPIO_PIN_SET);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
74
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
75 GPIO_InitStructure.Pin = GPS_BCKP_CONTROL_PIN;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
76 GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
77 GPIO_InitStructure.Pull = GPIO_PULLDOWN;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
78 GPIO_InitStructure.Speed = GPIO_SPEED_LOW;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
79 HAL_GPIO_Init( GPIOB, &GPIO_InitStructure);
947
96cf6c53c934 GNSS sleep mode:
Ideenmodellierer
parents: 938
diff changeset
80 HAL_GPIO_WritePin( GPIOB, GPS_BCKP_CONTROL_PIN, GPIO_PIN_SET);
935
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
81 }
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
82
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
83 void GPIO_Power_MainCPU_Init(void) {
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
84 GPIO_InitTypeDef GPIO_InitStructure;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
85 __GPIOC_CLK_ENABLE();
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
86 GPIO_InitStructure.Pin = MAINCPU_CONTROL_PIN;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
87 GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
88 GPIO_InitStructure.Pull = GPIO_PULLUP;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
89 GPIO_InitStructure.Speed = GPIO_SPEED_LOW;
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
90 HAL_GPIO_Init( GPIOC, &GPIO_InitStructure);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
91 HAL_GPIO_WritePin( GPIOC, MAINCPU_CONTROL_PIN, GPIO_PIN_RESET);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
92 }
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
93
951
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
94 #ifdef ENABLE_GPIO_V2
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
95 void GPIO_HandleBuzzer()
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
96 {
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
97 static uint32_t buzzerOnTick = 0;
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
98 static uint8_t buzzerWasOn = 0;
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
99
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
100 if(((global.dataSendToSlave.data.externalInterface_Cmd & EXT_INTERFACE_BUZZER_ON) != 0))
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
101 {
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
102 if(!buzzerWasOn)
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
103 {
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
104 buzzerOnTick = HAL_GetTick();
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
105 GPIO_VIBRATION_ON();
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
106 /* GPIO_LED_RED_ON(); */
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
107
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
108 if(time_elapsed_ms(buzzerOnTick,HAL_GetTick()) > EXT_INTERFACE_BUZZER_ON_TIME_MS)
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
109 {
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
110 GPIO_VIBRATION_OFF();
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
111 /* GPIO_LED_RED_OFF(); */
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
112 }
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
113 }
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
114 buzzerWasOn = 1;
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
115 }
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
116 else
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
117 {
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
118 if(buzzerWasOn)
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
119 {
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
120 buzzerOnTick = 0;
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
121 GPIO_VIBRATION_OFF();
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
122 /* GPIO_LED_RED_OFF(); */
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
123 }
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
124 buzzerWasOn = 0;
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
125 }
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
126 }
e9c37071933b Added vibration warning:
Ideenmodellierer
parents: 947
diff changeset
127 #endif
935
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
128 void GPIO_Power_MainCPU_ON(void) {
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
129 HAL_GPIO_WritePin( GPIOC, MAINCPU_CONTROL_PIN, GPIO_PIN_RESET);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
130 }
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
131
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
132 void GPIO_Power_MainCPU_OFF(void) {
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
133 HAL_GPIO_WritePin( GPIOC, MAINCPU_CONTROL_PIN, GPIO_PIN_SET);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
134 }
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
135
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
136 #ifdef ENABLE_GPIO_V2
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
137 void GPIO_LED_GREEN_ON(void) {
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
138 HAL_GPIO_WritePin( GPIOA, LED_CONTROL_PIN_GREEN, GPIO_PIN_RESET);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
139 }
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
140
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
141 void GPIO_LED_GREEN_OFF(void) {
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
142 HAL_GPIO_WritePin( GPIOA, LED_CONTROL_PIN_GREEN, GPIO_PIN_SET);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
143 }
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
144
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
145 void GPIO_LED_RED_ON(void) {
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
146 HAL_GPIO_WritePin( GPIOA, LED_CONTROL_PIN_RED, GPIO_PIN_RESET);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
147 }
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
148
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
149 void GPIO_LED_RED_OFF(void) {
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
150 HAL_GPIO_WritePin( GPIOA, LED_CONTROL_PIN_RED, GPIO_PIN_SET);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
151 }
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
152
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
153 void GPIO_VIBRATION_ON(void) {
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
154 HAL_GPIO_WritePin( GPIOA, VIBRATION_CONTROL_PIN, GPIO_PIN_SET);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
155 }
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
156
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
157 void GPIO_VIBRATION_OFF(void) {
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
158 HAL_GPIO_WritePin( GPIOA, VIBRATION_CONTROL_PIN, GPIO_PIN_RESET);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
159 }
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
160
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
161 void GPIO_GPS_ON(void) {
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
162 HAL_GPIO_WritePin( GPIOB, GPS_POWER_CONTROL_PIN, GPIO_PIN_RESET);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
163 }
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
164
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
165 void GPIO_GPS_OFF(void) {
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
166 HAL_GPIO_WritePin( GPIOB, GPS_POWER_CONTROL_PIN, GPIO_PIN_SET);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
167 }
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
168
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
169 void GPIO_GPS_BCKP_ON(void) {
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
170 HAL_GPIO_WritePin( GPIOB, GPS_BCKP_CONTROL_PIN, GPIO_PIN_SET);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
171 }
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
172
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
173 void GPIO_GPS_BCKP_OFF(void) {
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
174 HAL_GPIO_WritePin( GPIOB, GPS_BCKP_CONTROL_PIN, GPIO_PIN_RESET);
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
175 }
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
176 #endif
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
177
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
178 /* Private functions ---------------------------------------------------------*/
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
179
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
180
f2494a708f52 Added unit files for GPIO:
Ideenmodellierer
parents:
diff changeset
181 /************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/