diff options
Diffstat (limited to 'lib/chibios/os/hal/boards/ST_NUCLEO64_L073RZ/board.h')
-rw-r--r-- | lib/chibios/os/hal/boards/ST_NUCLEO64_L073RZ/board.h | 971 |
1 files changed, 971 insertions, 0 deletions
diff --git a/lib/chibios/os/hal/boards/ST_NUCLEO64_L073RZ/board.h b/lib/chibios/os/hal/boards/ST_NUCLEO64_L073RZ/board.h new file mode 100644 index 000000000..84a62dd84 --- /dev/null +++ b/lib/chibios/os/hal/boards/ST_NUCLEO64_L073RZ/board.h | |||
@@ -0,0 +1,971 @@ | |||
1 | /* | ||
2 | ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio | ||
3 | |||
4 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | you may not use this file except in compliance with the License. | ||
6 | You may obtain a copy of the License at | ||
7 | |||
8 | http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | |||
10 | Unless required by applicable law or agreed to in writing, software | ||
11 | distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | See the License for the specific language governing permissions and | ||
14 | limitations under the License. | ||
15 | */ | ||
16 | |||
17 | /* | ||
18 | * This file has been automatically generated using ChibiStudio board | ||
19 | * generator plugin. Do not edit manually. | ||
20 | */ | ||
21 | |||
22 | #ifndef BOARD_H | ||
23 | #define BOARD_H | ||
24 | |||
25 | /*===========================================================================*/ | ||
26 | /* Driver constants. */ | ||
27 | /*===========================================================================*/ | ||
28 | |||
29 | /* | ||
30 | * Setup for STMicroelectronics STM32 Nucleo64-L073RZ board. | ||
31 | */ | ||
32 | |||
33 | /* | ||
34 | * Board identifier. | ||
35 | */ | ||
36 | #define BOARD_ST_NUCLEO64_L073RZ | ||
37 | #define BOARD_NAME "STMicroelectronics STM32 Nucleo64-L073RZ" | ||
38 | |||
39 | /* | ||
40 | * Board oscillators-related settings. | ||
41 | */ | ||
42 | #if !defined(STM32_LSECLK) | ||
43 | #define STM32_LSECLK 32768U | ||
44 | #endif | ||
45 | |||
46 | #define STM32_LSEDRV (3U << 11U) | ||
47 | |||
48 | #if !defined(STM32_HSECLK) | ||
49 | #define STM32_HSECLK 8000000U | ||
50 | #endif | ||
51 | |||
52 | #define STM32_HSE_BYPASS | ||
53 | |||
54 | /* | ||
55 | * MCU type as defined in the ST header. | ||
56 | */ | ||
57 | #define STM32L073xx | ||
58 | |||
59 | /* | ||
60 | * IO pins assignments. | ||
61 | */ | ||
62 | #define GPIOA_ARD_A0 0U | ||
63 | #define GPIOA_ACD1_IN0 0U | ||
64 | #define GPIOA_ARD_A1 1U | ||
65 | #define GPIOA_ACD1_IN1 1U | ||
66 | #define GPIOA_ARD_D1 2U | ||
67 | #define GPIOA_USART2_TX 2U | ||
68 | #define GPIOA_ARD_D0 3U | ||
69 | #define GPIOA_USART2_RX 3U | ||
70 | #define GPIOA_ARD_A2 4U | ||
71 | #define GPIOA_ACD1_IN4 4U | ||
72 | #define GPIOA_LED_GREEN 5U | ||
73 | #define GPIOA_ARD_D13 5U | ||
74 | #define GPIOA_ARD_D12 6U | ||
75 | #define GPIOA_ARD_D11 7U | ||
76 | #define GPIOA_ARD_D7 8U | ||
77 | #define GPIOA_ARD_D8 9U | ||
78 | #define GPIOA_ARD_D2 10U | ||
79 | #define GPIOA_PIN11 11U | ||
80 | #define GPIOA_PIN12 12U | ||
81 | #define GPIOA_SWDIO 13U | ||
82 | #define GPIOA_SWCLK 14U | ||
83 | #define GPIOA_PIN15 15U | ||
84 | |||
85 | #define GPIOB_ARD_A3 0U | ||
86 | #define GPIOB_ACD1_IN8 0U | ||
87 | #define GPIOB_PIN1 1U | ||
88 | #define GPIOB_PIN2 2U | ||
89 | #define GPIOB_SWO 3U | ||
90 | #define GPIOB_ARD_D3 3U | ||
91 | #define GPIOB_ARD_D5 4U | ||
92 | #define GPIOB_ARD_D4 5U | ||
93 | #define GPIOB_ARD_D10 6U | ||
94 | #define GPIOB_PIN7 7U | ||
95 | #define GPIOB_ARD_D15 8U | ||
96 | #define GPIOB_ARD_D14 9U | ||
97 | #define GPIOB_ARD_D6 10U | ||
98 | #define GPIOB_PIN11 11U | ||
99 | #define GPIOB_PIN12 12U | ||
100 | #define GPIOB_PIN13 13U | ||
101 | #define GPIOB_PIN14 14U | ||
102 | #define GPIOB_PIN15 15U | ||
103 | |||
104 | #define GPIOC_ARD_A5 0U | ||
105 | #define GPIOC_ACD1_IN10 0U | ||
106 | #define GPIOC_ARD_A4 1U | ||
107 | #define GPIOC_ACD1_IN11 1U | ||
108 | #define GPIOC_PIN2 2U | ||
109 | #define GPIOC_PIN3 3U | ||
110 | #define GPIOC_PIN4 4U | ||
111 | #define GPIOC_PIN5 5U | ||
112 | #define GPIOC_PIN6 6U | ||
113 | #define GPIOC_ARD_D9 7U | ||
114 | #define GPIOC_PIN8 8U | ||
115 | #define GPIOC_PIN9 9U | ||
116 | #define GPIOC_PIN10 10U | ||
117 | #define GPIOC_PIN11 11U | ||
118 | #define GPIOC_PIN12 12U | ||
119 | #define GPIOC_BUTTON 13U | ||
120 | #define GPIOC_OSC32_IN 14U | ||
121 | #define GPIOC_OSC32_OUT 15U | ||
122 | |||
123 | #define GPIOD_PIN0 0U | ||
124 | #define GPIOD_PIN1 1U | ||
125 | #define GPIOD_PIN2 2U | ||
126 | #define GPIOD_PIN3 3U | ||
127 | #define GPIOD_PIN4 4U | ||
128 | #define GPIOD_PIN5 5U | ||
129 | #define GPIOD_PIN6 6U | ||
130 | #define GPIOD_PIN7 7U | ||
131 | #define GPIOD_PIN8 8U | ||
132 | #define GPIOD_PIN9 9U | ||
133 | #define GPIOD_PIN10 10U | ||
134 | #define GPIOD_PIN11 11U | ||
135 | #define GPIOD_PIN12 12U | ||
136 | #define GPIOD_PIN13 13U | ||
137 | #define GPIOD_PIN14 14U | ||
138 | #define GPIOD_PIN15 15U | ||
139 | |||
140 | #define GPIOE_PIN0 0U | ||
141 | #define GPIOE_PIN1 1U | ||
142 | #define GPIOE_PIN2 2U | ||
143 | #define GPIOE_PIN3 3U | ||
144 | #define GPIOE_PIN4 4U | ||
145 | #define GPIOE_PIN5 5U | ||
146 | #define GPIOE_PIN6 6U | ||
147 | #define GPIOE_PIN7 7U | ||
148 | #define GPIOE_PIN8 8U | ||
149 | #define GPIOE_PIN9 9U | ||
150 | #define GPIOE_PIN10 10U | ||
151 | #define GPIOE_PIN11 11U | ||
152 | #define GPIOE_PIN12 12U | ||
153 | #define GPIOE_PIN13 13U | ||
154 | #define GPIOE_PIN14 14U | ||
155 | #define GPIOE_PIN15 15U | ||
156 | |||
157 | #define GPIOH_OSC_IN 0U | ||
158 | #define GPIOH_OSC_OUT 1U | ||
159 | #define GPIOH_PIN2 2U | ||
160 | #define GPIOH_PIN3 3U | ||
161 | #define GPIOH_PIN4 4U | ||
162 | #define GPIOH_PIN5 5U | ||
163 | #define GPIOH_PIN6 6U | ||
164 | #define GPIOH_PIN7 7U | ||
165 | #define GPIOH_PIN8 8U | ||
166 | #define GPIOH_PIN9 9U | ||
167 | #define GPIOH_PIN10 10U | ||
168 | #define GPIOH_PIN11 11U | ||
169 | #define GPIOH_PIN12 12U | ||
170 | #define GPIOH_PIN13 13U | ||
171 | #define GPIOH_PIN14 14U | ||
172 | #define GPIOH_PIN15 15U | ||
173 | |||
174 | /* | ||
175 | * IO lines assignments. | ||
176 | */ | ||
177 | #define LINE_ARD_A0 PAL_LINE(GPIOA, 0U) | ||
178 | #define LINE_ACD1_IN0 PAL_LINE(GPIOA, 0U) | ||
179 | #define LINE_ARD_A1 PAL_LINE(GPIOA, 1U) | ||
180 | #define LINE_ACD1_IN1 PAL_LINE(GPIOA, 1U) | ||
181 | #define LINE_ARD_D1 PAL_LINE(GPIOA, 2U) | ||
182 | #define LINE_USART2_TX PAL_LINE(GPIOA, 2U) | ||
183 | #define LINE_ARD_D0 PAL_LINE(GPIOA, 3U) | ||
184 | #define LINE_USART2_RX PAL_LINE(GPIOA, 3U) | ||
185 | #define LINE_ARD_A2 PAL_LINE(GPIOA, 4U) | ||
186 | #define LINE_ACD1_IN4 PAL_LINE(GPIOA, 4U) | ||
187 | #define LINE_LED_GREEN PAL_LINE(GPIOA, 5U) | ||
188 | #define LINE_ARD_D13 PAL_LINE(GPIOA, 5U) | ||
189 | #define LINE_ARD_D12 PAL_LINE(GPIOA, 6U) | ||
190 | #define LINE_ARD_D11 PAL_LINE(GPIOA, 7U) | ||
191 | #define LINE_ARD_D7 PAL_LINE(GPIOA, 8U) | ||
192 | #define LINE_ARD_D8 PAL_LINE(GPIOA, 9U) | ||
193 | #define LINE_ARD_D2 PAL_LINE(GPIOA, 10U) | ||
194 | #define LINE_SWDIO PAL_LINE(GPIOA, 13U) | ||
195 | #define LINE_SWCLK PAL_LINE(GPIOA, 14U) | ||
196 | #define LINE_ARD_A3 PAL_LINE(GPIOB, 0U) | ||
197 | #define LINE_ACD1_IN8 PAL_LINE(GPIOB, 0U) | ||
198 | #define LINE_SWO PAL_LINE(GPIOB, 3U) | ||
199 | #define LINE_ARD_D3 PAL_LINE(GPIOB, 3U) | ||
200 | #define LINE_ARD_D5 PAL_LINE(GPIOB, 4U) | ||
201 | #define LINE_ARD_D4 PAL_LINE(GPIOB, 5U) | ||
202 | #define LINE_ARD_D10 PAL_LINE(GPIOB, 6U) | ||
203 | #define LINE_ARD_D15 PAL_LINE(GPIOB, 8U) | ||
204 | #define LINE_ARD_D14 PAL_LINE(GPIOB, 9U) | ||
205 | #define LINE_ARD_D6 PAL_LINE(GPIOB, 10U) | ||
206 | #define LINE_ARD_A5 PAL_LINE(GPIOC, 0U) | ||
207 | #define LINE_ACD1_IN10 PAL_LINE(GPIOC, 0U) | ||
208 | #define LINE_ARD_A4 PAL_LINE(GPIOC, 1U) | ||
209 | #define LINE_ACD1_IN11 PAL_LINE(GPIOC, 1U) | ||
210 | #define LINE_ARD_D9 PAL_LINE(GPIOC, 7U) | ||
211 | #define LINE_BUTTON PAL_LINE(GPIOC, 13U) | ||
212 | #define LINE_OSC32_IN PAL_LINE(GPIOC, 14U) | ||
213 | #define LINE_OSC32_OUT PAL_LINE(GPIOC, 15U) | ||
214 | #define LINE_OSC_IN PAL_LINE(GPIOH, 0U) | ||
215 | #define LINE_OSC_OUT PAL_LINE(GPIOH, 1U) | ||
216 | |||
217 | /*===========================================================================*/ | ||
218 | /* Driver pre-compile time settings. */ | ||
219 | /*===========================================================================*/ | ||
220 | |||
221 | /*===========================================================================*/ | ||
222 | /* Derived constants and error checks. */ | ||
223 | /*===========================================================================*/ | ||
224 | |||
225 | /*===========================================================================*/ | ||
226 | /* Driver data structures and types. */ | ||
227 | /*===========================================================================*/ | ||
228 | |||
229 | /*===========================================================================*/ | ||
230 | /* Driver macros. */ | ||
231 | /*===========================================================================*/ | ||
232 | |||
233 | /* | ||
234 | * I/O ports initial setup, this configuration is established soon after reset | ||
235 | * in the initialization code. | ||
236 | * Please refer to the STM32 Reference Manual for details. | ||
237 | */ | ||
238 | #define PIN_MODE_INPUT(n) (0U << ((n) * 2U)) | ||
239 | #define PIN_MODE_OUTPUT(n) (1U << ((n) * 2U)) | ||
240 | #define PIN_MODE_ALTERNATE(n) (2U << ((n) * 2U)) | ||
241 | #define PIN_MODE_ANALOG(n) (3U << ((n) * 2U)) | ||
242 | #define PIN_ODR_LOW(n) (0U << (n)) | ||
243 | #define PIN_ODR_HIGH(n) (1U << (n)) | ||
244 | #define PIN_OTYPE_PUSHPULL(n) (0U << (n)) | ||
245 | #define PIN_OTYPE_OPENDRAIN(n) (1U << (n)) | ||
246 | #define PIN_OSPEED_VERYLOW(n) (0U << ((n) * 2U)) | ||
247 | #define PIN_OSPEED_LOW(n) (1U << ((n) * 2U)) | ||
248 | #define PIN_OSPEED_MEDIUM(n) (2U << ((n) * 2U)) | ||
249 | #define PIN_OSPEED_HIGH(n) (3U << ((n) * 2U)) | ||
250 | #define PIN_PUPDR_FLOATING(n) (0U << ((n) * 2U)) | ||
251 | #define PIN_PUPDR_PULLUP(n) (1U << ((n) * 2U)) | ||
252 | #define PIN_PUPDR_PULLDOWN(n) (2U << ((n) * 2U)) | ||
253 | #define PIN_AFIO_AF(n, v) ((v) << (((n) % 8U) * 4U)) | ||
254 | |||
255 | /* | ||
256 | * GPIOA setup: | ||
257 | * | ||
258 | * PA0 - ARD_A0 ACD1_IN0 (input pullup). | ||
259 | * PA1 - ARD_A1 ACD1_IN1 (input pullup). | ||
260 | * PA2 - ARD_D1 USART2_TX (alternate 4). | ||
261 | * PA3 - ARD_D0 USART2_RX (alternate 4). | ||
262 | * PA4 - ARD_A2 ACD1_IN4 (input pullup). | ||
263 | * PA5 - LED_GREEN ARD_D13 (output pushpull maximum). | ||
264 | * PA6 - ARD_D12 (input pullup). | ||
265 | * PA7 - ARD_D11 (input pullup). | ||
266 | * PA8 - ARD_D7 (input pullup). | ||
267 | * PA9 - ARD_D8 (input pullup). | ||
268 | * PA10 - ARD_D2 (input pullup). | ||
269 | * PA11 - PIN11 (input pullup). | ||
270 | * PA12 - PIN12 (input pullup). | ||
271 | * PA13 - SWDIO (alternate 0). | ||
272 | * PA14 - SWCLK (alternate 0). | ||
273 | * PA15 - PIN15 (input pullup). | ||
274 | */ | ||
275 | #define VAL_GPIOA_MODER (PIN_MODE_INPUT(GPIOA_ARD_A0) | \ | ||
276 | PIN_MODE_INPUT(GPIOA_ARD_A1) | \ | ||
277 | PIN_MODE_ALTERNATE(GPIOA_ARD_D1) | \ | ||
278 | PIN_MODE_ALTERNATE(GPIOA_ARD_D0) | \ | ||
279 | PIN_MODE_INPUT(GPIOA_ARD_A2) | \ | ||
280 | PIN_MODE_OUTPUT(GPIOA_LED_GREEN) | \ | ||
281 | PIN_MODE_INPUT(GPIOA_ARD_D12) | \ | ||
282 | PIN_MODE_INPUT(GPIOA_ARD_D11) | \ | ||
283 | PIN_MODE_INPUT(GPIOA_ARD_D7) | \ | ||
284 | PIN_MODE_INPUT(GPIOA_ARD_D8) | \ | ||
285 | PIN_MODE_INPUT(GPIOA_ARD_D2) | \ | ||
286 | PIN_MODE_INPUT(GPIOA_PIN11) | \ | ||
287 | PIN_MODE_INPUT(GPIOA_PIN12) | \ | ||
288 | PIN_MODE_ALTERNATE(GPIOA_SWDIO) | \ | ||
289 | PIN_MODE_ALTERNATE(GPIOA_SWCLK) | \ | ||
290 | PIN_MODE_INPUT(GPIOA_PIN15)) | ||
291 | #define VAL_GPIOA_OTYPER (PIN_OTYPE_PUSHPULL(GPIOA_ARD_A0) | \ | ||
292 | PIN_OTYPE_PUSHPULL(GPIOA_ARD_A1) | \ | ||
293 | PIN_OTYPE_PUSHPULL(GPIOA_ARD_D1) | \ | ||
294 | PIN_OTYPE_PUSHPULL(GPIOA_ARD_D0) | \ | ||
295 | PIN_OTYPE_PUSHPULL(GPIOA_ARD_A2) | \ | ||
296 | PIN_OTYPE_PUSHPULL(GPIOA_LED_GREEN) | \ | ||
297 | PIN_OTYPE_PUSHPULL(GPIOA_ARD_D12) | \ | ||
298 | PIN_OTYPE_PUSHPULL(GPIOA_ARD_D11) | \ | ||
299 | PIN_OTYPE_PUSHPULL(GPIOA_ARD_D7) | \ | ||
300 | PIN_OTYPE_PUSHPULL(GPIOA_ARD_D8) | \ | ||
301 | PIN_OTYPE_PUSHPULL(GPIOA_ARD_D2) | \ | ||
302 | PIN_OTYPE_PUSHPULL(GPIOA_PIN11) | \ | ||
303 | PIN_OTYPE_PUSHPULL(GPIOA_PIN12) | \ | ||
304 | PIN_OTYPE_PUSHPULL(GPIOA_SWDIO) | \ | ||
305 | PIN_OTYPE_PUSHPULL(GPIOA_SWCLK) | \ | ||
306 | PIN_OTYPE_PUSHPULL(GPIOA_PIN15)) | ||
307 | #define VAL_GPIOA_OSPEEDR (PIN_OSPEED_HIGH(GPIOA_ARD_A0) | \ | ||
308 | PIN_OSPEED_HIGH(GPIOA_ARD_A1) | \ | ||
309 | PIN_OSPEED_MEDIUM(GPIOA_ARD_D1) | \ | ||
310 | PIN_OSPEED_MEDIUM(GPIOA_ARD_D0) | \ | ||
311 | PIN_OSPEED_HIGH(GPIOA_ARD_A2) | \ | ||
312 | PIN_OSPEED_HIGH(GPIOA_LED_GREEN) | \ | ||
313 | PIN_OSPEED_HIGH(GPIOA_ARD_D12) | \ | ||
314 | PIN_OSPEED_HIGH(GPIOA_ARD_D11) | \ | ||
315 | PIN_OSPEED_HIGH(GPIOA_ARD_D7) | \ | ||
316 | PIN_OSPEED_HIGH(GPIOA_ARD_D8) | \ | ||
317 | PIN_OSPEED_HIGH(GPIOA_ARD_D2) | \ | ||
318 | PIN_OSPEED_HIGH(GPIOA_PIN11) | \ | ||
319 | PIN_OSPEED_HIGH(GPIOA_PIN12) | \ | ||
320 | PIN_OSPEED_HIGH(GPIOA_SWDIO) | \ | ||
321 | PIN_OSPEED_HIGH(GPIOA_SWCLK) | \ | ||
322 | PIN_OSPEED_HIGH(GPIOA_PIN15)) | ||
323 | #define VAL_GPIOA_PUPDR (PIN_PUPDR_PULLUP(GPIOA_ARD_A0) | \ | ||
324 | PIN_PUPDR_PULLUP(GPIOA_ARD_A1) | \ | ||
325 | PIN_PUPDR_FLOATING(GPIOA_ARD_D1) | \ | ||
326 | PIN_PUPDR_FLOATING(GPIOA_ARD_D0) | \ | ||
327 | PIN_PUPDR_PULLUP(GPIOA_ARD_A2) | \ | ||
328 | PIN_PUPDR_FLOATING(GPIOA_LED_GREEN) | \ | ||
329 | PIN_PUPDR_PULLUP(GPIOA_ARD_D12) | \ | ||
330 | PIN_PUPDR_PULLUP(GPIOA_ARD_D11) | \ | ||
331 | PIN_PUPDR_PULLUP(GPIOA_ARD_D7) | \ | ||
332 | PIN_PUPDR_PULLUP(GPIOA_ARD_D8) | \ | ||
333 | PIN_PUPDR_PULLUP(GPIOA_ARD_D2) | \ | ||
334 | PIN_PUPDR_PULLUP(GPIOA_PIN11) | \ | ||
335 | PIN_PUPDR_PULLUP(GPIOA_PIN12) | \ | ||
336 | PIN_PUPDR_PULLUP(GPIOA_SWDIO) | \ | ||
337 | PIN_PUPDR_PULLDOWN(GPIOA_SWCLK) | \ | ||
338 | PIN_PUPDR_PULLUP(GPIOA_PIN15)) | ||
339 | #define VAL_GPIOA_ODR (PIN_ODR_HIGH(GPIOA_ARD_A0) | \ | ||
340 | PIN_ODR_HIGH(GPIOA_ARD_A1) | \ | ||
341 | PIN_ODR_HIGH(GPIOA_ARD_D1) | \ | ||
342 | PIN_ODR_HIGH(GPIOA_ARD_D0) | \ | ||
343 | PIN_ODR_HIGH(GPIOA_ARD_A2) | \ | ||
344 | PIN_ODR_LOW(GPIOA_LED_GREEN) | \ | ||
345 | PIN_ODR_HIGH(GPIOA_ARD_D12) | \ | ||
346 | PIN_ODR_HIGH(GPIOA_ARD_D11) | \ | ||
347 | PIN_ODR_HIGH(GPIOA_ARD_D7) | \ | ||
348 | PIN_ODR_HIGH(GPIOA_ARD_D8) | \ | ||
349 | PIN_ODR_HIGH(GPIOA_ARD_D2) | \ | ||
350 | PIN_ODR_HIGH(GPIOA_PIN11) | \ | ||
351 | PIN_ODR_HIGH(GPIOA_PIN12) | \ | ||
352 | PIN_ODR_HIGH(GPIOA_SWDIO) | \ | ||
353 | PIN_ODR_HIGH(GPIOA_SWCLK) | \ | ||
354 | PIN_ODR_HIGH(GPIOA_PIN15)) | ||
355 | #define VAL_GPIOA_AFRL (PIN_AFIO_AF(GPIOA_ARD_A0, 0U) | \ | ||
356 | PIN_AFIO_AF(GPIOA_ARD_A1, 0U) | \ | ||
357 | PIN_AFIO_AF(GPIOA_ARD_D1, 4U) | \ | ||
358 | PIN_AFIO_AF(GPIOA_ARD_D0, 4U) | \ | ||
359 | PIN_AFIO_AF(GPIOA_ARD_A2, 0U) | \ | ||
360 | PIN_AFIO_AF(GPIOA_LED_GREEN, 0U) | \ | ||
361 | PIN_AFIO_AF(GPIOA_ARD_D12, 0U) | \ | ||
362 | PIN_AFIO_AF(GPIOA_ARD_D11, 0U)) | ||
363 | #define VAL_GPIOA_AFRH (PIN_AFIO_AF(GPIOA_ARD_D7, 0U) | \ | ||
364 | PIN_AFIO_AF(GPIOA_ARD_D8, 0U) | \ | ||
365 | PIN_AFIO_AF(GPIOA_ARD_D2, 0U) | \ | ||
366 | PIN_AFIO_AF(GPIOA_PIN11, 0U) | \ | ||
367 | PIN_AFIO_AF(GPIOA_PIN12, 0U) | \ | ||
368 | PIN_AFIO_AF(GPIOA_SWDIO, 0U) | \ | ||
369 | PIN_AFIO_AF(GPIOA_SWCLK, 0U) | \ | ||
370 | PIN_AFIO_AF(GPIOA_PIN15, 0U)) | ||
371 | |||
372 | /* | ||
373 | * GPIOB setup: | ||
374 | * | ||
375 | * PB0 - ARD_A3 ACD1_IN8 (input pullup). | ||
376 | * PB1 - PIN1 (input pullup). | ||
377 | * PB2 - PIN2 (input pullup). | ||
378 | * PB3 - SWO ARD_D3 (alternate 0). | ||
379 | * PB4 - ARD_D5 (input pullup). | ||
380 | * PB5 - ARD_D4 (input pullup). | ||
381 | * PB6 - ARD_D10 (input pullup). | ||
382 | * PB7 - PIN7 (input pullup). | ||
383 | * PB8 - ARD_D15 (input pullup). | ||
384 | * PB9 - ARD_D14 (input pullup). | ||
385 | * PB10 - ARD_D6 (input pullup). | ||
386 | * PB11 - PIN11 (input pullup). | ||
387 | * PB12 - PIN12 (input pullup). | ||
388 | * PB13 - PIN13 (input pullup). | ||
389 | * PB14 - PIN14 (input pullup). | ||
390 | * PB15 - PIN15 (input pullup). | ||
391 | */ | ||
392 | #define VAL_GPIOB_MODER (PIN_MODE_INPUT(GPIOB_ARD_A3) | \ | ||
393 | PIN_MODE_INPUT(GPIOB_PIN1) | \ | ||
394 | PIN_MODE_INPUT(GPIOB_PIN2) | \ | ||
395 | PIN_MODE_ALTERNATE(GPIOB_SWO) | \ | ||
396 | PIN_MODE_INPUT(GPIOB_ARD_D5) | \ | ||
397 | PIN_MODE_INPUT(GPIOB_ARD_D4) | \ | ||
398 | PIN_MODE_INPUT(GPIOB_ARD_D10) | \ | ||
399 | PIN_MODE_INPUT(GPIOB_PIN7) | \ | ||
400 | PIN_MODE_INPUT(GPIOB_ARD_D15) | \ | ||
401 | PIN_MODE_INPUT(GPIOB_ARD_D14) | \ | ||
402 | PIN_MODE_INPUT(GPIOB_ARD_D6) | \ | ||
403 | PIN_MODE_INPUT(GPIOB_PIN11) | \ | ||
404 | PIN_MODE_INPUT(GPIOB_PIN12) | \ | ||
405 | PIN_MODE_INPUT(GPIOB_PIN13) | \ | ||
406 | PIN_MODE_INPUT(GPIOB_PIN14) | \ | ||
407 | PIN_MODE_INPUT(GPIOB_PIN15)) | ||
408 | #define VAL_GPIOB_OTYPER (PIN_OTYPE_PUSHPULL(GPIOB_ARD_A3) | \ | ||
409 | PIN_OTYPE_PUSHPULL(GPIOB_PIN1) | \ | ||
410 | PIN_OTYPE_PUSHPULL(GPIOB_PIN2) | \ | ||
411 | PIN_OTYPE_PUSHPULL(GPIOB_SWO) | \ | ||
412 | PIN_OTYPE_PUSHPULL(GPIOB_ARD_D5) | \ | ||
413 | PIN_OTYPE_PUSHPULL(GPIOB_ARD_D4) | \ | ||
414 | PIN_OTYPE_PUSHPULL(GPIOB_ARD_D10) | \ | ||
415 | PIN_OTYPE_PUSHPULL(GPIOB_PIN7) | \ | ||
416 | PIN_OTYPE_PUSHPULL(GPIOB_ARD_D15) | \ | ||
417 | PIN_OTYPE_PUSHPULL(GPIOB_ARD_D14) | \ | ||
418 | PIN_OTYPE_PUSHPULL(GPIOB_ARD_D6) | \ | ||
419 | PIN_OTYPE_PUSHPULL(GPIOB_PIN11) | \ | ||
420 | PIN_OTYPE_PUSHPULL(GPIOB_PIN12) | \ | ||
421 | PIN_OTYPE_PUSHPULL(GPIOB_PIN13) | \ | ||
422 | PIN_OTYPE_PUSHPULL(GPIOB_PIN14) | \ | ||
423 | PIN_OTYPE_PUSHPULL(GPIOB_PIN15)) | ||
424 | #define VAL_GPIOB_OSPEEDR (PIN_OSPEED_HIGH(GPIOB_ARD_A3) | \ | ||
425 | PIN_OSPEED_HIGH(GPIOB_PIN1) | \ | ||
426 | PIN_OSPEED_HIGH(GPIOB_PIN2) | \ | ||
427 | PIN_OSPEED_HIGH(GPIOB_SWO) | \ | ||
428 | PIN_OSPEED_HIGH(GPIOB_ARD_D5) | \ | ||
429 | PIN_OSPEED_HIGH(GPIOB_ARD_D4) | \ | ||
430 | PIN_OSPEED_HIGH(GPIOB_ARD_D10) | \ | ||
431 | PIN_OSPEED_HIGH(GPIOB_PIN7) | \ | ||
432 | PIN_OSPEED_HIGH(GPIOB_ARD_D15) | \ | ||
433 | PIN_OSPEED_HIGH(GPIOB_ARD_D14) | \ | ||
434 | PIN_OSPEED_HIGH(GPIOB_ARD_D6) | \ | ||
435 | PIN_OSPEED_HIGH(GPIOB_PIN11) | \ | ||
436 | PIN_OSPEED_HIGH(GPIOB_PIN12) | \ | ||
437 | PIN_OSPEED_HIGH(GPIOB_PIN13) | \ | ||
438 | PIN_OSPEED_HIGH(GPIOB_PIN14) | \ | ||
439 | PIN_OSPEED_HIGH(GPIOB_PIN15)) | ||
440 | #define VAL_GPIOB_PUPDR (PIN_PUPDR_PULLUP(GPIOB_ARD_A3) | \ | ||
441 | PIN_PUPDR_PULLUP(GPIOB_PIN1) | \ | ||
442 | PIN_PUPDR_PULLUP(GPIOB_PIN2) | \ | ||
443 | PIN_PUPDR_PULLUP(GPIOB_SWO) | \ | ||
444 | PIN_PUPDR_PULLUP(GPIOB_ARD_D5) | \ | ||
445 | PIN_PUPDR_PULLUP(GPIOB_ARD_D4) | \ | ||
446 | PIN_PUPDR_PULLUP(GPIOB_ARD_D10) | \ | ||
447 | PIN_PUPDR_PULLUP(GPIOB_PIN7) | \ | ||
448 | PIN_PUPDR_PULLUP(GPIOB_ARD_D15) | \ | ||
449 | PIN_PUPDR_PULLUP(GPIOB_ARD_D14) | \ | ||
450 | PIN_PUPDR_PULLUP(GPIOB_ARD_D6) | \ | ||
451 | PIN_PUPDR_PULLUP(GPIOB_PIN11) | \ | ||
452 | PIN_PUPDR_PULLUP(GPIOB_PIN12) | \ | ||
453 | PIN_PUPDR_PULLUP(GPIOB_PIN13) | \ | ||
454 | PIN_PUPDR_PULLUP(GPIOB_PIN14) | \ | ||
455 | PIN_PUPDR_PULLUP(GPIOB_PIN15)) | ||
456 | #define VAL_GPIOB_ODR (PIN_ODR_HIGH(GPIOB_ARD_A3) | \ | ||
457 | PIN_ODR_HIGH(GPIOB_PIN1) | \ | ||
458 | PIN_ODR_HIGH(GPIOB_PIN2) | \ | ||
459 | PIN_ODR_HIGH(GPIOB_SWO) | \ | ||
460 | PIN_ODR_HIGH(GPIOB_ARD_D5) | \ | ||
461 | PIN_ODR_HIGH(GPIOB_ARD_D4) | \ | ||
462 | PIN_ODR_HIGH(GPIOB_ARD_D10) | \ | ||
463 | PIN_ODR_HIGH(GPIOB_PIN7) | \ | ||
464 | PIN_ODR_HIGH(GPIOB_ARD_D15) | \ | ||
465 | PIN_ODR_HIGH(GPIOB_ARD_D14) | \ | ||
466 | PIN_ODR_HIGH(GPIOB_ARD_D6) | \ | ||
467 | PIN_ODR_HIGH(GPIOB_PIN11) | \ | ||
468 | PIN_ODR_HIGH(GPIOB_PIN12) | \ | ||
469 | PIN_ODR_HIGH(GPIOB_PIN13) | \ | ||
470 | PIN_ODR_HIGH(GPIOB_PIN14) | \ | ||
471 | PIN_ODR_HIGH(GPIOB_PIN15)) | ||
472 | #define VAL_GPIOB_AFRL (PIN_AFIO_AF(GPIOB_ARD_A3, 0U) | \ | ||
473 | PIN_AFIO_AF(GPIOB_PIN1, 0U) | \ | ||
474 | PIN_AFIO_AF(GPIOB_PIN2, 0U) | \ | ||
475 | PIN_AFIO_AF(GPIOB_SWO, 0U) | \ | ||
476 | PIN_AFIO_AF(GPIOB_ARD_D5, 0U) | \ | ||
477 | PIN_AFIO_AF(GPIOB_ARD_D4, 0U) | \ | ||
478 | PIN_AFIO_AF(GPIOB_ARD_D10, 0U) | \ | ||
479 | PIN_AFIO_AF(GPIOB_PIN7, 0U)) | ||
480 | #define VAL_GPIOB_AFRH (PIN_AFIO_AF(GPIOB_ARD_D15, 0U) | \ | ||
481 | PIN_AFIO_AF(GPIOB_ARD_D14, 0U) | \ | ||
482 | PIN_AFIO_AF(GPIOB_ARD_D6, 0U) | \ | ||
483 | PIN_AFIO_AF(GPIOB_PIN11, 0U) | \ | ||
484 | PIN_AFIO_AF(GPIOB_PIN12, 0U) | \ | ||
485 | PIN_AFIO_AF(GPIOB_PIN13, 0U) | \ | ||
486 | PIN_AFIO_AF(GPIOB_PIN14, 0U) | \ | ||
487 | PIN_AFIO_AF(GPIOB_PIN15, 0U)) | ||
488 | |||
489 | /* | ||
490 | * GPIOC setup: | ||
491 | * | ||
492 | * PC0 - ARD_A5 ACD1_IN10 (input pullup). | ||
493 | * PC1 - ARD_A4 ACD1_IN11 (input pullup). | ||
494 | * PC2 - PIN2 (input pullup). | ||
495 | * PC3 - PIN3 (input pullup). | ||
496 | * PC4 - PIN4 (input pullup). | ||
497 | * PC5 - PIN5 (input pullup). | ||
498 | * PC6 - PIN6 (input pullup). | ||
499 | * PC7 - ARD_D9 (input pullup). | ||
500 | * PC8 - PIN8 (input pullup). | ||
501 | * PC9 - PIN9 (input pullup). | ||
502 | * PC10 - PIN10 (input pullup). | ||
503 | * PC11 - PIN11 (input pullup). | ||
504 | * PC12 - PIN12 (input pullup). | ||
505 | * PC13 - BUTTON (input floating). | ||
506 | * PC14 - OSC32_IN (input floating). | ||
507 | * PC15 - OSC32_OUT (input floating). | ||
508 | */ | ||
509 | #define VAL_GPIOC_MODER (PIN_MODE_INPUT(GPIOC_ARD_A5) | \ | ||
510 | PIN_MODE_INPUT(GPIOC_ARD_A4) | \ | ||
511 | PIN_MODE_INPUT(GPIOC_PIN2) | \ | ||
512 | PIN_MODE_INPUT(GPIOC_PIN3) | \ | ||
513 | PIN_MODE_INPUT(GPIOC_PIN4) | \ | ||
514 | PIN_MODE_INPUT(GPIOC_PIN5) | \ | ||
515 | PIN_MODE_INPUT(GPIOC_PIN6) | \ | ||
516 | PIN_MODE_INPUT(GPIOC_ARD_D9) | \ | ||
517 | PIN_MODE_INPUT(GPIOC_PIN8) | \ | ||
518 | PIN_MODE_INPUT(GPIOC_PIN9) | \ | ||
519 | PIN_MODE_INPUT(GPIOC_PIN10) | \ | ||
520 | PIN_MODE_INPUT(GPIOC_PIN11) | \ | ||
521 | PIN_MODE_INPUT(GPIOC_PIN12) | \ | ||
522 | PIN_MODE_INPUT(GPIOC_BUTTON) | \ | ||
523 | PIN_MODE_INPUT(GPIOC_OSC32_IN) | \ | ||
524 | PIN_MODE_INPUT(GPIOC_OSC32_OUT)) | ||
525 | #define VAL_GPIOC_OTYPER (PIN_OTYPE_PUSHPULL(GPIOC_ARD_A5) | \ | ||
526 | PIN_OTYPE_PUSHPULL(GPIOC_ARD_A4) | \ | ||
527 | PIN_OTYPE_PUSHPULL(GPIOC_PIN2) | \ | ||
528 | PIN_OTYPE_PUSHPULL(GPIOC_PIN3) | \ | ||
529 | PIN_OTYPE_PUSHPULL(GPIOC_PIN4) | \ | ||
530 | PIN_OTYPE_PUSHPULL(GPIOC_PIN5) | \ | ||
531 | PIN_OTYPE_PUSHPULL(GPIOC_PIN6) | \ | ||
532 | PIN_OTYPE_PUSHPULL(GPIOC_ARD_D9) | \ | ||
533 | PIN_OTYPE_PUSHPULL(GPIOC_PIN8) | \ | ||
534 | PIN_OTYPE_PUSHPULL(GPIOC_PIN9) | \ | ||
535 | PIN_OTYPE_PUSHPULL(GPIOC_PIN10) | \ | ||
536 | PIN_OTYPE_PUSHPULL(GPIOC_PIN11) | \ | ||
537 | PIN_OTYPE_PUSHPULL(GPIOC_PIN12) | \ | ||
538 | PIN_OTYPE_PUSHPULL(GPIOC_BUTTON) | \ | ||
539 | PIN_OTYPE_PUSHPULL(GPIOC_OSC32_IN) | \ | ||
540 | PIN_OTYPE_PUSHPULL(GPIOC_OSC32_OUT)) | ||
541 | #define VAL_GPIOC_OSPEEDR (PIN_OSPEED_HIGH(GPIOC_ARD_A5) | \ | ||
542 | PIN_OSPEED_HIGH(GPIOC_ARD_A4) | \ | ||
543 | PIN_OSPEED_HIGH(GPIOC_PIN2) | \ | ||
544 | PIN_OSPEED_HIGH(GPIOC_PIN3) | \ | ||
545 | PIN_OSPEED_HIGH(GPIOC_PIN4) | \ | ||
546 | PIN_OSPEED_HIGH(GPIOC_PIN5) | \ | ||
547 | PIN_OSPEED_HIGH(GPIOC_PIN6) | \ | ||
548 | PIN_OSPEED_HIGH(GPIOC_ARD_D9) | \ | ||
549 | PIN_OSPEED_HIGH(GPIOC_PIN8) | \ | ||
550 | PIN_OSPEED_HIGH(GPIOC_PIN9) | \ | ||
551 | PIN_OSPEED_HIGH(GPIOC_PIN10) | \ | ||
552 | PIN_OSPEED_HIGH(GPIOC_PIN11) | \ | ||
553 | PIN_OSPEED_HIGH(GPIOC_PIN12) | \ | ||
554 | PIN_OSPEED_HIGH(GPIOC_BUTTON) | \ | ||
555 | PIN_OSPEED_HIGH(GPIOC_OSC32_IN) | \ | ||
556 | PIN_OSPEED_HIGH(GPIOC_OSC32_OUT)) | ||
557 | #define VAL_GPIOC_PUPDR (PIN_PUPDR_PULLUP(GPIOC_ARD_A5) | \ | ||
558 | PIN_PUPDR_PULLUP(GPIOC_ARD_A4) | \ | ||
559 | PIN_PUPDR_PULLUP(GPIOC_PIN2) | \ | ||
560 | PIN_PUPDR_PULLUP(GPIOC_PIN3) | \ | ||
561 | PIN_PUPDR_PULLUP(GPIOC_PIN4) | \ | ||
562 | PIN_PUPDR_PULLUP(GPIOC_PIN5) | \ | ||
563 | PIN_PUPDR_PULLUP(GPIOC_PIN6) | \ | ||
564 | PIN_PUPDR_PULLUP(GPIOC_ARD_D9) | \ | ||
565 | PIN_PUPDR_PULLUP(GPIOC_PIN8) | \ | ||
566 | PIN_PUPDR_PULLUP(GPIOC_PIN9) | \ | ||
567 | PIN_PUPDR_PULLUP(GPIOC_PIN10) | \ | ||
568 | PIN_PUPDR_PULLUP(GPIOC_PIN11) | \ | ||
569 | PIN_PUPDR_PULLUP(GPIOC_PIN12) | \ | ||
570 | PIN_PUPDR_FLOATING(GPIOC_BUTTON) | \ | ||
571 | PIN_PUPDR_FLOATING(GPIOC_OSC32_IN) | \ | ||
572 | PIN_PUPDR_FLOATING(GPIOC_OSC32_OUT)) | ||
573 | #define VAL_GPIOC_ODR (PIN_ODR_HIGH(GPIOC_ARD_A5) | \ | ||
574 | PIN_ODR_HIGH(GPIOC_ARD_A4) | \ | ||
575 | PIN_ODR_HIGH(GPIOC_PIN2) | \ | ||
576 | PIN_ODR_HIGH(GPIOC_PIN3) | \ | ||
577 | PIN_ODR_HIGH(GPIOC_PIN4) | \ | ||
578 | PIN_ODR_HIGH(GPIOC_PIN5) | \ | ||
579 | PIN_ODR_HIGH(GPIOC_PIN6) | \ | ||
580 | PIN_ODR_HIGH(GPIOC_ARD_D9) | \ | ||
581 | PIN_ODR_HIGH(GPIOC_PIN8) | \ | ||
582 | PIN_ODR_HIGH(GPIOC_PIN9) | \ | ||
583 | PIN_ODR_HIGH(GPIOC_PIN10) | \ | ||
584 | PIN_ODR_HIGH(GPIOC_PIN11) | \ | ||
585 | PIN_ODR_HIGH(GPIOC_PIN12) | \ | ||
586 | PIN_ODR_HIGH(GPIOC_BUTTON) | \ | ||
587 | PIN_ODR_HIGH(GPIOC_OSC32_IN) | \ | ||
588 | PIN_ODR_HIGH(GPIOC_OSC32_OUT)) | ||
589 | #define VAL_GPIOC_AFRL (PIN_AFIO_AF(GPIOC_ARD_A5, 0U) | \ | ||
590 | PIN_AFIO_AF(GPIOC_ARD_A4, 0U) | \ | ||
591 | PIN_AFIO_AF(GPIOC_PIN2, 0U) | \ | ||
592 | PIN_AFIO_AF(GPIOC_PIN3, 0U) | \ | ||
593 | PIN_AFIO_AF(GPIOC_PIN4, 0U) | \ | ||
594 | PIN_AFIO_AF(GPIOC_PIN5, 0U) | \ | ||
595 | PIN_AFIO_AF(GPIOC_PIN6, 0U) | \ | ||
596 | PIN_AFIO_AF(GPIOC_ARD_D9, 0U)) | ||
597 | #define VAL_GPIOC_AFRH (PIN_AFIO_AF(GPIOC_PIN8, 0U) | \ | ||
598 | PIN_AFIO_AF(GPIOC_PIN9, 0U) | \ | ||
599 | PIN_AFIO_AF(GPIOC_PIN10, 0U) | \ | ||
600 | PIN_AFIO_AF(GPIOC_PIN11, 0U) | \ | ||
601 | PIN_AFIO_AF(GPIOC_PIN12, 0U) | \ | ||
602 | PIN_AFIO_AF(GPIOC_BUTTON, 0U) | \ | ||
603 | PIN_AFIO_AF(GPIOC_OSC32_IN, 0U) | \ | ||
604 | PIN_AFIO_AF(GPIOC_OSC32_OUT, 0U)) | ||
605 | |||
606 | /* | ||
607 | * GPIOD setup: | ||
608 | * | ||
609 | * PD0 - PIN0 (input pullup). | ||
610 | * PD1 - PIN1 (input pullup). | ||
611 | * PD2 - PIN2 (input pullup). | ||
612 | * PD3 - PIN3 (input pullup). | ||
613 | * PD4 - PIN4 (input pullup). | ||
614 | * PD5 - PIN5 (input pullup). | ||
615 | * PD6 - PIN6 (input pullup). | ||
616 | * PD7 - PIN7 (input pullup). | ||
617 | * PD8 - PIN8 (input pullup). | ||
618 | * PD9 - PIN9 (input pullup). | ||
619 | * PD10 - PIN10 (input pullup). | ||
620 | * PD11 - PIN11 (input pullup). | ||
621 | * PD12 - PIN12 (input pullup). | ||
622 | * PD13 - PIN13 (input pullup). | ||
623 | * PD14 - PIN14 (input pullup). | ||
624 | * PD15 - PIN15 (input pullup). | ||
625 | */ | ||
626 | #define VAL_GPIOD_MODER (PIN_MODE_INPUT(GPIOD_PIN0) | \ | ||
627 | PIN_MODE_INPUT(GPIOD_PIN1) | \ | ||
628 | PIN_MODE_INPUT(GPIOD_PIN2) | \ | ||
629 | PIN_MODE_INPUT(GPIOD_PIN3) | \ | ||
630 | PIN_MODE_INPUT(GPIOD_PIN4) | \ | ||
631 | PIN_MODE_INPUT(GPIOD_PIN5) | \ | ||
632 | PIN_MODE_INPUT(GPIOD_PIN6) | \ | ||
633 | PIN_MODE_INPUT(GPIOD_PIN7) | \ | ||
634 | PIN_MODE_INPUT(GPIOD_PIN8) | \ | ||
635 | PIN_MODE_INPUT(GPIOD_PIN9) | \ | ||
636 | PIN_MODE_INPUT(GPIOD_PIN10) | \ | ||
637 | PIN_MODE_INPUT(GPIOD_PIN11) | \ | ||
638 | PIN_MODE_INPUT(GPIOD_PIN12) | \ | ||
639 | PIN_MODE_INPUT(GPIOD_PIN13) | \ | ||
640 | PIN_MODE_INPUT(GPIOD_PIN14) | \ | ||
641 | PIN_MODE_INPUT(GPIOD_PIN15)) | ||
642 | #define VAL_GPIOD_OTYPER (PIN_OTYPE_PUSHPULL(GPIOD_PIN0) | \ | ||
643 | PIN_OTYPE_PUSHPULL(GPIOD_PIN1) | \ | ||
644 | PIN_OTYPE_PUSHPULL(GPIOD_PIN2) | \ | ||
645 | PIN_OTYPE_PUSHPULL(GPIOD_PIN3) | \ | ||
646 | PIN_OTYPE_PUSHPULL(GPIOD_PIN4) | \ | ||
647 | PIN_OTYPE_PUSHPULL(GPIOD_PIN5) | \ | ||
648 | PIN_OTYPE_PUSHPULL(GPIOD_PIN6) | \ | ||
649 | PIN_OTYPE_PUSHPULL(GPIOD_PIN7) | \ | ||
650 | PIN_OTYPE_PUSHPULL(GPIOD_PIN8) | \ | ||
651 | PIN_OTYPE_PUSHPULL(GPIOD_PIN9) | \ | ||
652 | PIN_OTYPE_PUSHPULL(GPIOD_PIN10) | \ | ||
653 | PIN_OTYPE_PUSHPULL(GPIOD_PIN11) | \ | ||
654 | PIN_OTYPE_PUSHPULL(GPIOD_PIN12) | \ | ||
655 | PIN_OTYPE_PUSHPULL(GPIOD_PIN13) | \ | ||
656 | PIN_OTYPE_PUSHPULL(GPIOD_PIN14) | \ | ||
657 | PIN_OTYPE_PUSHPULL(GPIOD_PIN15)) | ||
658 | #define VAL_GPIOD_OSPEEDR (PIN_OSPEED_HIGH(GPIOD_PIN0) | \ | ||
659 | PIN_OSPEED_HIGH(GPIOD_PIN1) | \ | ||
660 | PIN_OSPEED_HIGH(GPIOD_PIN2) | \ | ||
661 | PIN_OSPEED_HIGH(GPIOD_PIN3) | \ | ||
662 | PIN_OSPEED_HIGH(GPIOD_PIN4) | \ | ||
663 | PIN_OSPEED_HIGH(GPIOD_PIN5) | \ | ||
664 | PIN_OSPEED_HIGH(GPIOD_PIN6) | \ | ||
665 | PIN_OSPEED_HIGH(GPIOD_PIN7) | \ | ||
666 | PIN_OSPEED_HIGH(GPIOD_PIN8) | \ | ||
667 | PIN_OSPEED_HIGH(GPIOD_PIN9) | \ | ||
668 | PIN_OSPEED_HIGH(GPIOD_PIN10) | \ | ||
669 | PIN_OSPEED_HIGH(GPIOD_PIN11) | \ | ||
670 | PIN_OSPEED_HIGH(GPIOD_PIN12) | \ | ||
671 | PIN_OSPEED_HIGH(GPIOD_PIN13) | \ | ||
672 | PIN_OSPEED_HIGH(GPIOD_PIN14) | \ | ||
673 | PIN_OSPEED_HIGH(GPIOD_PIN15)) | ||
674 | #define VAL_GPIOD_PUPDR (PIN_PUPDR_PULLUP(GPIOD_PIN0) | \ | ||
675 | PIN_PUPDR_PULLUP(GPIOD_PIN1) | \ | ||
676 | PIN_PUPDR_PULLUP(GPIOD_PIN2) | \ | ||
677 | PIN_PUPDR_PULLUP(GPIOD_PIN3) | \ | ||
678 | PIN_PUPDR_PULLUP(GPIOD_PIN4) | \ | ||
679 | PIN_PUPDR_PULLUP(GPIOD_PIN5) | \ | ||
680 | PIN_PUPDR_PULLUP(GPIOD_PIN6) | \ | ||
681 | PIN_PUPDR_PULLUP(GPIOD_PIN7) | \ | ||
682 | PIN_PUPDR_PULLUP(GPIOD_PIN8) | \ | ||
683 | PIN_PUPDR_PULLUP(GPIOD_PIN9) | \ | ||
684 | PIN_PUPDR_PULLUP(GPIOD_PIN10) | \ | ||
685 | PIN_PUPDR_PULLUP(GPIOD_PIN11) | \ | ||
686 | PIN_PUPDR_PULLUP(GPIOD_PIN12) | \ | ||
687 | PIN_PUPDR_PULLUP(GPIOD_PIN13) | \ | ||
688 | PIN_PUPDR_PULLUP(GPIOD_PIN14) | \ | ||
689 | PIN_PUPDR_PULLUP(GPIOD_PIN15)) | ||
690 | #define VAL_GPIOD_ODR (PIN_ODR_HIGH(GPIOD_PIN0) | \ | ||
691 | PIN_ODR_HIGH(GPIOD_PIN1) | \ | ||
692 | PIN_ODR_HIGH(GPIOD_PIN2) | \ | ||
693 | PIN_ODR_HIGH(GPIOD_PIN3) | \ | ||
694 | PIN_ODR_HIGH(GPIOD_PIN4) | \ | ||
695 | PIN_ODR_HIGH(GPIOD_PIN5) | \ | ||
696 | PIN_ODR_HIGH(GPIOD_PIN6) | \ | ||
697 | PIN_ODR_HIGH(GPIOD_PIN7) | \ | ||
698 | PIN_ODR_HIGH(GPIOD_PIN8) | \ | ||
699 | PIN_ODR_HIGH(GPIOD_PIN9) | \ | ||
700 | PIN_ODR_HIGH(GPIOD_PIN10) | \ | ||
701 | PIN_ODR_HIGH(GPIOD_PIN11) | \ | ||
702 | PIN_ODR_HIGH(GPIOD_PIN12) | \ | ||
703 | PIN_ODR_HIGH(GPIOD_PIN13) | \ | ||
704 | PIN_ODR_HIGH(GPIOD_PIN14) | \ | ||
705 | PIN_ODR_HIGH(GPIOD_PIN15)) | ||
706 | #define VAL_GPIOD_AFRL (PIN_AFIO_AF(GPIOD_PIN0, 0U) | \ | ||
707 | PIN_AFIO_AF(GPIOD_PIN1, 0U) | \ | ||
708 | PIN_AFIO_AF(GPIOD_PIN2, 0U) | \ | ||
709 | PIN_AFIO_AF(GPIOD_PIN3, 0U) | \ | ||
710 | PIN_AFIO_AF(GPIOD_PIN4, 0U) | \ | ||
711 | PIN_AFIO_AF(GPIOD_PIN5, 0U) | \ | ||
712 | PIN_AFIO_AF(GPIOD_PIN6, 0U) | \ | ||
713 | PIN_AFIO_AF(GPIOD_PIN7, 0U)) | ||
714 | #define VAL_GPIOD_AFRH (PIN_AFIO_AF(GPIOD_PIN8, 0U) | \ | ||
715 | PIN_AFIO_AF(GPIOD_PIN9, 0U) | \ | ||
716 | PIN_AFIO_AF(GPIOD_PIN10, 0U) | \ | ||
717 | PIN_AFIO_AF(GPIOD_PIN11, 0U) | \ | ||
718 | PIN_AFIO_AF(GPIOD_PIN12, 0U) | \ | ||
719 | PIN_AFIO_AF(GPIOD_PIN13, 0U) | \ | ||
720 | PIN_AFIO_AF(GPIOD_PIN14, 0U) | \ | ||
721 | PIN_AFIO_AF(GPIOD_PIN15, 0U)) | ||
722 | |||
723 | /* | ||
724 | * GPIOE setup: | ||
725 | * | ||
726 | * PE0 - PIN0 (input pullup). | ||
727 | * PE1 - PIN1 (input pullup). | ||
728 | * PE2 - PIN2 (input pullup). | ||
729 | * PE3 - PIN3 (input pullup). | ||
730 | * PE4 - PIN4 (input pullup). | ||
731 | * PE5 - PIN5 (input pullup). | ||
732 | * PE6 - PIN6 (input pullup). | ||
733 | * PE7 - PIN7 (input pullup). | ||
734 | * PE8 - PIN8 (input pullup). | ||
735 | * PE9 - PIN9 (input pullup). | ||
736 | * PE10 - PIN10 (input pullup). | ||
737 | * PE11 - PIN11 (input pullup). | ||
738 | * PE12 - PIN12 (input pullup). | ||
739 | * PE13 - PIN13 (input pullup). | ||
740 | * PE14 - PIN14 (input pullup). | ||
741 | * PE15 - PIN15 (input pullup). | ||
742 | */ | ||
743 | #define VAL_GPIOE_MODER (PIN_MODE_INPUT(GPIOE_PIN0) | \ | ||
744 | PIN_MODE_INPUT(GPIOE_PIN1) | \ | ||
745 | PIN_MODE_INPUT(GPIOE_PIN2) | \ | ||
746 | PIN_MODE_INPUT(GPIOE_PIN3) | \ | ||
747 | PIN_MODE_INPUT(GPIOE_PIN4) | \ | ||
748 | PIN_MODE_INPUT(GPIOE_PIN5) | \ | ||
749 | PIN_MODE_INPUT(GPIOE_PIN6) | \ | ||
750 | PIN_MODE_INPUT(GPIOE_PIN7) | \ | ||
751 | PIN_MODE_INPUT(GPIOE_PIN8) | \ | ||
752 | PIN_MODE_INPUT(GPIOE_PIN9) | \ | ||
753 | PIN_MODE_INPUT(GPIOE_PIN10) | \ | ||
754 | PIN_MODE_INPUT(GPIOE_PIN11) | \ | ||
755 | PIN_MODE_INPUT(GPIOE_PIN12) | \ | ||
756 | PIN_MODE_INPUT(GPIOE_PIN13) | \ | ||
757 | PIN_MODE_INPUT(GPIOE_PIN14) | \ | ||
758 | PIN_MODE_INPUT(GPIOE_PIN15)) | ||
759 | #define VAL_GPIOE_OTYPER (PIN_OTYPE_PUSHPULL(GPIOE_PIN0) | \ | ||
760 | PIN_OTYPE_PUSHPULL(GPIOE_PIN1) | \ | ||
761 | PIN_OTYPE_PUSHPULL(GPIOE_PIN2) | \ | ||
762 | PIN_OTYPE_PUSHPULL(GPIOE_PIN3) | \ | ||
763 | PIN_OTYPE_PUSHPULL(GPIOE_PIN4) | \ | ||
764 | PIN_OTYPE_PUSHPULL(GPIOE_PIN5) | \ | ||
765 | PIN_OTYPE_PUSHPULL(GPIOE_PIN6) | \ | ||
766 | PIN_OTYPE_PUSHPULL(GPIOE_PIN7) | \ | ||
767 | PIN_OTYPE_PUSHPULL(GPIOE_PIN8) | \ | ||
768 | PIN_OTYPE_PUSHPULL(GPIOE_PIN9) | \ | ||
769 | PIN_OTYPE_PUSHPULL(GPIOE_PIN10) | \ | ||
770 | PIN_OTYPE_PUSHPULL(GPIOE_PIN11) | \ | ||
771 | PIN_OTYPE_PUSHPULL(GPIOE_PIN12) | \ | ||
772 | PIN_OTYPE_PUSHPULL(GPIOE_PIN13) | \ | ||
773 | PIN_OTYPE_PUSHPULL(GPIOE_PIN14) | \ | ||
774 | PIN_OTYPE_PUSHPULL(GPIOE_PIN15)) | ||
775 | #define VAL_GPIOE_OSPEEDR (PIN_OSPEED_HIGH(GPIOE_PIN0) | \ | ||
776 | PIN_OSPEED_HIGH(GPIOE_PIN1) | \ | ||
777 | PIN_OSPEED_HIGH(GPIOE_PIN2) | \ | ||
778 | PIN_OSPEED_HIGH(GPIOE_PIN3) | \ | ||
779 | PIN_OSPEED_HIGH(GPIOE_PIN4) | \ | ||
780 | PIN_OSPEED_HIGH(GPIOE_PIN5) | \ | ||
781 | PIN_OSPEED_HIGH(GPIOE_PIN6) | \ | ||
782 | PIN_OSPEED_HIGH(GPIOE_PIN7) | \ | ||
783 | PIN_OSPEED_HIGH(GPIOE_PIN8) | \ | ||
784 | PIN_OSPEED_HIGH(GPIOE_PIN9) | \ | ||
785 | PIN_OSPEED_HIGH(GPIOE_PIN10) | \ | ||
786 | PIN_OSPEED_HIGH(GPIOE_PIN11) | \ | ||
787 | PIN_OSPEED_HIGH(GPIOE_PIN12) | \ | ||
788 | PIN_OSPEED_HIGH(GPIOE_PIN13) | \ | ||
789 | PIN_OSPEED_HIGH(GPIOE_PIN14) | \ | ||
790 | PIN_OSPEED_HIGH(GPIOE_PIN15)) | ||
791 | #define VAL_GPIOE_PUPDR (PIN_PUPDR_PULLUP(GPIOE_PIN0) | \ | ||
792 | PIN_PUPDR_PULLUP(GPIOE_PIN1) | \ | ||
793 | PIN_PUPDR_PULLUP(GPIOE_PIN2) | \ | ||
794 | PIN_PUPDR_PULLUP(GPIOE_PIN3) | \ | ||
795 | PIN_PUPDR_PULLUP(GPIOE_PIN4) | \ | ||
796 | PIN_PUPDR_PULLUP(GPIOE_PIN5) | \ | ||
797 | PIN_PUPDR_PULLUP(GPIOE_PIN6) | \ | ||
798 | PIN_PUPDR_PULLUP(GPIOE_PIN7) | \ | ||
799 | PIN_PUPDR_PULLUP(GPIOE_PIN8) | \ | ||
800 | PIN_PUPDR_PULLUP(GPIOE_PIN9) | \ | ||
801 | PIN_PUPDR_PULLUP(GPIOE_PIN10) | \ | ||
802 | PIN_PUPDR_PULLUP(GPIOE_PIN11) | \ | ||
803 | PIN_PUPDR_PULLUP(GPIOE_PIN12) | \ | ||
804 | PIN_PUPDR_PULLUP(GPIOE_PIN13) | \ | ||
805 | PIN_PUPDR_PULLUP(GPIOE_PIN14) | \ | ||
806 | PIN_PUPDR_PULLUP(GPIOE_PIN15)) | ||
807 | #define VAL_GPIOE_ODR (PIN_ODR_HIGH(GPIOE_PIN0) | \ | ||
808 | PIN_ODR_HIGH(GPIOE_PIN1) | \ | ||
809 | PIN_ODR_HIGH(GPIOE_PIN2) | \ | ||
810 | PIN_ODR_HIGH(GPIOE_PIN3) | \ | ||
811 | PIN_ODR_HIGH(GPIOE_PIN4) | \ | ||
812 | PIN_ODR_HIGH(GPIOE_PIN5) | \ | ||
813 | PIN_ODR_HIGH(GPIOE_PIN6) | \ | ||
814 | PIN_ODR_HIGH(GPIOE_PIN7) | \ | ||
815 | PIN_ODR_HIGH(GPIOE_PIN8) | \ | ||
816 | PIN_ODR_HIGH(GPIOE_PIN9) | \ | ||
817 | PIN_ODR_HIGH(GPIOE_PIN10) | \ | ||
818 | PIN_ODR_HIGH(GPIOE_PIN11) | \ | ||
819 | PIN_ODR_HIGH(GPIOE_PIN12) | \ | ||
820 | PIN_ODR_HIGH(GPIOE_PIN13) | \ | ||
821 | PIN_ODR_HIGH(GPIOE_PIN14) | \ | ||
822 | PIN_ODR_HIGH(GPIOE_PIN15)) | ||
823 | #define VAL_GPIOE_AFRL (PIN_AFIO_AF(GPIOE_PIN0, 0U) | \ | ||
824 | PIN_AFIO_AF(GPIOE_PIN1, 0U) | \ | ||
825 | PIN_AFIO_AF(GPIOE_PIN2, 0U) | \ | ||
826 | PIN_AFIO_AF(GPIOE_PIN3, 0U) | \ | ||
827 | PIN_AFIO_AF(GPIOE_PIN4, 0U) | \ | ||
828 | PIN_AFIO_AF(GPIOE_PIN5, 0U) | \ | ||
829 | PIN_AFIO_AF(GPIOE_PIN6, 0U) | \ | ||
830 | PIN_AFIO_AF(GPIOE_PIN7, 0U)) | ||
831 | #define VAL_GPIOE_AFRH (PIN_AFIO_AF(GPIOE_PIN8, 0U) | \ | ||
832 | PIN_AFIO_AF(GPIOE_PIN9, 0U) | \ | ||
833 | PIN_AFIO_AF(GPIOE_PIN10, 0U) | \ | ||
834 | PIN_AFIO_AF(GPIOE_PIN11, 0U) | \ | ||
835 | PIN_AFIO_AF(GPIOE_PIN12, 0U) | \ | ||
836 | PIN_AFIO_AF(GPIOE_PIN13, 0U) | \ | ||
837 | PIN_AFIO_AF(GPIOE_PIN14, 0U) | \ | ||
838 | PIN_AFIO_AF(GPIOE_PIN15, 0U)) | ||
839 | |||
840 | /* | ||
841 | * GPIOH setup: | ||
842 | * | ||
843 | * PH0 - OSC_IN (input floating). | ||
844 | * PH1 - OSC_OUT (input floating). | ||
845 | * PH2 - PIN2 (input pullup). | ||
846 | * PH3 - PIN3 (input pullup). | ||
847 | * PH4 - PIN4 (input pullup). | ||
848 | * PH5 - PIN5 (input pullup). | ||
849 | * PH6 - PIN6 (input pullup). | ||
850 | * PH7 - PIN7 (input pullup). | ||
851 | * PH8 - PIN8 (input pullup). | ||
852 | * PH9 - PIN9 (input pullup). | ||
853 | * PH10 - PIN10 (input pullup). | ||
854 | * PH11 - PIN11 (input pullup). | ||
855 | * PH12 - PIN12 (input pullup). | ||
856 | * PH13 - PIN13 (input pullup). | ||
857 | * PH14 - PIN14 (input pullup). | ||
858 | * PH15 - PIN15 (input pullup). | ||
859 | */ | ||
860 | #define VAL_GPIOH_MODER (PIN_MODE_INPUT(GPIOH_OSC_IN) | \ | ||
861 | PIN_MODE_INPUT(GPIOH_OSC_OUT) | \ | ||
862 | PIN_MODE_INPUT(GPIOH_PIN2) | \ | ||
863 | PIN_MODE_INPUT(GPIOH_PIN3) | \ | ||
864 | PIN_MODE_INPUT(GPIOH_PIN4) | \ | ||
865 | PIN_MODE_INPUT(GPIOH_PIN5) | \ | ||
866 | PIN_MODE_INPUT(GPIOH_PIN6) | \ | ||
867 | PIN_MODE_INPUT(GPIOH_PIN7) | \ | ||
868 | PIN_MODE_INPUT(GPIOH_PIN8) | \ | ||
869 | PIN_MODE_INPUT(GPIOH_PIN9) | \ | ||
870 | PIN_MODE_INPUT(GPIOH_PIN10) | \ | ||
871 | PIN_MODE_INPUT(GPIOH_PIN11) | \ | ||
872 | PIN_MODE_INPUT(GPIOH_PIN12) | \ | ||
873 | PIN_MODE_INPUT(GPIOH_PIN13) | \ | ||
874 | PIN_MODE_INPUT(GPIOH_PIN14) | \ | ||
875 | PIN_MODE_INPUT(GPIOH_PIN15)) | ||
876 | #define VAL_GPIOH_OTYPER (PIN_OTYPE_PUSHPULL(GPIOH_OSC_IN) | \ | ||
877 | PIN_OTYPE_PUSHPULL(GPIOH_OSC_OUT) | \ | ||
878 | PIN_OTYPE_PUSHPULL(GPIOH_PIN2) | \ | ||
879 | PIN_OTYPE_PUSHPULL(GPIOH_PIN3) | \ | ||
880 | PIN_OTYPE_PUSHPULL(GPIOH_PIN4) | \ | ||
881 | PIN_OTYPE_PUSHPULL(GPIOH_PIN5) | \ | ||
882 | PIN_OTYPE_PUSHPULL(GPIOH_PIN6) | \ | ||
883 | PIN_OTYPE_PUSHPULL(GPIOH_PIN7) | \ | ||
884 | PIN_OTYPE_PUSHPULL(GPIOH_PIN8) | \ | ||
885 | PIN_OTYPE_PUSHPULL(GPIOH_PIN9) | \ | ||
886 | PIN_OTYPE_PUSHPULL(GPIOH_PIN10) | \ | ||
887 | PIN_OTYPE_PUSHPULL(GPIOH_PIN11) | \ | ||
888 | PIN_OTYPE_PUSHPULL(GPIOH_PIN12) | \ | ||
889 | PIN_OTYPE_PUSHPULL(GPIOH_PIN13) | \ | ||
890 | PIN_OTYPE_PUSHPULL(GPIOH_PIN14) | \ | ||
891 | PIN_OTYPE_PUSHPULL(GPIOH_PIN15)) | ||
892 | #define VAL_GPIOH_OSPEEDR (PIN_OSPEED_HIGH(GPIOH_OSC_IN) | \ | ||
893 | PIN_OSPEED_HIGH(GPIOH_OSC_OUT) | \ | ||
894 | PIN_OSPEED_HIGH(GPIOH_PIN2) | \ | ||
895 | PIN_OSPEED_HIGH(GPIOH_PIN3) | \ | ||
896 | PIN_OSPEED_HIGH(GPIOH_PIN4) | \ | ||
897 | PIN_OSPEED_HIGH(GPIOH_PIN5) | \ | ||
898 | PIN_OSPEED_HIGH(GPIOH_PIN6) | \ | ||
899 | PIN_OSPEED_HIGH(GPIOH_PIN7) | \ | ||
900 | PIN_OSPEED_HIGH(GPIOH_PIN8) | \ | ||
901 | PIN_OSPEED_HIGH(GPIOH_PIN9) | \ | ||
902 | PIN_OSPEED_HIGH(GPIOH_PIN10) | \ | ||
903 | PIN_OSPEED_HIGH(GPIOH_PIN11) | \ | ||
904 | PIN_OSPEED_HIGH(GPIOH_PIN12) | \ | ||
905 | PIN_OSPEED_HIGH(GPIOH_PIN13) | \ | ||
906 | PIN_OSPEED_HIGH(GPIOH_PIN14) | \ | ||
907 | PIN_OSPEED_HIGH(GPIOH_PIN15)) | ||
908 | #define VAL_GPIOH_PUPDR (PIN_PUPDR_FLOATING(GPIOH_OSC_IN) | \ | ||
909 | PIN_PUPDR_FLOATING(GPIOH_OSC_OUT) | \ | ||
910 | PIN_PUPDR_PULLUP(GPIOH_PIN2) | \ | ||
911 | PIN_PUPDR_PULLUP(GPIOH_PIN3) | \ | ||
912 | PIN_PUPDR_PULLUP(GPIOH_PIN4) | \ | ||
913 | PIN_PUPDR_PULLUP(GPIOH_PIN5) | \ | ||
914 | PIN_PUPDR_PULLUP(GPIOH_PIN6) | \ | ||
915 | PIN_PUPDR_PULLUP(GPIOH_PIN7) | \ | ||
916 | PIN_PUPDR_PULLUP(GPIOH_PIN8) | \ | ||
917 | PIN_PUPDR_PULLUP(GPIOH_PIN9) | \ | ||
918 | PIN_PUPDR_PULLUP(GPIOH_PIN10) | \ | ||
919 | PIN_PUPDR_PULLUP(GPIOH_PIN11) | \ | ||
920 | PIN_PUPDR_PULLUP(GPIOH_PIN12) | \ | ||
921 | PIN_PUPDR_PULLUP(GPIOH_PIN13) | \ | ||
922 | PIN_PUPDR_PULLUP(GPIOH_PIN14) | \ | ||
923 | PIN_PUPDR_PULLUP(GPIOH_PIN15)) | ||
924 | #define VAL_GPIOH_ODR (PIN_ODR_HIGH(GPIOH_OSC_IN) | \ | ||
925 | PIN_ODR_HIGH(GPIOH_OSC_OUT) | \ | ||
926 | PIN_ODR_HIGH(GPIOH_PIN2) | \ | ||
927 | PIN_ODR_HIGH(GPIOH_PIN3) | \ | ||
928 | PIN_ODR_HIGH(GPIOH_PIN4) | \ | ||
929 | PIN_ODR_HIGH(GPIOH_PIN5) | \ | ||
930 | PIN_ODR_HIGH(GPIOH_PIN6) | \ | ||
931 | PIN_ODR_HIGH(GPIOH_PIN7) | \ | ||
932 | PIN_ODR_HIGH(GPIOH_PIN8) | \ | ||
933 | PIN_ODR_HIGH(GPIOH_PIN9) | \ | ||
934 | PIN_ODR_HIGH(GPIOH_PIN10) | \ | ||
935 | PIN_ODR_HIGH(GPIOH_PIN11) | \ | ||
936 | PIN_ODR_HIGH(GPIOH_PIN12) | \ | ||
937 | PIN_ODR_HIGH(GPIOH_PIN13) | \ | ||
938 | PIN_ODR_HIGH(GPIOH_PIN14) | \ | ||
939 | PIN_ODR_HIGH(GPIOH_PIN15)) | ||
940 | #define VAL_GPIOH_AFRL (PIN_AFIO_AF(GPIOH_OSC_IN, 0U) | \ | ||
941 | PIN_AFIO_AF(GPIOH_OSC_OUT, 0U) | \ | ||
942 | PIN_AFIO_AF(GPIOH_PIN2, 0U) | \ | ||
943 | PIN_AFIO_AF(GPIOH_PIN3, 0U) | \ | ||
944 | PIN_AFIO_AF(GPIOH_PIN4, 0U) | \ | ||
945 | PIN_AFIO_AF(GPIOH_PIN5, 0U) | \ | ||
946 | PIN_AFIO_AF(GPIOH_PIN6, 0U) | \ | ||
947 | PIN_AFIO_AF(GPIOH_PIN7, 0U)) | ||
948 | #define VAL_GPIOH_AFRH (PIN_AFIO_AF(GPIOH_PIN8, 0U) | \ | ||
949 | PIN_AFIO_AF(GPIOH_PIN9, 0U) | \ | ||
950 | PIN_AFIO_AF(GPIOH_PIN10, 0U) | \ | ||
951 | PIN_AFIO_AF(GPIOH_PIN11, 0U) | \ | ||
952 | PIN_AFIO_AF(GPIOH_PIN12, 0U) | \ | ||
953 | PIN_AFIO_AF(GPIOH_PIN13, 0U) | \ | ||
954 | PIN_AFIO_AF(GPIOH_PIN14, 0U) | \ | ||
955 | PIN_AFIO_AF(GPIOH_PIN15, 0U)) | ||
956 | |||
957 | /*===========================================================================*/ | ||
958 | /* External declarations. */ | ||
959 | /*===========================================================================*/ | ||
960 | |||
961 | #if !defined(_FROM_ASM_) | ||
962 | #ifdef __cplusplus | ||
963 | extern "C" { | ||
964 | #endif | ||
965 | void boardInit(void); | ||
966 | #ifdef __cplusplus | ||
967 | } | ||
968 | #endif | ||
969 | #endif /* _FROM_ASM_ */ | ||
970 | |||
971 | #endif /* BOARD_H */ | ||