Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
board.h
Go to the documentation of this file.
1 /*
2  ChibiOS - Copyright (C) 2006..2015 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 #pragma once
18 
19 /*
20  * Board identifier.
21  */
22 #define BOARD_TAWAKI
23 #define BOARD_NAME "Tawaki Autopilot"
24 
25 /*
26  * Board oscillators-related settings.
27  */
28 #if !defined(STM32_LSECLK)
29 #define STM32_LSECLK 32768U
30 #endif
31 
32 #define STM32_LSEDRV (3U << 3U)
33 
34 #if !defined(STM32_HSECLK)
35 #define STM32_HSECLK 16000000U
36 #endif
37 
38 /*
39  * Board voltages.
40  * Required for performance limits calculation.
41  */
42 #define STM32_VDD 300U
43 
44 /*
45  * MCU type as defined in the ST header.
46  */
47 #define STM32F777xx
48 
49 /*
50  * IO pins assignments.
51  */
52 #define PA00_AUX_A1 0U
53 #define PA01_AUX_A2 1U
54 #define PA02_AUX_A3 2U
55 #define PA03_AUX_B1 3U
56 #define PA04 4U
57 #define PA05 5U
58 #define PA06_AUX_A4 6U
59 #define PA07_AUX_B2 7U
60 #define PA08 8U
61 #define PA09_USB_VBUS 9U
62 #define PA10_LED2 10U
63 #define PA11_OTG_FS_DM 11U
64 #define PA12_OTG_FS_DP 12U
65 #define PA13_SWDIO 13U
66 #define PA14_SWCLK 14U
67 #define PA15_UART7_TX 15U
68 
69 #define PB00_AUX_B3 0U
70 #define PB01_AUX_B4 1U
71 #define PB02 2U
72 #define PB03_UART7_RX 3U
73 #define PB04 4U
74 #define PB05_DSHOT_RX 5U
75 #define PB06_SRVB1 6U
76 #define PB07_SRVB2 7U
77 #define PB08_SRVB3 8U
78 #define PB09_SRVB4 9U
79 #define PB10_I2C2_SCL_EXTERNAL 10U
80 #define PB11_I2C2_SDA_EXTERNAL 11U
81 #define PB12_SPI2_CS_EXTERNAL 12U
82 #define PB13 13U
83 #define PB14_SPI2_EXTERNAL_MISO 14U
84 #define PB15_SPI2_EXTERNAL_MOSI 15U
85 
86 #define PC00_VBAT_MEAS 0U
87 #define PC01 1U
88 #define PC02 2U
89 #define PC03 3U
90 #define PC04 4U
91 #define PC05 5U
92 #define PC06_RC2 6U
93 #define PC07_LED3 7U
94 #define PC08_SDMMC1_D0 8U
95 #define PC09_SDMMC1_D1 9U
96 #define PC10_SDMMC1_D2 10U
97 #define PC11_SDMMC1_D3 11U
98 #define PC12_SDMMC1_CK 12U
99 #define PC13_APSW 13U
100 #define PC14_OSC32_IN 14U
101 #define PC15_OSC32_OUT 15U
102 
103 #define PD00_CAN_RX 0U
104 #define PD01_CAN_TX 1U
105 #define PD02_SDMMC1_CMD 2U
106 #define PD03_SPI2_EXTERNAL_CLK 3U
107 #define PD04 4U
108 #define PD05_UART_TX2 5U
109 #define PD06_UART_RX2 6U
110 #define PD07 7U
111 #define PD08_UART_TX3 8U
112 #define PD09_UART_RX3 9U
113 #define PD10_LED4 10U
114 #define PD11 11U
115 #define PD12_I2C4_SCL_EXTERNAL 12U
116 #define PD13_I2C4_SDA_EXTERNAL 13U
117 #define PD14 14U
118 #define PD15_LED1 15U
119 
120 #define PE00_RC1 0U
121 #define PE01 1U
122 #define PE02_SPI4_INTERNAL_CLK 2U
123 #define PE03 3U
124 #define PE04_SPI4_CS_INTERNAL 4U
125 #define PE05_SPI4_INTERNAL_MISO 5U
126 #define PE06_SPI4_INTERNAL_MOSI 6U
127 #define PE07 7U
128 #define PE08 8U
129 #define PE09_SRVA1 9U
130 #define PE10 10U
131 #define PE11_SRVA2 11U
132 #define PE12 12U
133 #define PE13_SRVA3 13U
134 #define PE14_SRVA4 14U
135 #define PE15 15U
136 
137 #define PF00 0U
138 #define PF01 1U
139 #define PF02 2U
140 #define PF03 3U
141 #define PF04 4U
142 #define PF05 5U
143 #define PF06 6U
144 #define PF07 7U
145 #define PF08 8U
146 #define PF09 9U
147 #define PF10 10U
148 #define PF11 11U
149 #define PF12 12U
150 #define PF13 13U
151 #define PF14 14U
152 #define PF15 15U
153 
154 #define PG00 0U
155 #define PG01 1U
156 #define PG02 2U
157 #define PG03 3U
158 #define PG04 4U
159 #define PG05 5U
160 #define PG06 6U
161 #define PG07 7U
162 #define PG08 8U
163 #define PG09 9U
164 #define PG10 10U
165 #define PG11 11U
166 #define PG12 12U
167 #define PG13 13U
168 #define PG14 14U
169 #define PG15 15U
170 
171 #define PH00_OSC_IN 0U
172 #define PH01_OSC_OUT 1U
173 #define PH02 2U
174 #define PH03 3U
175 #define PH04 4U
176 #define PH05 5U
177 #define PH06 6U
178 #define PH07 7U
179 #define PH08 8U
180 #define PH09 9U
181 #define PH10 10U
182 #define PH11 11U
183 #define PH12 12U
184 #define PH13 13U
185 #define PH14 14U
186 #define PH15 15U
187 
188 #define PI00 0U
189 #define PI01 1U
190 #define PI02 2U
191 #define PI03 3U
192 #define PI04 4U
193 #define PI05 5U
194 #define PI06 6U
195 #define PI07 7U
196 #define PI08 8U
197 #define PI09 9U
198 #define PI10 10U
199 #define PI11 11U
200 #define PI12 12U
201 #define PI13 13U
202 #define PI14 14U
203 #define PI15 15U
204 
205 #define PJ00 0U
206 #define PJ01 1U
207 #define PJ02 2U
208 #define PJ03 3U
209 #define PJ04 4U
210 #define PJ05 5U
211 #define PJ06 6U
212 #define PJ07 7U
213 #define PJ08 8U
214 #define PJ09 9U
215 #define PJ10 10U
216 #define PJ11 11U
217 #define PJ12 12U
218 #define PJ13 13U
219 #define PJ14 14U
220 #define PJ15 15U
221 
222 #define PK00 0U
223 #define PK01 1U
224 #define PK02 2U
225 #define PK03 3U
226 #define PK04 4U
227 #define PK05 5U
228 #define PK06 6U
229 #define PK07 7U
230 #define PK08 8U
231 #define PK09 9U
232 #define PK10 10U
233 #define PK11 11U
234 #define PK12 12U
235 #define PK13 13U
236 #define PK14 14U
237 #define PK15 15U
238 
239 /*
240  * IO lines assignments.
241  */
242 #define LINE_A00_AUX_A1 PAL_LINE(GPIOA, 0U)
243 #define LINE_A01_AUX_A2 PAL_LINE(GPIOA, 1U)
244 #define LINE_A02_AUX_A3 PAL_LINE(GPIOA, 2U)
245 #define LINE_A03_AUX_B1 PAL_LINE(GPIOA, 3U)
246 #define LINE_A06_AUX_A4 PAL_LINE(GPIOA, 6U)
247 #define LINE_A07_AUX_B2 PAL_LINE(GPIOA, 7U)
248 #define LINE_A09_USB_VBUS PAL_LINE(GPIOA, 9U)
249 #define LINE_A10_LED2 PAL_LINE(GPIOA, 10U)
250 #define LINE_A11_OTG_FS_DM PAL_LINE(GPIOA, 11U)
251 #define LINE_A12_OTG_FS_DP PAL_LINE(GPIOA, 12U)
252 #define LINE_A13_SWDIO PAL_LINE(GPIOA, 13U)
253 #define LINE_A14_SWCLK PAL_LINE(GPIOA, 14U)
254 #define LINE_A15_UART7_TX PAL_LINE(GPIOA, 15U)
255 
256 #define LINE_B00_AUX_B3 PAL_LINE(GPIOB, 0U)
257 #define LINE_B01_AUX_B4 PAL_LINE(GPIOB, 1U)
258 #define LINE_B03_UART7_RX PAL_LINE(GPIOB, 3U)
259 #define LINE_B05_DSHOT_RX PAL_LINE(GPIOB, 5U)
260 #define LINE_B06_SRVB1 PAL_LINE(GPIOB, 6U)
261 #define LINE_B07_SRVB2 PAL_LINE(GPIOB, 7U)
262 #define LINE_B08_SRVB3 PAL_LINE(GPIOB, 8U)
263 #define LINE_B09_SRVB4 PAL_LINE(GPIOB, 9U)
264 #define LINE_B10_I2C2_SCL_EXTERNAL PAL_LINE(GPIOB, 10U)
265 #define LINE_B11_I2C2_SDA_EXTERNAL PAL_LINE(GPIOB, 11U)
266 #define LINE_B12_SPI2_CS_EXTERNAL PAL_LINE(GPIOB, 12U)
267 #define LINE_B14_SPI2_EXTERNAL_MISO PAL_LINE(GPIOB, 14U)
268 #define LINE_B15_SPI2_EXTERNAL_MOSI PAL_LINE(GPIOB, 15U)
269 
270 #define LINE_C00_VBAT_MEAS PAL_LINE(GPIOC, 0U)
271 #define LINE_C06_RC2 PAL_LINE(GPIOC, 6U)
272 #define LINE_C07_LED3 PAL_LINE(GPIOC, 7U)
273 #define LINE_C08_SDMMC1_D0 PAL_LINE(GPIOC, 8U)
274 #define LINE_C09_SDMMC1_D1 PAL_LINE(GPIOC, 9U)
275 #define LINE_C10_SDMMC1_D2 PAL_LINE(GPIOC, 10U)
276 #define LINE_C11_SDMMC1_D3 PAL_LINE(GPIOC, 11U)
277 #define LINE_C12_SDMMC1_CK PAL_LINE(GPIOC, 12U)
278 #define LINE_C13_APSW PAL_LINE(GPIOC, 13U)
279 #define LINE_C14_OSC32_IN PAL_LINE(GPIOC, 14U)
280 #define LINE_C15_OSC32_OUT PAL_LINE(GPIOC, 15U)
281 
282 #define LINE_D00_CAN_RX PAL_LINE(GPIOD, 0U)
283 #define LINE_D01_CAN_TX PAL_LINE(GPIOD, 1U)
284 #define LINE_D02_SDMMC1_CMD PAL_LINE(GPIOD, 2U)
285 #define LINE_D03_SPI2_EXTERNAL_CLK PAL_LINE(GPIOD, 3U)
286 #define LINE_D05_UART_TX2 PAL_LINE(GPIOD, 5U)
287 #define LINE_D06_UART_RX2 PAL_LINE(GPIOD, 6U)
288 #define LINE_D08_UART_TX3 PAL_LINE(GPIOD, 8U)
289 #define LINE_D09_UART_RX3 PAL_LINE(GPIOD, 9U)
290 #define LINE_D10_LED4 PAL_LINE(GPIOD, 10U)
291 #define LINE_D12_I2C4_SCL_EXTERNAL PAL_LINE(GPIOD, 12U)
292 #define LINE_D13_I2C4_SDA_EXTERNAL PAL_LINE(GPIOD, 13U)
293 #define LINE_D15_LED1 PAL_LINE(GPIOD, 15U)
294 
295 #define LINE_E00_RC1 PAL_LINE(GPIOE, 0U)
296 #define LINE_E02_SPI4_INTERNAL_CLK PAL_LINE(GPIOE, 2U)
297 #define LINE_E04_SPI4_CS_INTERNAL PAL_LINE(GPIOE, 4U)
298 #define LINE_E05_SPI4_INTERNAL_MISO PAL_LINE(GPIOE, 5U)
299 #define LINE_E06_SPI4_INTERNAL_MOSI PAL_LINE(GPIOE, 6U)
300 #define LINE_E09_SRVA1 PAL_LINE(GPIOE, 9U)
301 #define LINE_E11_SRVA2 PAL_LINE(GPIOE, 11U)
302 #define LINE_E13_SRVA3 PAL_LINE(GPIOE, 13U)
303 #define LINE_E14_SRVA4 PAL_LINE(GPIOE, 14U)
304 
305 #define LINE_H00_OSC_IN PAL_LINE(GPIOH, 0U)
306 #define LINE_H01_OSC_OUT PAL_LINE(GPIOH, 1U)
307 
308 
309 /*
310  * I/O ports initial setup, this configuration is established soon after reset
311  * in the initialization code.
312  * Please refer to the STM32 Reference Manual for details.
313  */
314 #define PIN_MODE_INPUT(n) (0U << ((n) * 2U))
315 #define PIN_MODE_OUTPUT(n) (1U << ((n) * 2U))
316 #define PIN_MODE_ALTERNATE(n) (2U << ((n) * 2U))
317 #define PIN_MODE_ANALOG(n) (3U << ((n) * 2U))
318 #define PIN_ODR_LEVEL_LOW(n) (0U << (n))
319 #define PIN_ODR_LEVEL_HIGH(n) (1U << (n))
320 #define PIN_OTYPE_PUSHPULL(n) (0U << (n))
321 #define PIN_OTYPE_OPENDRAIN(n) (1U << (n))
322 #define PIN_OSPEED_SPEED_VERYLOW(n) (0U << ((n) * 2U))
323 #define PIN_OSPEED_SPEED_LOW(n) (1U << ((n) * 2U))
324 #define PIN_OSPEED_SPEED_MEDIUM(n) (2U << ((n) * 2U))
325 #define PIN_OSPEED_SPEED_HIGH(n) (3U << ((n) * 2U))
326 #define PIN_PUPDR_FLOATING(n) (0U << ((n) * 2U))
327 #define PIN_PUPDR_PULLUP(n) (1U << ((n) * 2U))
328 #define PIN_PUPDR_PULLDOWN(n) (2U << ((n) * 2U))
329 #define PIN_AFIO_AF(n, v) ((v) << (((n) % 8U) * 4U))
330 
331 #define VAL_GPIOA_MODER (PIN_MODE_INPUT(PA00_AUX_A1) | \
332  PIN_MODE_INPUT(PA01_AUX_A2) | \
333  PIN_MODE_INPUT(PA02_AUX_A3) | \
334  PIN_MODE_INPUT(PA03_AUX_B1) | \
335  PIN_MODE_INPUT(PA04) | \
336  PIN_MODE_INPUT(PA05) | \
337  PIN_MODE_INPUT(PA06_AUX_A4) | \
338  PIN_MODE_INPUT(PA07_AUX_B2) | \
339  PIN_MODE_INPUT(PA08) | \
340  PIN_MODE_INPUT(PA09_USB_VBUS) | \
341  PIN_MODE_OUTPUT(PA10_LED2) | \
342  PIN_MODE_ALTERNATE(PA11_OTG_FS_DM) | \
343  PIN_MODE_ALTERNATE(PA12_OTG_FS_DP) | \
344  PIN_MODE_ALTERNATE(PA13_SWDIO) | \
345  PIN_MODE_ALTERNATE(PA14_SWCLK) | \
346  PIN_MODE_ALTERNATE(PA15_UART7_TX))
347 
348 #define VAL_GPIOA_OTYPER (PIN_OTYPE_OPENDRAIN(PA00_AUX_A1) | \
349  PIN_OTYPE_OPENDRAIN(PA01_AUX_A2) | \
350  PIN_OTYPE_OPENDRAIN(PA02_AUX_A3) | \
351  PIN_OTYPE_OPENDRAIN(PA03_AUX_B1) | \
352  PIN_OTYPE_PUSHPULL(PA04) | \
353  PIN_OTYPE_PUSHPULL(PA05) | \
354  PIN_OTYPE_OPENDRAIN(PA06_AUX_A4) | \
355  PIN_OTYPE_OPENDRAIN(PA07_AUX_B2) | \
356  PIN_OTYPE_PUSHPULL(PA08) | \
357  PIN_OTYPE_OPENDRAIN(PA09_USB_VBUS) | \
358  PIN_OTYPE_PUSHPULL(PA10_LED2) | \
359  PIN_OTYPE_PUSHPULL(PA11_OTG_FS_DM) | \
360  PIN_OTYPE_PUSHPULL(PA12_OTG_FS_DP) | \
361  PIN_OTYPE_PUSHPULL(PA13_SWDIO) | \
362  PIN_OTYPE_PUSHPULL(PA14_SWCLK) | \
363  PIN_OTYPE_PUSHPULL(PA15_UART7_TX))
364 
365 #define VAL_GPIOA_OSPEEDR (PIN_OSPEED_SPEED_VERYLOW(PA00_AUX_A1) | \
366  PIN_OSPEED_SPEED_VERYLOW(PA01_AUX_A2) | \
367  PIN_OSPEED_SPEED_VERYLOW(PA02_AUX_A3) | \
368  PIN_OSPEED_SPEED_VERYLOW(PA03_AUX_B1) | \
369  PIN_OSPEED_SPEED_VERYLOW(PA04) | \
370  PIN_OSPEED_SPEED_VERYLOW(PA05) | \
371  PIN_OSPEED_SPEED_VERYLOW(PA06_AUX_A4) | \
372  PIN_OSPEED_SPEED_VERYLOW(PA07_AUX_B2) | \
373  PIN_OSPEED_SPEED_VERYLOW(PA08) | \
374  PIN_OSPEED_SPEED_VERYLOW(PA09_USB_VBUS) | \
375  PIN_OSPEED_SPEED_VERYLOW(PA10_LED2) | \
376  PIN_OSPEED_SPEED_HIGH(PA11_OTG_FS_DM) | \
377  PIN_OSPEED_SPEED_HIGH(PA12_OTG_FS_DP) | \
378  PIN_OSPEED_SPEED_HIGH(PA13_SWDIO) | \
379  PIN_OSPEED_SPEED_HIGH(PA14_SWCLK) | \
380  PIN_OSPEED_SPEED_HIGH(PA15_UART7_TX))
381 
382 #define VAL_GPIOA_PUPDR (PIN_PUPDR_PULLDOWN(PA00_AUX_A1) | \
383  PIN_PUPDR_PULLDOWN(PA01_AUX_A2) | \
384  PIN_PUPDR_PULLDOWN(PA02_AUX_A3) | \
385  PIN_PUPDR_PULLDOWN(PA03_AUX_B1) | \
386  PIN_PUPDR_PULLDOWN(PA04) | \
387  PIN_PUPDR_PULLDOWN(PA05) | \
388  PIN_PUPDR_PULLDOWN(PA06_AUX_A4) | \
389  PIN_PUPDR_PULLDOWN(PA07_AUX_B2) | \
390  PIN_PUPDR_PULLDOWN(PA08) | \
391  PIN_PUPDR_PULLDOWN(PA09_USB_VBUS) | \
392  PIN_PUPDR_FLOATING(PA10_LED2) | \
393  PIN_PUPDR_FLOATING(PA11_OTG_FS_DM) | \
394  PIN_PUPDR_FLOATING(PA12_OTG_FS_DP) | \
395  PIN_PUPDR_FLOATING(PA13_SWDIO) | \
396  PIN_PUPDR_FLOATING(PA14_SWCLK) | \
397  PIN_PUPDR_FLOATING(PA15_UART7_TX))
398 
399 #define VAL_GPIOA_ODR (PIN_ODR_LEVEL_HIGH(PA00_AUX_A1) | \
400  PIN_ODR_LEVEL_HIGH(PA01_AUX_A2) | \
401  PIN_ODR_LEVEL_HIGH(PA02_AUX_A3) | \
402  PIN_ODR_LEVEL_HIGH(PA03_AUX_B1) | \
403  PIN_ODR_LEVEL_LOW(PA04) | \
404  PIN_ODR_LEVEL_LOW(PA05) | \
405  PIN_ODR_LEVEL_HIGH(PA06_AUX_A4) | \
406  PIN_ODR_LEVEL_HIGH(PA07_AUX_B2) | \
407  PIN_ODR_LEVEL_LOW(PA08) | \
408  PIN_ODR_LEVEL_LOW(PA09_USB_VBUS) | \
409  PIN_ODR_LEVEL_LOW(PA10_LED2) | \
410  PIN_ODR_LEVEL_HIGH(PA11_OTG_FS_DM) | \
411  PIN_ODR_LEVEL_HIGH(PA12_OTG_FS_DP) | \
412  PIN_ODR_LEVEL_HIGH(PA13_SWDIO) | \
413  PIN_ODR_LEVEL_HIGH(PA14_SWCLK) | \
414  PIN_ODR_LEVEL_HIGH(PA15_UART7_TX))
415 
416 #define VAL_GPIOA_AFRL (PIN_AFIO_AF(PA00_AUX_A1, 0) | \
417  PIN_AFIO_AF(PA01_AUX_A2, 0) | \
418  PIN_AFIO_AF(PA02_AUX_A3, 0) | \
419  PIN_AFIO_AF(PA03_AUX_B1, 0) | \
420  PIN_AFIO_AF(PA04, 0) | \
421  PIN_AFIO_AF(PA05, 0) | \
422  PIN_AFIO_AF(PA06_AUX_A4, 0) | \
423  PIN_AFIO_AF(PA07_AUX_B2, 0))
424 
425 #define VAL_GPIOA_AFRH (PIN_AFIO_AF(PA08, 0) | \
426  PIN_AFIO_AF(PA09_USB_VBUS, 0) | \
427  PIN_AFIO_AF(PA10_LED2, 0) | \
428  PIN_AFIO_AF(PA11_OTG_FS_DM, 10) | \
429  PIN_AFIO_AF(PA12_OTG_FS_DP, 10) | \
430  PIN_AFIO_AF(PA13_SWDIO, 0) | \
431  PIN_AFIO_AF(PA14_SWCLK, 0) | \
432  PIN_AFIO_AF(PA15_UART7_TX, 12))
433 
434 #define VAL_GPIOB_MODER (PIN_MODE_INPUT(PB00_AUX_B3) | \
435  PIN_MODE_INPUT(PB01_AUX_B4) | \
436  PIN_MODE_INPUT(PB02) | \
437  PIN_MODE_ALTERNATE(PB03_UART7_RX) | \
438  PIN_MODE_INPUT(PB04) | \
439  PIN_MODE_ALTERNATE(PB05_DSHOT_RX) | \
440  PIN_MODE_ALTERNATE(PB06_SRVB1) | \
441  PIN_MODE_ALTERNATE(PB07_SRVB2) | \
442  PIN_MODE_ALTERNATE(PB08_SRVB3) | \
443  PIN_MODE_ALTERNATE(PB09_SRVB4) | \
444  PIN_MODE_ALTERNATE(PB10_I2C2_SCL_EXTERNAL) | \
445  PIN_MODE_ALTERNATE(PB11_I2C2_SDA_EXTERNAL) | \
446  PIN_MODE_OUTPUT(PB12_SPI2_CS_EXTERNAL) | \
447  PIN_MODE_INPUT(PB13) | \
448  PIN_MODE_ALTERNATE(PB14_SPI2_EXTERNAL_MISO) | \
449  PIN_MODE_ALTERNATE(PB15_SPI2_EXTERNAL_MOSI))
450 
451 #define VAL_GPIOB_OTYPER (PIN_OTYPE_OPENDRAIN(PB00_AUX_B3) | \
452  PIN_OTYPE_OPENDRAIN(PB01_AUX_B4) | \
453  PIN_OTYPE_PUSHPULL(PB02) | \
454  PIN_OTYPE_PUSHPULL(PB03_UART7_RX) | \
455  PIN_OTYPE_PUSHPULL(PB04) | \
456  PIN_OTYPE_PUSHPULL(PB05_DSHOT_RX) | \
457  PIN_OTYPE_PUSHPULL(PB06_SRVB1) | \
458  PIN_OTYPE_PUSHPULL(PB07_SRVB2) | \
459  PIN_OTYPE_PUSHPULL(PB08_SRVB3) | \
460  PIN_OTYPE_PUSHPULL(PB09_SRVB4) | \
461  PIN_OTYPE_OPENDRAIN(PB10_I2C2_SCL_EXTERNAL) | \
462  PIN_OTYPE_OPENDRAIN(PB11_I2C2_SDA_EXTERNAL) | \
463  PIN_OTYPE_PUSHPULL(PB12_SPI2_CS_EXTERNAL) | \
464  PIN_OTYPE_PUSHPULL(PB13) | \
465  PIN_OTYPE_PUSHPULL(PB14_SPI2_EXTERNAL_MISO) | \
466  PIN_OTYPE_PUSHPULL(PB15_SPI2_EXTERNAL_MOSI))
467 
468 #define VAL_GPIOB_OSPEEDR (PIN_OSPEED_SPEED_VERYLOW(PB00_AUX_B3) | \
469  PIN_OSPEED_SPEED_VERYLOW(PB01_AUX_B4) | \
470  PIN_OSPEED_SPEED_VERYLOW(PB02) | \
471  PIN_OSPEED_SPEED_HIGH(PB03_UART7_RX) | \
472  PIN_OSPEED_SPEED_VERYLOW(PB04) | \
473  PIN_OSPEED_SPEED_HIGH(PB05_DSHOT_RX) | \
474  PIN_OSPEED_SPEED_HIGH(PB06_SRVB1) | \
475  PIN_OSPEED_SPEED_HIGH(PB07_SRVB2) | \
476  PIN_OSPEED_SPEED_HIGH(PB08_SRVB3) | \
477  PIN_OSPEED_SPEED_HIGH(PB09_SRVB4) | \
478  PIN_OSPEED_SPEED_HIGH(PB10_I2C2_SCL_EXTERNAL) | \
479  PIN_OSPEED_SPEED_HIGH(PB11_I2C2_SDA_EXTERNAL) | \
480  PIN_OSPEED_SPEED_HIGH(PB12_SPI2_CS_EXTERNAL) | \
481  PIN_OSPEED_SPEED_VERYLOW(PB13) | \
482  PIN_OSPEED_SPEED_HIGH(PB14_SPI2_EXTERNAL_MISO) | \
483  PIN_OSPEED_SPEED_HIGH(PB15_SPI2_EXTERNAL_MOSI))
484 
485 #define VAL_GPIOB_PUPDR (PIN_PUPDR_PULLDOWN(PB00_AUX_B3) | \
486  PIN_PUPDR_PULLDOWN(PB01_AUX_B4) | \
487  PIN_PUPDR_PULLDOWN(PB02) | \
488  PIN_PUPDR_FLOATING(PB03_UART7_RX) | \
489  PIN_PUPDR_PULLDOWN(PB04) | \
490  PIN_PUPDR_FLOATING(PB05_DSHOT_RX) | \
491  PIN_PUPDR_FLOATING(PB06_SRVB1) | \
492  PIN_PUPDR_FLOATING(PB07_SRVB2) | \
493  PIN_PUPDR_FLOATING(PB08_SRVB3) | \
494  PIN_PUPDR_FLOATING(PB09_SRVB4) | \
495  PIN_PUPDR_PULLUP(PB10_I2C2_SCL_EXTERNAL) | \
496  PIN_PUPDR_PULLUP(PB11_I2C2_SDA_EXTERNAL) | \
497  PIN_PUPDR_FLOATING(PB12_SPI2_CS_EXTERNAL) | \
498  PIN_PUPDR_PULLDOWN(PB13) | \
499  PIN_PUPDR_FLOATING(PB14_SPI2_EXTERNAL_MISO) | \
500  PIN_PUPDR_FLOATING(PB15_SPI2_EXTERNAL_MOSI))
501 
502 #define VAL_GPIOB_ODR (PIN_ODR_LEVEL_HIGH(PB00_AUX_B3) | \
503  PIN_ODR_LEVEL_HIGH(PB01_AUX_B4) | \
504  PIN_ODR_LEVEL_LOW(PB02) | \
505  PIN_ODR_LEVEL_HIGH(PB03_UART7_RX) | \
506  PIN_ODR_LEVEL_LOW(PB04) | \
507  PIN_ODR_LEVEL_HIGH(PB05_DSHOT_RX) | \
508  PIN_ODR_LEVEL_LOW(PB06_SRVB1) | \
509  PIN_ODR_LEVEL_LOW(PB07_SRVB2) | \
510  PIN_ODR_LEVEL_LOW(PB08_SRVB3) | \
511  PIN_ODR_LEVEL_LOW(PB09_SRVB4) | \
512  PIN_ODR_LEVEL_HIGH(PB10_I2C2_SCL_EXTERNAL) | \
513  PIN_ODR_LEVEL_HIGH(PB11_I2C2_SDA_EXTERNAL) | \
514  PIN_ODR_LEVEL_HIGH(PB12_SPI2_CS_EXTERNAL) | \
515  PIN_ODR_LEVEL_LOW(PB13) | \
516  PIN_ODR_LEVEL_HIGH(PB14_SPI2_EXTERNAL_MISO) | \
517  PIN_ODR_LEVEL_HIGH(PB15_SPI2_EXTERNAL_MOSI))
518 
519 #define VAL_GPIOB_AFRL (PIN_AFIO_AF(PB00_AUX_B3, 0) | \
520  PIN_AFIO_AF(PB01_AUX_B4, 0) | \
521  PIN_AFIO_AF(PB02, 0) | \
522  PIN_AFIO_AF(PB03_UART7_RX, 12) | \
523  PIN_AFIO_AF(PB04, 0) | \
524  PIN_AFIO_AF(PB05_DSHOT_RX, 1) | \
525  PIN_AFIO_AF(PB06_SRVB1, 2) | \
526  PIN_AFIO_AF(PB07_SRVB2, 2))
527 
528 #define VAL_GPIOB_AFRH (PIN_AFIO_AF(PB08_SRVB3, 2) | \
529  PIN_AFIO_AF(PB09_SRVB4, 2) | \
530  PIN_AFIO_AF(PB10_I2C2_SCL_EXTERNAL, 4) | \
531  PIN_AFIO_AF(PB11_I2C2_SDA_EXTERNAL, 4) | \
532  PIN_AFIO_AF(PB12_SPI2_CS_EXTERNAL, 0) | \
533  PIN_AFIO_AF(PB13, 0) | \
534  PIN_AFIO_AF(PB14_SPI2_EXTERNAL_MISO, 5) | \
535  PIN_AFIO_AF(PB15_SPI2_EXTERNAL_MOSI, 5))
536 
537 #define VAL_GPIOC_MODER (PIN_MODE_ANALOG(PC00_VBAT_MEAS) | \
538  PIN_MODE_INPUT(PC01) | \
539  PIN_MODE_INPUT(PC02) | \
540  PIN_MODE_INPUT(PC03) | \
541  PIN_MODE_INPUT(PC04) | \
542  PIN_MODE_INPUT(PC05) | \
543  PIN_MODE_INPUT(PC06_RC2) | \
544  PIN_MODE_OUTPUT(PC07_LED3) | \
545  PIN_MODE_ALTERNATE(PC08_SDMMC1_D0) | \
546  PIN_MODE_ALTERNATE(PC09_SDMMC1_D1) | \
547  PIN_MODE_ALTERNATE(PC10_SDMMC1_D2) | \
548  PIN_MODE_ALTERNATE(PC11_SDMMC1_D3) | \
549  PIN_MODE_ALTERNATE(PC12_SDMMC1_CK) | \
550  PIN_MODE_OUTPUT(PC13_APSW) | \
551  PIN_MODE_ALTERNATE(PC14_OSC32_IN) | \
552  PIN_MODE_ALTERNATE(PC15_OSC32_OUT))
553 
554 #define VAL_GPIOC_OTYPER (PIN_OTYPE_PUSHPULL(PC00_VBAT_MEAS) | \
555  PIN_OTYPE_PUSHPULL(PC01) | \
556  PIN_OTYPE_PUSHPULL(PC02) | \
557  PIN_OTYPE_PUSHPULL(PC03) | \
558  PIN_OTYPE_PUSHPULL(PC04) | \
559  PIN_OTYPE_PUSHPULL(PC05) | \
560  PIN_OTYPE_OPENDRAIN(PC06_RC2) | \
561  PIN_OTYPE_PUSHPULL(PC07_LED3) | \
562  PIN_OTYPE_PUSHPULL(PC08_SDMMC1_D0) | \
563  PIN_OTYPE_PUSHPULL(PC09_SDMMC1_D1) | \
564  PIN_OTYPE_PUSHPULL(PC10_SDMMC1_D2) | \
565  PIN_OTYPE_PUSHPULL(PC11_SDMMC1_D3) | \
566  PIN_OTYPE_PUSHPULL(PC12_SDMMC1_CK) | \
567  PIN_OTYPE_PUSHPULL(PC13_APSW) | \
568  PIN_OTYPE_PUSHPULL(PC14_OSC32_IN) | \
569  PIN_OTYPE_PUSHPULL(PC15_OSC32_OUT))
570 
571 #define VAL_GPIOC_OSPEEDR (PIN_OSPEED_SPEED_VERYLOW(PC00_VBAT_MEAS) | \
572  PIN_OSPEED_SPEED_VERYLOW(PC01) | \
573  PIN_OSPEED_SPEED_VERYLOW(PC02) | \
574  PIN_OSPEED_SPEED_VERYLOW(PC03) | \
575  PIN_OSPEED_SPEED_VERYLOW(PC04) | \
576  PIN_OSPEED_SPEED_VERYLOW(PC05) | \
577  PIN_OSPEED_SPEED_VERYLOW(PC06_RC2) | \
578  PIN_OSPEED_SPEED_VERYLOW(PC07_LED3) | \
579  PIN_OSPEED_SPEED_HIGH(PC08_SDMMC1_D0) | \
580  PIN_OSPEED_SPEED_HIGH(PC09_SDMMC1_D1) | \
581  PIN_OSPEED_SPEED_HIGH(PC10_SDMMC1_D2) | \
582  PIN_OSPEED_SPEED_HIGH(PC11_SDMMC1_D3) | \
583  PIN_OSPEED_SPEED_HIGH(PC12_SDMMC1_CK) | \
584  PIN_OSPEED_SPEED_VERYLOW(PC13_APSW) | \
585  PIN_OSPEED_SPEED_HIGH(PC14_OSC32_IN) | \
586  PIN_OSPEED_SPEED_HIGH(PC15_OSC32_OUT))
587 
588 #define VAL_GPIOC_PUPDR (PIN_PUPDR_FLOATING(PC00_VBAT_MEAS) | \
589  PIN_PUPDR_PULLDOWN(PC01) | \
590  PIN_PUPDR_PULLDOWN(PC02) | \
591  PIN_PUPDR_PULLDOWN(PC03) | \
592  PIN_PUPDR_PULLDOWN(PC04) | \
593  PIN_PUPDR_PULLDOWN(PC05) | \
594  PIN_PUPDR_PULLDOWN(PC06_RC2) | \
595  PIN_PUPDR_FLOATING(PC07_LED3) | \
596  PIN_PUPDR_PULLUP(PC08_SDMMC1_D0) | \
597  PIN_PUPDR_PULLUP(PC09_SDMMC1_D1) | \
598  PIN_PUPDR_PULLUP(PC10_SDMMC1_D2) | \
599  PIN_PUPDR_PULLUP(PC11_SDMMC1_D3) | \
600  PIN_PUPDR_PULLUP(PC12_SDMMC1_CK) | \
601  PIN_PUPDR_FLOATING(PC13_APSW) | \
602  PIN_PUPDR_FLOATING(PC14_OSC32_IN) | \
603  PIN_PUPDR_FLOATING(PC15_OSC32_OUT))
604 
605 #define VAL_GPIOC_ODR (PIN_ODR_LEVEL_LOW(PC00_VBAT_MEAS) | \
606  PIN_ODR_LEVEL_LOW(PC01) | \
607  PIN_ODR_LEVEL_LOW(PC02) | \
608  PIN_ODR_LEVEL_LOW(PC03) | \
609  PIN_ODR_LEVEL_LOW(PC04) | \
610  PIN_ODR_LEVEL_LOW(PC05) | \
611  PIN_ODR_LEVEL_HIGH(PC06_RC2) | \
612  PIN_ODR_LEVEL_LOW(PC07_LED3) | \
613  PIN_ODR_LEVEL_HIGH(PC08_SDMMC1_D0) | \
614  PIN_ODR_LEVEL_HIGH(PC09_SDMMC1_D1) | \
615  PIN_ODR_LEVEL_HIGH(PC10_SDMMC1_D2) | \
616  PIN_ODR_LEVEL_HIGH(PC11_SDMMC1_D3) | \
617  PIN_ODR_LEVEL_HIGH(PC12_SDMMC1_CK) | \
618  PIN_ODR_LEVEL_HIGH(PC13_APSW) | \
619  PIN_ODR_LEVEL_HIGH(PC14_OSC32_IN) | \
620  PIN_ODR_LEVEL_HIGH(PC15_OSC32_OUT))
621 
622 #define VAL_GPIOC_AFRL (PIN_AFIO_AF(PC00_VBAT_MEAS, 0) | \
623  PIN_AFIO_AF(PC01, 0) | \
624  PIN_AFIO_AF(PC02, 0) | \
625  PIN_AFIO_AF(PC03, 0) | \
626  PIN_AFIO_AF(PC04, 0) | \
627  PIN_AFIO_AF(PC05, 0) | \
628  PIN_AFIO_AF(PC06_RC2, 0) | \
629  PIN_AFIO_AF(PC07_LED3, 0))
630 
631 #define VAL_GPIOC_AFRH (PIN_AFIO_AF(PC08_SDMMC1_D0, 12) | \
632  PIN_AFIO_AF(PC09_SDMMC1_D1, 12) | \
633  PIN_AFIO_AF(PC10_SDMMC1_D2, 12) | \
634  PIN_AFIO_AF(PC11_SDMMC1_D3, 12) | \
635  PIN_AFIO_AF(PC12_SDMMC1_CK, 12) | \
636  PIN_AFIO_AF(PC13_APSW, 0) | \
637  PIN_AFIO_AF(PC14_OSC32_IN, 0) | \
638  PIN_AFIO_AF(PC15_OSC32_OUT, 0))
639 
640 #define VAL_GPIOD_MODER (PIN_MODE_ALTERNATE(PD00_CAN_RX) | \
641  PIN_MODE_ALTERNATE(PD01_CAN_TX) | \
642  PIN_MODE_ALTERNATE(PD02_SDMMC1_CMD) | \
643  PIN_MODE_ALTERNATE(PD03_SPI2_EXTERNAL_CLK) | \
644  PIN_MODE_INPUT(PD04) | \
645  PIN_MODE_ALTERNATE(PD05_UART_TX2) | \
646  PIN_MODE_ALTERNATE(PD06_UART_RX2) | \
647  PIN_MODE_INPUT(PD07) | \
648  PIN_MODE_ALTERNATE(PD08_UART_TX3) | \
649  PIN_MODE_ALTERNATE(PD09_UART_RX3) | \
650  PIN_MODE_OUTPUT(PD10_LED4) | \
651  PIN_MODE_INPUT(PD11) | \
652  PIN_MODE_ALTERNATE(PD12_I2C4_SCL_EXTERNAL) | \
653  PIN_MODE_ALTERNATE(PD13_I2C4_SDA_EXTERNAL) | \
654  PIN_MODE_INPUT(PD14) | \
655  PIN_MODE_OUTPUT(PD15_LED1))
656 
657 #define VAL_GPIOD_OTYPER (PIN_OTYPE_PUSHPULL(PD00_CAN_RX) | \
658  PIN_OTYPE_PUSHPULL(PD01_CAN_TX) | \
659  PIN_OTYPE_PUSHPULL(PD02_SDMMC1_CMD) | \
660  PIN_OTYPE_PUSHPULL(PD03_SPI2_EXTERNAL_CLK) | \
661  PIN_OTYPE_PUSHPULL(PD04) | \
662  PIN_OTYPE_PUSHPULL(PD05_UART_TX2) | \
663  PIN_OTYPE_PUSHPULL(PD06_UART_RX2) | \
664  PIN_OTYPE_PUSHPULL(PD07) | \
665  PIN_OTYPE_PUSHPULL(PD08_UART_TX3) | \
666  PIN_OTYPE_PUSHPULL(PD09_UART_RX3) | \
667  PIN_OTYPE_PUSHPULL(PD10_LED4) | \
668  PIN_OTYPE_PUSHPULL(PD11) | \
669  PIN_OTYPE_OPENDRAIN(PD12_I2C4_SCL_EXTERNAL) | \
670  PIN_OTYPE_OPENDRAIN(PD13_I2C4_SDA_EXTERNAL) | \
671  PIN_OTYPE_PUSHPULL(PD14) | \
672  PIN_OTYPE_PUSHPULL(PD15_LED1))
673 
674 #define VAL_GPIOD_OSPEEDR (PIN_OSPEED_SPEED_HIGH(PD00_CAN_RX) | \
675  PIN_OSPEED_SPEED_HIGH(PD01_CAN_TX) | \
676  PIN_OSPEED_SPEED_HIGH(PD02_SDMMC1_CMD) | \
677  PIN_OSPEED_SPEED_HIGH(PD03_SPI2_EXTERNAL_CLK) | \
678  PIN_OSPEED_SPEED_VERYLOW(PD04) | \
679  PIN_OSPEED_SPEED_HIGH(PD05_UART_TX2) | \
680  PIN_OSPEED_SPEED_HIGH(PD06_UART_RX2) | \
681  PIN_OSPEED_SPEED_VERYLOW(PD07) | \
682  PIN_OSPEED_SPEED_HIGH(PD08_UART_TX3) | \
683  PIN_OSPEED_SPEED_HIGH(PD09_UART_RX3) | \
684  PIN_OSPEED_SPEED_VERYLOW(PD10_LED4) | \
685  PIN_OSPEED_SPEED_VERYLOW(PD11) | \
686  PIN_OSPEED_SPEED_HIGH(PD12_I2C4_SCL_EXTERNAL) | \
687  PIN_OSPEED_SPEED_HIGH(PD13_I2C4_SDA_EXTERNAL) | \
688  PIN_OSPEED_SPEED_VERYLOW(PD14) | \
689  PIN_OSPEED_SPEED_VERYLOW(PD15_LED1))
690 
691 #define VAL_GPIOD_PUPDR (PIN_PUPDR_FLOATING(PD00_CAN_RX) | \
692  PIN_PUPDR_FLOATING(PD01_CAN_TX) | \
693  PIN_PUPDR_PULLUP(PD02_SDMMC1_CMD) | \
694  PIN_PUPDR_FLOATING(PD03_SPI2_EXTERNAL_CLK) | \
695  PIN_PUPDR_PULLDOWN(PD04) | \
696  PIN_PUPDR_FLOATING(PD05_UART_TX2) | \
697  PIN_PUPDR_FLOATING(PD06_UART_RX2) | \
698  PIN_PUPDR_PULLDOWN(PD07) | \
699  PIN_PUPDR_FLOATING(PD08_UART_TX3) | \
700  PIN_PUPDR_FLOATING(PD09_UART_RX3) | \
701  PIN_PUPDR_FLOATING(PD10_LED4) | \
702  PIN_PUPDR_PULLDOWN(PD11) | \
703  PIN_PUPDR_PULLUP(PD12_I2C4_SCL_EXTERNAL) | \
704  PIN_PUPDR_PULLUP(PD13_I2C4_SDA_EXTERNAL) | \
705  PIN_PUPDR_PULLDOWN(PD14) | \
706  PIN_PUPDR_FLOATING(PD15_LED1))
707 
708 #define VAL_GPIOD_ODR (PIN_ODR_LEVEL_HIGH(PD00_CAN_RX) | \
709  PIN_ODR_LEVEL_HIGH(PD01_CAN_TX) | \
710  PIN_ODR_LEVEL_HIGH(PD02_SDMMC1_CMD) | \
711  PIN_ODR_LEVEL_HIGH(PD03_SPI2_EXTERNAL_CLK) | \
712  PIN_ODR_LEVEL_LOW(PD04) | \
713  PIN_ODR_LEVEL_HIGH(PD05_UART_TX2) | \
714  PIN_ODR_LEVEL_HIGH(PD06_UART_RX2) | \
715  PIN_ODR_LEVEL_LOW(PD07) | \
716  PIN_ODR_LEVEL_HIGH(PD08_UART_TX3) | \
717  PIN_ODR_LEVEL_HIGH(PD09_UART_RX3) | \
718  PIN_ODR_LEVEL_LOW(PD10_LED4) | \
719  PIN_ODR_LEVEL_LOW(PD11) | \
720  PIN_ODR_LEVEL_HIGH(PD12_I2C4_SCL_EXTERNAL) | \
721  PIN_ODR_LEVEL_HIGH(PD13_I2C4_SDA_EXTERNAL) | \
722  PIN_ODR_LEVEL_LOW(PD14) | \
723  PIN_ODR_LEVEL_LOW(PD15_LED1))
724 
725 #define VAL_GPIOD_AFRL (PIN_AFIO_AF(PD00_CAN_RX, 9) | \
726  PIN_AFIO_AF(PD01_CAN_TX, 9) | \
727  PIN_AFIO_AF(PD02_SDMMC1_CMD, 12) | \
728  PIN_AFIO_AF(PD03_SPI2_EXTERNAL_CLK, 5) | \
729  PIN_AFIO_AF(PD04, 0) | \
730  PIN_AFIO_AF(PD05_UART_TX2, 7) | \
731  PIN_AFIO_AF(PD06_UART_RX2, 7) | \
732  PIN_AFIO_AF(PD07, 0))
733 
734 #define VAL_GPIOD_AFRH (PIN_AFIO_AF(PD08_UART_TX3, 7) | \
735  PIN_AFIO_AF(PD09_UART_RX3, 7) | \
736  PIN_AFIO_AF(PD10_LED4, 0) | \
737  PIN_AFIO_AF(PD11, 0) | \
738  PIN_AFIO_AF(PD12_I2C4_SCL_EXTERNAL, 4) | \
739  PIN_AFIO_AF(PD13_I2C4_SDA_EXTERNAL, 4) | \
740  PIN_AFIO_AF(PD14, 0) | \
741  PIN_AFIO_AF(PD15_LED1, 0))
742 
743 #define VAL_GPIOE_MODER (PIN_MODE_ALTERNATE(PE00_RC1) | \
744  PIN_MODE_INPUT(PE01) | \
745  PIN_MODE_ALTERNATE(PE02_SPI4_INTERNAL_CLK) | \
746  PIN_MODE_INPUT(PE03) | \
747  PIN_MODE_OUTPUT(PE04_SPI4_CS_INTERNAL) | \
748  PIN_MODE_ALTERNATE(PE05_SPI4_INTERNAL_MISO) | \
749  PIN_MODE_ALTERNATE(PE06_SPI4_INTERNAL_MOSI) | \
750  PIN_MODE_INPUT(PE07) | \
751  PIN_MODE_INPUT(PE08) | \
752  PIN_MODE_ALTERNATE(PE09_SRVA1) | \
753  PIN_MODE_INPUT(PE10) | \
754  PIN_MODE_ALTERNATE(PE11_SRVA2) | \
755  PIN_MODE_INPUT(PE12) | \
756  PIN_MODE_ALTERNATE(PE13_SRVA3) | \
757  PIN_MODE_ALTERNATE(PE14_SRVA4) | \
758  PIN_MODE_INPUT(PE15))
759 
760 #define VAL_GPIOE_OTYPER (PIN_OTYPE_PUSHPULL(PE00_RC1) | \
761  PIN_OTYPE_PUSHPULL(PE01) | \
762  PIN_OTYPE_PUSHPULL(PE02_SPI4_INTERNAL_CLK) | \
763  PIN_OTYPE_PUSHPULL(PE03) | \
764  PIN_OTYPE_PUSHPULL(PE04_SPI4_CS_INTERNAL) | \
765  PIN_OTYPE_PUSHPULL(PE05_SPI4_INTERNAL_MISO) | \
766  PIN_OTYPE_PUSHPULL(PE06_SPI4_INTERNAL_MOSI) | \
767  PIN_OTYPE_PUSHPULL(PE07) | \
768  PIN_OTYPE_PUSHPULL(PE08) | \
769  PIN_OTYPE_PUSHPULL(PE09_SRVA1) | \
770  PIN_OTYPE_PUSHPULL(PE10) | \
771  PIN_OTYPE_PUSHPULL(PE11_SRVA2) | \
772  PIN_OTYPE_PUSHPULL(PE12) | \
773  PIN_OTYPE_PUSHPULL(PE13_SRVA3) | \
774  PIN_OTYPE_PUSHPULL(PE14_SRVA4) | \
775  PIN_OTYPE_PUSHPULL(PE15))
776 
777 #define VAL_GPIOE_OSPEEDR (PIN_OSPEED_SPEED_HIGH(PE00_RC1) | \
778  PIN_OSPEED_SPEED_VERYLOW(PE01) | \
779  PIN_OSPEED_SPEED_HIGH(PE02_SPI4_INTERNAL_CLK) | \
780  PIN_OSPEED_SPEED_VERYLOW(PE03) | \
781  PIN_OSPEED_SPEED_HIGH(PE04_SPI4_CS_INTERNAL) | \
782  PIN_OSPEED_SPEED_HIGH(PE05_SPI4_INTERNAL_MISO) | \
783  PIN_OSPEED_SPEED_HIGH(PE06_SPI4_INTERNAL_MOSI) | \
784  PIN_OSPEED_SPEED_VERYLOW(PE07) | \
785  PIN_OSPEED_SPEED_VERYLOW(PE08) | \
786  PIN_OSPEED_SPEED_HIGH(PE09_SRVA1) | \
787  PIN_OSPEED_SPEED_VERYLOW(PE10) | \
788  PIN_OSPEED_SPEED_HIGH(PE11_SRVA2) | \
789  PIN_OSPEED_SPEED_VERYLOW(PE12) | \
790  PIN_OSPEED_SPEED_HIGH(PE13_SRVA3) | \
791  PIN_OSPEED_SPEED_HIGH(PE14_SRVA4) | \
792  PIN_OSPEED_SPEED_VERYLOW(PE15))
793 
794 #define VAL_GPIOE_PUPDR (PIN_PUPDR_FLOATING(PE00_RC1) | \
795  PIN_PUPDR_PULLDOWN(PE01) | \
796  PIN_PUPDR_FLOATING(PE02_SPI4_INTERNAL_CLK) | \
797  PIN_PUPDR_PULLDOWN(PE03) | \
798  PIN_PUPDR_FLOATING(PE04_SPI4_CS_INTERNAL) | \
799  PIN_PUPDR_FLOATING(PE05_SPI4_INTERNAL_MISO) | \
800  PIN_PUPDR_FLOATING(PE06_SPI4_INTERNAL_MOSI) | \
801  PIN_PUPDR_PULLDOWN(PE07) | \
802  PIN_PUPDR_PULLDOWN(PE08) | \
803  PIN_PUPDR_FLOATING(PE09_SRVA1) | \
804  PIN_PUPDR_PULLDOWN(PE10) | \
805  PIN_PUPDR_FLOATING(PE11_SRVA2) | \
806  PIN_PUPDR_PULLDOWN(PE12) | \
807  PIN_PUPDR_FLOATING(PE13_SRVA3) | \
808  PIN_PUPDR_FLOATING(PE14_SRVA4) | \
809  PIN_PUPDR_PULLDOWN(PE15))
810 
811 #define VAL_GPIOE_ODR (PIN_ODR_LEVEL_HIGH(PE00_RC1) | \
812  PIN_ODR_LEVEL_LOW(PE01) | \
813  PIN_ODR_LEVEL_HIGH(PE02_SPI4_INTERNAL_CLK) | \
814  PIN_ODR_LEVEL_LOW(PE03) | \
815  PIN_ODR_LEVEL_HIGH(PE04_SPI4_CS_INTERNAL) | \
816  PIN_ODR_LEVEL_HIGH(PE05_SPI4_INTERNAL_MISO) | \
817  PIN_ODR_LEVEL_HIGH(PE06_SPI4_INTERNAL_MOSI) | \
818  PIN_ODR_LEVEL_LOW(PE07) | \
819  PIN_ODR_LEVEL_LOW(PE08) | \
820  PIN_ODR_LEVEL_LOW(PE09_SRVA1) | \
821  PIN_ODR_LEVEL_LOW(PE10) | \
822  PIN_ODR_LEVEL_LOW(PE11_SRVA2) | \
823  PIN_ODR_LEVEL_LOW(PE12) | \
824  PIN_ODR_LEVEL_LOW(PE13_SRVA3) | \
825  PIN_ODR_LEVEL_LOW(PE14_SRVA4) | \
826  PIN_ODR_LEVEL_LOW(PE15))
827 
828 #define VAL_GPIOE_AFRL (PIN_AFIO_AF(PE00_RC1, 8) | \
829  PIN_AFIO_AF(PE01, 0) | \
830  PIN_AFIO_AF(PE02_SPI4_INTERNAL_CLK, 5) | \
831  PIN_AFIO_AF(PE03, 0) | \
832  PIN_AFIO_AF(PE04_SPI4_CS_INTERNAL, 0) | \
833  PIN_AFIO_AF(PE05_SPI4_INTERNAL_MISO, 5) | \
834  PIN_AFIO_AF(PE06_SPI4_INTERNAL_MOSI, 5) | \
835  PIN_AFIO_AF(PE07, 0))
836 
837 #define VAL_GPIOE_AFRH (PIN_AFIO_AF(PE08, 0) | \
838  PIN_AFIO_AF(PE09_SRVA1, 1) | \
839  PIN_AFIO_AF(PE10, 0) | \
840  PIN_AFIO_AF(PE11_SRVA2, 1) | \
841  PIN_AFIO_AF(PE12, 0) | \
842  PIN_AFIO_AF(PE13_SRVA3, 1) | \
843  PIN_AFIO_AF(PE14_SRVA4, 1) | \
844  PIN_AFIO_AF(PE15, 0))
845 
846 #define VAL_GPIOF_MODER (PIN_MODE_INPUT(PF00) | \
847  PIN_MODE_INPUT(PF01) | \
848  PIN_MODE_INPUT(PF02) | \
849  PIN_MODE_INPUT(PF03) | \
850  PIN_MODE_INPUT(PF04) | \
851  PIN_MODE_INPUT(PF05) | \
852  PIN_MODE_INPUT(PF06) | \
853  PIN_MODE_INPUT(PF07) | \
854  PIN_MODE_INPUT(PF08) | \
855  PIN_MODE_INPUT(PF09) | \
856  PIN_MODE_INPUT(PF10) | \
857  PIN_MODE_INPUT(PF11) | \
858  PIN_MODE_INPUT(PF12) | \
859  PIN_MODE_INPUT(PF13) | \
860  PIN_MODE_INPUT(PF14) | \
861  PIN_MODE_INPUT(PF15))
862 
863 #define VAL_GPIOF_OTYPER (PIN_OTYPE_PUSHPULL(PF00) | \
864  PIN_OTYPE_PUSHPULL(PF01) | \
865  PIN_OTYPE_PUSHPULL(PF02) | \
866  PIN_OTYPE_PUSHPULL(PF03) | \
867  PIN_OTYPE_PUSHPULL(PF04) | \
868  PIN_OTYPE_PUSHPULL(PF05) | \
869  PIN_OTYPE_PUSHPULL(PF06) | \
870  PIN_OTYPE_PUSHPULL(PF07) | \
871  PIN_OTYPE_PUSHPULL(PF08) | \
872  PIN_OTYPE_PUSHPULL(PF09) | \
873  PIN_OTYPE_PUSHPULL(PF10) | \
874  PIN_OTYPE_PUSHPULL(PF11) | \
875  PIN_OTYPE_PUSHPULL(PF12) | \
876  PIN_OTYPE_PUSHPULL(PF13) | \
877  PIN_OTYPE_PUSHPULL(PF14) | \
878  PIN_OTYPE_PUSHPULL(PF15))
879 
880 #define VAL_GPIOF_OSPEEDR (PIN_OSPEED_SPEED_VERYLOW(PF00) | \
881  PIN_OSPEED_SPEED_VERYLOW(PF01) | \
882  PIN_OSPEED_SPEED_VERYLOW(PF02) | \
883  PIN_OSPEED_SPEED_VERYLOW(PF03) | \
884  PIN_OSPEED_SPEED_VERYLOW(PF04) | \
885  PIN_OSPEED_SPEED_VERYLOW(PF05) | \
886  PIN_OSPEED_SPEED_VERYLOW(PF06) | \
887  PIN_OSPEED_SPEED_VERYLOW(PF07) | \
888  PIN_OSPEED_SPEED_VERYLOW(PF08) | \
889  PIN_OSPEED_SPEED_VERYLOW(PF09) | \
890  PIN_OSPEED_SPEED_VERYLOW(PF10) | \
891  PIN_OSPEED_SPEED_VERYLOW(PF11) | \
892  PIN_OSPEED_SPEED_VERYLOW(PF12) | \
893  PIN_OSPEED_SPEED_VERYLOW(PF13) | \
894  PIN_OSPEED_SPEED_VERYLOW(PF14) | \
895  PIN_OSPEED_SPEED_VERYLOW(PF15))
896 
897 #define VAL_GPIOF_PUPDR (PIN_PUPDR_PULLDOWN(PF00) | \
898  PIN_PUPDR_PULLDOWN(PF01) | \
899  PIN_PUPDR_PULLDOWN(PF02) | \
900  PIN_PUPDR_PULLDOWN(PF03) | \
901  PIN_PUPDR_PULLDOWN(PF04) | \
902  PIN_PUPDR_PULLDOWN(PF05) | \
903  PIN_PUPDR_PULLDOWN(PF06) | \
904  PIN_PUPDR_PULLDOWN(PF07) | \
905  PIN_PUPDR_PULLDOWN(PF08) | \
906  PIN_PUPDR_PULLDOWN(PF09) | \
907  PIN_PUPDR_PULLDOWN(PF10) | \
908  PIN_PUPDR_PULLDOWN(PF11) | \
909  PIN_PUPDR_PULLDOWN(PF12) | \
910  PIN_PUPDR_PULLDOWN(PF13) | \
911  PIN_PUPDR_PULLDOWN(PF14) | \
912  PIN_PUPDR_PULLDOWN(PF15))
913 
914 #define VAL_GPIOF_ODR (PIN_ODR_LEVEL_LOW(PF00) | \
915  PIN_ODR_LEVEL_LOW(PF01) | \
916  PIN_ODR_LEVEL_LOW(PF02) | \
917  PIN_ODR_LEVEL_LOW(PF03) | \
918  PIN_ODR_LEVEL_LOW(PF04) | \
919  PIN_ODR_LEVEL_LOW(PF05) | \
920  PIN_ODR_LEVEL_LOW(PF06) | \
921  PIN_ODR_LEVEL_LOW(PF07) | \
922  PIN_ODR_LEVEL_LOW(PF08) | \
923  PIN_ODR_LEVEL_LOW(PF09) | \
924  PIN_ODR_LEVEL_LOW(PF10) | \
925  PIN_ODR_LEVEL_LOW(PF11) | \
926  PIN_ODR_LEVEL_LOW(PF12) | \
927  PIN_ODR_LEVEL_LOW(PF13) | \
928  PIN_ODR_LEVEL_LOW(PF14) | \
929  PIN_ODR_LEVEL_LOW(PF15))
930 
931 #define VAL_GPIOF_AFRL (PIN_AFIO_AF(PF00, 0) | \
932  PIN_AFIO_AF(PF01, 0) | \
933  PIN_AFIO_AF(PF02, 0) | \
934  PIN_AFIO_AF(PF03, 0) | \
935  PIN_AFIO_AF(PF04, 0) | \
936  PIN_AFIO_AF(PF05, 0) | \
937  PIN_AFIO_AF(PF06, 0) | \
938  PIN_AFIO_AF(PF07, 0))
939 
940 #define VAL_GPIOF_AFRH (PIN_AFIO_AF(PF08, 0) | \
941  PIN_AFIO_AF(PF09, 0) | \
942  PIN_AFIO_AF(PF10, 0) | \
943  PIN_AFIO_AF(PF11, 0) | \
944  PIN_AFIO_AF(PF12, 0) | \
945  PIN_AFIO_AF(PF13, 0) | \
946  PIN_AFIO_AF(PF14, 0) | \
947  PIN_AFIO_AF(PF15, 0))
948 
949 #define VAL_GPIOG_MODER (PIN_MODE_INPUT(PG00) | \
950  PIN_MODE_INPUT(PG01) | \
951  PIN_MODE_INPUT(PG02) | \
952  PIN_MODE_INPUT(PG03) | \
953  PIN_MODE_INPUT(PG04) | \
954  PIN_MODE_INPUT(PG05) | \
955  PIN_MODE_INPUT(PG06) | \
956  PIN_MODE_INPUT(PG07) | \
957  PIN_MODE_INPUT(PG08) | \
958  PIN_MODE_INPUT(PG09) | \
959  PIN_MODE_INPUT(PG10) | \
960  PIN_MODE_INPUT(PG11) | \
961  PIN_MODE_INPUT(PG12) | \
962  PIN_MODE_INPUT(PG13) | \
963  PIN_MODE_INPUT(PG14) | \
964  PIN_MODE_INPUT(PG15))
965 
966 #define VAL_GPIOG_OTYPER (PIN_OTYPE_PUSHPULL(PG00) | \
967  PIN_OTYPE_PUSHPULL(PG01) | \
968  PIN_OTYPE_PUSHPULL(PG02) | \
969  PIN_OTYPE_PUSHPULL(PG03) | \
970  PIN_OTYPE_PUSHPULL(PG04) | \
971  PIN_OTYPE_PUSHPULL(PG05) | \
972  PIN_OTYPE_PUSHPULL(PG06) | \
973  PIN_OTYPE_PUSHPULL(PG07) | \
974  PIN_OTYPE_PUSHPULL(PG08) | \
975  PIN_OTYPE_PUSHPULL(PG09) | \
976  PIN_OTYPE_PUSHPULL(PG10) | \
977  PIN_OTYPE_PUSHPULL(PG11) | \
978  PIN_OTYPE_PUSHPULL(PG12) | \
979  PIN_OTYPE_PUSHPULL(PG13) | \
980  PIN_OTYPE_PUSHPULL(PG14) | \
981  PIN_OTYPE_PUSHPULL(PG15))
982 
983 #define VAL_GPIOG_OSPEEDR (PIN_OSPEED_SPEED_VERYLOW(PG00) | \
984  PIN_OSPEED_SPEED_VERYLOW(PG01) | \
985  PIN_OSPEED_SPEED_VERYLOW(PG02) | \
986  PIN_OSPEED_SPEED_VERYLOW(PG03) | \
987  PIN_OSPEED_SPEED_VERYLOW(PG04) | \
988  PIN_OSPEED_SPEED_VERYLOW(PG05) | \
989  PIN_OSPEED_SPEED_VERYLOW(PG06) | \
990  PIN_OSPEED_SPEED_VERYLOW(PG07) | \
991  PIN_OSPEED_SPEED_VERYLOW(PG08) | \
992  PIN_OSPEED_SPEED_VERYLOW(PG09) | \
993  PIN_OSPEED_SPEED_VERYLOW(PG10) | \
994  PIN_OSPEED_SPEED_VERYLOW(PG11) | \
995  PIN_OSPEED_SPEED_VERYLOW(PG12) | \
996  PIN_OSPEED_SPEED_VERYLOW(PG13) | \
997  PIN_OSPEED_SPEED_VERYLOW(PG14) | \
998  PIN_OSPEED_SPEED_VERYLOW(PG15))
999 
1000 #define VAL_GPIOG_PUPDR (PIN_PUPDR_PULLDOWN(PG00) | \
1001  PIN_PUPDR_PULLDOWN(PG01) | \
1002  PIN_PUPDR_PULLDOWN(PG02) | \
1003  PIN_PUPDR_PULLDOWN(PG03) | \
1004  PIN_PUPDR_PULLDOWN(PG04) | \
1005  PIN_PUPDR_PULLDOWN(PG05) | \
1006  PIN_PUPDR_PULLDOWN(PG06) | \
1007  PIN_PUPDR_PULLDOWN(PG07) | \
1008  PIN_PUPDR_PULLDOWN(PG08) | \
1009  PIN_PUPDR_PULLDOWN(PG09) | \
1010  PIN_PUPDR_PULLDOWN(PG10) | \
1011  PIN_PUPDR_PULLDOWN(PG11) | \
1012  PIN_PUPDR_PULLDOWN(PG12) | \
1013  PIN_PUPDR_PULLDOWN(PG13) | \
1014  PIN_PUPDR_PULLDOWN(PG14) | \
1015  PIN_PUPDR_PULLDOWN(PG15))
1016 
1017 #define VAL_GPIOG_ODR (PIN_ODR_LEVEL_LOW(PG00) | \
1018  PIN_ODR_LEVEL_LOW(PG01) | \
1019  PIN_ODR_LEVEL_LOW(PG02) | \
1020  PIN_ODR_LEVEL_LOW(PG03) | \
1021  PIN_ODR_LEVEL_LOW(PG04) | \
1022  PIN_ODR_LEVEL_LOW(PG05) | \
1023  PIN_ODR_LEVEL_LOW(PG06) | \
1024  PIN_ODR_LEVEL_LOW(PG07) | \
1025  PIN_ODR_LEVEL_LOW(PG08) | \
1026  PIN_ODR_LEVEL_LOW(PG09) | \
1027  PIN_ODR_LEVEL_LOW(PG10) | \
1028  PIN_ODR_LEVEL_LOW(PG11) | \
1029  PIN_ODR_LEVEL_LOW(PG12) | \
1030  PIN_ODR_LEVEL_LOW(PG13) | \
1031  PIN_ODR_LEVEL_LOW(PG14) | \
1032  PIN_ODR_LEVEL_LOW(PG15))
1033 
1034 #define VAL_GPIOG_AFRL (PIN_AFIO_AF(PG00, 0) | \
1035  PIN_AFIO_AF(PG01, 0) | \
1036  PIN_AFIO_AF(PG02, 0) | \
1037  PIN_AFIO_AF(PG03, 0) | \
1038  PIN_AFIO_AF(PG04, 0) | \
1039  PIN_AFIO_AF(PG05, 0) | \
1040  PIN_AFIO_AF(PG06, 0) | \
1041  PIN_AFIO_AF(PG07, 0))
1042 
1043 #define VAL_GPIOG_AFRH (PIN_AFIO_AF(PG08, 0) | \
1044  PIN_AFIO_AF(PG09, 0) | \
1045  PIN_AFIO_AF(PG10, 0) | \
1046  PIN_AFIO_AF(PG11, 0) | \
1047  PIN_AFIO_AF(PG12, 0) | \
1048  PIN_AFIO_AF(PG13, 0) | \
1049  PIN_AFIO_AF(PG14, 0) | \
1050  PIN_AFIO_AF(PG15, 0))
1051 
1052 #define VAL_GPIOH_MODER (PIN_MODE_ALTERNATE(PH00_OSC_IN) | \
1053  PIN_MODE_ALTERNATE(PH01_OSC_OUT) | \
1054  PIN_MODE_INPUT(PH02) | \
1055  PIN_MODE_INPUT(PH03) | \
1056  PIN_MODE_INPUT(PH04) | \
1057  PIN_MODE_INPUT(PH05) | \
1058  PIN_MODE_INPUT(PH06) | \
1059  PIN_MODE_INPUT(PH07) | \
1060  PIN_MODE_INPUT(PH08) | \
1061  PIN_MODE_INPUT(PH09) | \
1062  PIN_MODE_INPUT(PH10) | \
1063  PIN_MODE_INPUT(PH11) | \
1064  PIN_MODE_INPUT(PH12) | \
1065  PIN_MODE_INPUT(PH13) | \
1066  PIN_MODE_INPUT(PH14) | \
1067  PIN_MODE_INPUT(PH15))
1068 
1069 #define VAL_GPIOH_OTYPER (PIN_OTYPE_PUSHPULL(PH00_OSC_IN) | \
1070  PIN_OTYPE_PUSHPULL(PH01_OSC_OUT) | \
1071  PIN_OTYPE_PUSHPULL(PH02) | \
1072  PIN_OTYPE_PUSHPULL(PH03) | \
1073  PIN_OTYPE_PUSHPULL(PH04) | \
1074  PIN_OTYPE_PUSHPULL(PH05) | \
1075  PIN_OTYPE_PUSHPULL(PH06) | \
1076  PIN_OTYPE_PUSHPULL(PH07) | \
1077  PIN_OTYPE_PUSHPULL(PH08) | \
1078  PIN_OTYPE_PUSHPULL(PH09) | \
1079  PIN_OTYPE_PUSHPULL(PH10) | \
1080  PIN_OTYPE_PUSHPULL(PH11) | \
1081  PIN_OTYPE_PUSHPULL(PH12) | \
1082  PIN_OTYPE_PUSHPULL(PH13) | \
1083  PIN_OTYPE_PUSHPULL(PH14) | \
1084  PIN_OTYPE_PUSHPULL(PH15))
1085 
1086 #define VAL_GPIOH_OSPEEDR (PIN_OSPEED_SPEED_HIGH(PH00_OSC_IN) | \
1087  PIN_OSPEED_SPEED_HIGH(PH01_OSC_OUT) | \
1088  PIN_OSPEED_SPEED_VERYLOW(PH02) | \
1089  PIN_OSPEED_SPEED_VERYLOW(PH03) | \
1090  PIN_OSPEED_SPEED_VERYLOW(PH04) | \
1091  PIN_OSPEED_SPEED_VERYLOW(PH05) | \
1092  PIN_OSPEED_SPEED_VERYLOW(PH06) | \
1093  PIN_OSPEED_SPEED_VERYLOW(PH07) | \
1094  PIN_OSPEED_SPEED_VERYLOW(PH08) | \
1095  PIN_OSPEED_SPEED_VERYLOW(PH09) | \
1096  PIN_OSPEED_SPEED_VERYLOW(PH10) | \
1097  PIN_OSPEED_SPEED_VERYLOW(PH11) | \
1098  PIN_OSPEED_SPEED_VERYLOW(PH12) | \
1099  PIN_OSPEED_SPEED_VERYLOW(PH13) | \
1100  PIN_OSPEED_SPEED_VERYLOW(PH14) | \
1101  PIN_OSPEED_SPEED_VERYLOW(PH15))
1102 
1103 #define VAL_GPIOH_PUPDR (PIN_PUPDR_FLOATING(PH00_OSC_IN) | \
1104  PIN_PUPDR_FLOATING(PH01_OSC_OUT) | \
1105  PIN_PUPDR_PULLDOWN(PH02) | \
1106  PIN_PUPDR_PULLDOWN(PH03) | \
1107  PIN_PUPDR_PULLDOWN(PH04) | \
1108  PIN_PUPDR_PULLDOWN(PH05) | \
1109  PIN_PUPDR_PULLDOWN(PH06) | \
1110  PIN_PUPDR_PULLDOWN(PH07) | \
1111  PIN_PUPDR_PULLDOWN(PH08) | \
1112  PIN_PUPDR_PULLDOWN(PH09) | \
1113  PIN_PUPDR_PULLDOWN(PH10) | \
1114  PIN_PUPDR_PULLDOWN(PH11) | \
1115  PIN_PUPDR_PULLDOWN(PH12) | \
1116  PIN_PUPDR_PULLDOWN(PH13) | \
1117  PIN_PUPDR_PULLDOWN(PH14) | \
1118  PIN_PUPDR_PULLDOWN(PH15))
1119 
1120 #define VAL_GPIOH_ODR (PIN_ODR_LEVEL_HIGH(PH00_OSC_IN) | \
1121  PIN_ODR_LEVEL_HIGH(PH01_OSC_OUT) | \
1122  PIN_ODR_LEVEL_LOW(PH02) | \
1123  PIN_ODR_LEVEL_LOW(PH03) | \
1124  PIN_ODR_LEVEL_LOW(PH04) | \
1125  PIN_ODR_LEVEL_LOW(PH05) | \
1126  PIN_ODR_LEVEL_LOW(PH06) | \
1127  PIN_ODR_LEVEL_LOW(PH07) | \
1128  PIN_ODR_LEVEL_LOW(PH08) | \
1129  PIN_ODR_LEVEL_LOW(PH09) | \
1130  PIN_ODR_LEVEL_LOW(PH10) | \
1131  PIN_ODR_LEVEL_LOW(PH11) | \
1132  PIN_ODR_LEVEL_LOW(PH12) | \
1133  PIN_ODR_LEVEL_LOW(PH13) | \
1134  PIN_ODR_LEVEL_LOW(PH14) | \
1135  PIN_ODR_LEVEL_LOW(PH15))
1136 
1137 #define VAL_GPIOH_AFRL (PIN_AFIO_AF(PH00_OSC_IN, 0) | \
1138  PIN_AFIO_AF(PH01_OSC_OUT, 0) | \
1139  PIN_AFIO_AF(PH02, 0) | \
1140  PIN_AFIO_AF(PH03, 0) | \
1141  PIN_AFIO_AF(PH04, 0) | \
1142  PIN_AFIO_AF(PH05, 0) | \
1143  PIN_AFIO_AF(PH06, 0) | \
1144  PIN_AFIO_AF(PH07, 0))
1145 
1146 #define VAL_GPIOH_AFRH (PIN_AFIO_AF(PH08, 0) | \
1147  PIN_AFIO_AF(PH09, 0) | \
1148  PIN_AFIO_AF(PH10, 0) | \
1149  PIN_AFIO_AF(PH11, 0) | \
1150  PIN_AFIO_AF(PH12, 0) | \
1151  PIN_AFIO_AF(PH13, 0) | \
1152  PIN_AFIO_AF(PH14, 0) | \
1153  PIN_AFIO_AF(PH15, 0))
1154 
1155 #define VAL_GPIOI_MODER (PIN_MODE_INPUT(PI00) | \
1156  PIN_MODE_INPUT(PI01) | \
1157  PIN_MODE_INPUT(PI02) | \
1158  PIN_MODE_INPUT(PI03) | \
1159  PIN_MODE_INPUT(PI04) | \
1160  PIN_MODE_INPUT(PI05) | \
1161  PIN_MODE_INPUT(PI06) | \
1162  PIN_MODE_INPUT(PI07) | \
1163  PIN_MODE_INPUT(PI08) | \
1164  PIN_MODE_INPUT(PI09) | \
1165  PIN_MODE_INPUT(PI10) | \
1166  PIN_MODE_INPUT(PI11) | \
1167  PIN_MODE_INPUT(PI12) | \
1168  PIN_MODE_INPUT(PI13) | \
1169  PIN_MODE_INPUT(PI14) | \
1170  PIN_MODE_INPUT(PI15))
1171 
1172 #define VAL_GPIOI_OTYPER (PIN_OTYPE_PUSHPULL(PI00) | \
1173  PIN_OTYPE_PUSHPULL(PI01) | \
1174  PIN_OTYPE_PUSHPULL(PI02) | \
1175  PIN_OTYPE_PUSHPULL(PI03) | \
1176  PIN_OTYPE_PUSHPULL(PI04) | \
1177  PIN_OTYPE_PUSHPULL(PI05) | \
1178  PIN_OTYPE_PUSHPULL(PI06) | \
1179  PIN_OTYPE_PUSHPULL(PI07) | \
1180  PIN_OTYPE_PUSHPULL(PI08) | \
1181  PIN_OTYPE_PUSHPULL(PI09) | \
1182  PIN_OTYPE_PUSHPULL(PI10) | \
1183  PIN_OTYPE_PUSHPULL(PI11) | \
1184  PIN_OTYPE_PUSHPULL(PI12) | \
1185  PIN_OTYPE_PUSHPULL(PI13) | \
1186  PIN_OTYPE_PUSHPULL(PI14) | \
1187  PIN_OTYPE_PUSHPULL(PI15))
1188 
1189 #define VAL_GPIOI_OSPEEDR (PIN_OSPEED_SPEED_VERYLOW(PI00) | \
1190  PIN_OSPEED_SPEED_VERYLOW(PI01) | \
1191  PIN_OSPEED_SPEED_VERYLOW(PI02) | \
1192  PIN_OSPEED_SPEED_VERYLOW(PI03) | \
1193  PIN_OSPEED_SPEED_VERYLOW(PI04) | \
1194  PIN_OSPEED_SPEED_VERYLOW(PI05) | \
1195  PIN_OSPEED_SPEED_VERYLOW(PI06) | \
1196  PIN_OSPEED_SPEED_VERYLOW(PI07) | \
1197  PIN_OSPEED_SPEED_VERYLOW(PI08) | \
1198  PIN_OSPEED_SPEED_VERYLOW(PI09) | \
1199  PIN_OSPEED_SPEED_VERYLOW(PI10) | \
1200  PIN_OSPEED_SPEED_VERYLOW(PI11) | \
1201  PIN_OSPEED_SPEED_VERYLOW(PI12) | \
1202  PIN_OSPEED_SPEED_VERYLOW(PI13) | \
1203  PIN_OSPEED_SPEED_VERYLOW(PI14) | \
1204  PIN_OSPEED_SPEED_VERYLOW(PI15))
1205 
1206 #define VAL_GPIOI_PUPDR (PIN_PUPDR_PULLDOWN(PI00) | \
1207  PIN_PUPDR_PULLDOWN(PI01) | \
1208  PIN_PUPDR_PULLDOWN(PI02) | \
1209  PIN_PUPDR_PULLDOWN(PI03) | \
1210  PIN_PUPDR_PULLDOWN(PI04) | \
1211  PIN_PUPDR_PULLDOWN(PI05) | \
1212  PIN_PUPDR_PULLDOWN(PI06) | \
1213  PIN_PUPDR_PULLDOWN(PI07) | \
1214  PIN_PUPDR_PULLDOWN(PI08) | \
1215  PIN_PUPDR_PULLDOWN(PI09) | \
1216  PIN_PUPDR_PULLDOWN(PI10) | \
1217  PIN_PUPDR_PULLDOWN(PI11) | \
1218  PIN_PUPDR_PULLDOWN(PI12) | \
1219  PIN_PUPDR_PULLDOWN(PI13) | \
1220  PIN_PUPDR_PULLDOWN(PI14) | \
1221  PIN_PUPDR_PULLDOWN(PI15))
1222 
1223 #define VAL_GPIOI_ODR (PIN_ODR_LEVEL_LOW(PI00) | \
1224  PIN_ODR_LEVEL_LOW(PI01) | \
1225  PIN_ODR_LEVEL_LOW(PI02) | \
1226  PIN_ODR_LEVEL_LOW(PI03) | \
1227  PIN_ODR_LEVEL_LOW(PI04) | \
1228  PIN_ODR_LEVEL_LOW(PI05) | \
1229  PIN_ODR_LEVEL_LOW(PI06) | \
1230  PIN_ODR_LEVEL_LOW(PI07) | \
1231  PIN_ODR_LEVEL_LOW(PI08) | \
1232  PIN_ODR_LEVEL_LOW(PI09) | \
1233  PIN_ODR_LEVEL_LOW(PI10) | \
1234  PIN_ODR_LEVEL_LOW(PI11) | \
1235  PIN_ODR_LEVEL_LOW(PI12) | \
1236  PIN_ODR_LEVEL_LOW(PI13) | \
1237  PIN_ODR_LEVEL_LOW(PI14) | \
1238  PIN_ODR_LEVEL_LOW(PI15))
1239 
1240 #define VAL_GPIOI_AFRL (PIN_AFIO_AF(PI00, 0) | \
1241  PIN_AFIO_AF(PI01, 0) | \
1242  PIN_AFIO_AF(PI02, 0) | \
1243  PIN_AFIO_AF(PI03, 0) | \
1244  PIN_AFIO_AF(PI04, 0) | \
1245  PIN_AFIO_AF(PI05, 0) | \
1246  PIN_AFIO_AF(PI06, 0) | \
1247  PIN_AFIO_AF(PI07, 0))
1248 
1249 #define VAL_GPIOI_AFRH (PIN_AFIO_AF(PI08, 0) | \
1250  PIN_AFIO_AF(PI09, 0) | \
1251  PIN_AFIO_AF(PI10, 0) | \
1252  PIN_AFIO_AF(PI11, 0) | \
1253  PIN_AFIO_AF(PI12, 0) | \
1254  PIN_AFIO_AF(PI13, 0) | \
1255  PIN_AFIO_AF(PI14, 0) | \
1256  PIN_AFIO_AF(PI15, 0))
1257 
1258 #define VAL_GPIOJ_MODER (PIN_MODE_INPUT(PJ00) | \
1259  PIN_MODE_INPUT(PJ01) | \
1260  PIN_MODE_INPUT(PJ02) | \
1261  PIN_MODE_INPUT(PJ03) | \
1262  PIN_MODE_INPUT(PJ04) | \
1263  PIN_MODE_INPUT(PJ05) | \
1264  PIN_MODE_INPUT(PJ06) | \
1265  PIN_MODE_INPUT(PJ07) | \
1266  PIN_MODE_INPUT(PJ08) | \
1267  PIN_MODE_INPUT(PJ09) | \
1268  PIN_MODE_INPUT(PJ10) | \
1269  PIN_MODE_INPUT(PJ11) | \
1270  PIN_MODE_INPUT(PJ12) | \
1271  PIN_MODE_INPUT(PJ13) | \
1272  PIN_MODE_INPUT(PJ14) | \
1273  PIN_MODE_INPUT(PJ15))
1274 
1275 #define VAL_GPIOJ_OTYPER (PIN_OTYPE_PUSHPULL(PJ00) | \
1276  PIN_OTYPE_PUSHPULL(PJ01) | \
1277  PIN_OTYPE_PUSHPULL(PJ02) | \
1278  PIN_OTYPE_PUSHPULL(PJ03) | \
1279  PIN_OTYPE_PUSHPULL(PJ04) | \
1280  PIN_OTYPE_PUSHPULL(PJ05) | \
1281  PIN_OTYPE_PUSHPULL(PJ06) | \
1282  PIN_OTYPE_PUSHPULL(PJ07) | \
1283  PIN_OTYPE_PUSHPULL(PJ08) | \
1284  PIN_OTYPE_PUSHPULL(PJ09) | \
1285  PIN_OTYPE_PUSHPULL(PJ10) | \
1286  PIN_OTYPE_PUSHPULL(PJ11) | \
1287  PIN_OTYPE_PUSHPULL(PJ12) | \
1288  PIN_OTYPE_PUSHPULL(PJ13) | \
1289  PIN_OTYPE_PUSHPULL(PJ14) | \
1290  PIN_OTYPE_PUSHPULL(PJ15))
1291 
1292 #define VAL_GPIOJ_OSPEEDR (PIN_OSPEED_SPEED_VERYLOW(PJ00) | \
1293  PIN_OSPEED_SPEED_VERYLOW(PJ01) | \
1294  PIN_OSPEED_SPEED_VERYLOW(PJ02) | \
1295  PIN_OSPEED_SPEED_VERYLOW(PJ03) | \
1296  PIN_OSPEED_SPEED_VERYLOW(PJ04) | \
1297  PIN_OSPEED_SPEED_VERYLOW(PJ05) | \
1298  PIN_OSPEED_SPEED_VERYLOW(PJ06) | \
1299  PIN_OSPEED_SPEED_VERYLOW(PJ07) | \
1300  PIN_OSPEED_SPEED_VERYLOW(PJ08) | \
1301  PIN_OSPEED_SPEED_VERYLOW(PJ09) | \
1302  PIN_OSPEED_SPEED_VERYLOW(PJ10) | \
1303  PIN_OSPEED_SPEED_VERYLOW(PJ11) | \
1304  PIN_OSPEED_SPEED_VERYLOW(PJ12) | \
1305  PIN_OSPEED_SPEED_VERYLOW(PJ13) | \
1306  PIN_OSPEED_SPEED_VERYLOW(PJ14) | \
1307  PIN_OSPEED_SPEED_VERYLOW(PJ15))
1308 
1309 #define VAL_GPIOJ_PUPDR (PIN_PUPDR_PULLDOWN(PJ00) | \
1310  PIN_PUPDR_PULLDOWN(PJ01) | \
1311  PIN_PUPDR_PULLDOWN(PJ02) | \
1312  PIN_PUPDR_PULLDOWN(PJ03) | \
1313  PIN_PUPDR_PULLDOWN(PJ04) | \
1314  PIN_PUPDR_PULLDOWN(PJ05) | \
1315  PIN_PUPDR_PULLDOWN(PJ06) | \
1316  PIN_PUPDR_PULLDOWN(PJ07) | \
1317  PIN_PUPDR_PULLDOWN(PJ08) | \
1318  PIN_PUPDR_PULLDOWN(PJ09) | \
1319  PIN_PUPDR_PULLDOWN(PJ10) | \
1320  PIN_PUPDR_PULLDOWN(PJ11) | \
1321  PIN_PUPDR_PULLDOWN(PJ12) | \
1322  PIN_PUPDR_PULLDOWN(PJ13) | \
1323  PIN_PUPDR_PULLDOWN(PJ14) | \
1324  PIN_PUPDR_PULLDOWN(PJ15))
1325 
1326 #define VAL_GPIOJ_ODR (PIN_ODR_LEVEL_LOW(PJ00) | \
1327  PIN_ODR_LEVEL_LOW(PJ01) | \
1328  PIN_ODR_LEVEL_LOW(PJ02) | \
1329  PIN_ODR_LEVEL_LOW(PJ03) | \
1330  PIN_ODR_LEVEL_LOW(PJ04) | \
1331  PIN_ODR_LEVEL_LOW(PJ05) | \
1332  PIN_ODR_LEVEL_LOW(PJ06) | \
1333  PIN_ODR_LEVEL_LOW(PJ07) | \
1334  PIN_ODR_LEVEL_LOW(PJ08) | \
1335  PIN_ODR_LEVEL_LOW(PJ09) | \
1336  PIN_ODR_LEVEL_LOW(PJ10) | \
1337  PIN_ODR_LEVEL_LOW(PJ11) | \
1338  PIN_ODR_LEVEL_LOW(PJ12) | \
1339  PIN_ODR_LEVEL_LOW(PJ13) | \
1340  PIN_ODR_LEVEL_LOW(PJ14) | \
1341  PIN_ODR_LEVEL_LOW(PJ15))
1342 
1343 #define VAL_GPIOJ_AFRL (PIN_AFIO_AF(PJ00, 0) | \
1344  PIN_AFIO_AF(PJ01, 0) | \
1345  PIN_AFIO_AF(PJ02, 0) | \
1346  PIN_AFIO_AF(PJ03, 0) | \
1347  PIN_AFIO_AF(PJ04, 0) | \
1348  PIN_AFIO_AF(PJ05, 0) | \
1349  PIN_AFIO_AF(PJ06, 0) | \
1350  PIN_AFIO_AF(PJ07, 0))
1351 
1352 #define VAL_GPIOJ_AFRH (PIN_AFIO_AF(PJ08, 0) | \
1353  PIN_AFIO_AF(PJ09, 0) | \
1354  PIN_AFIO_AF(PJ10, 0) | \
1355  PIN_AFIO_AF(PJ11, 0) | \
1356  PIN_AFIO_AF(PJ12, 0) | \
1357  PIN_AFIO_AF(PJ13, 0) | \
1358  PIN_AFIO_AF(PJ14, 0) | \
1359  PIN_AFIO_AF(PJ15, 0))
1360 
1361 #define VAL_GPIOK_MODER (PIN_MODE_INPUT(PK00) | \
1362  PIN_MODE_INPUT(PK01) | \
1363  PIN_MODE_INPUT(PK02) | \
1364  PIN_MODE_INPUT(PK03) | \
1365  PIN_MODE_INPUT(PK04) | \
1366  PIN_MODE_INPUT(PK05) | \
1367  PIN_MODE_INPUT(PK06) | \
1368  PIN_MODE_INPUT(PK07) | \
1369  PIN_MODE_INPUT(PK08) | \
1370  PIN_MODE_INPUT(PK09) | \
1371  PIN_MODE_INPUT(PK10) | \
1372  PIN_MODE_INPUT(PK11) | \
1373  PIN_MODE_INPUT(PK12) | \
1374  PIN_MODE_INPUT(PK13) | \
1375  PIN_MODE_INPUT(PK14) | \
1376  PIN_MODE_INPUT(PK15))
1377 
1378 #define VAL_GPIOK_OTYPER (PIN_OTYPE_PUSHPULL(PK00) | \
1379  PIN_OTYPE_PUSHPULL(PK01) | \
1380  PIN_OTYPE_PUSHPULL(PK02) | \
1381  PIN_OTYPE_PUSHPULL(PK03) | \
1382  PIN_OTYPE_PUSHPULL(PK04) | \
1383  PIN_OTYPE_PUSHPULL(PK05) | \
1384  PIN_OTYPE_PUSHPULL(PK06) | \
1385  PIN_OTYPE_PUSHPULL(PK07) | \
1386  PIN_OTYPE_PUSHPULL(PK08) | \
1387  PIN_OTYPE_PUSHPULL(PK09) | \
1388  PIN_OTYPE_PUSHPULL(PK10) | \
1389  PIN_OTYPE_PUSHPULL(PK11) | \
1390  PIN_OTYPE_PUSHPULL(PK12) | \
1391  PIN_OTYPE_PUSHPULL(PK13) | \
1392  PIN_OTYPE_PUSHPULL(PK14) | \
1393  PIN_OTYPE_PUSHPULL(PK15))
1394 
1395 #define VAL_GPIOK_OSPEEDR (PIN_OSPEED_SPEED_VERYLOW(PK00) | \
1396  PIN_OSPEED_SPEED_VERYLOW(PK01) | \
1397  PIN_OSPEED_SPEED_VERYLOW(PK02) | \
1398  PIN_OSPEED_SPEED_VERYLOW(PK03) | \
1399  PIN_OSPEED_SPEED_VERYLOW(PK04) | \
1400  PIN_OSPEED_SPEED_VERYLOW(PK05) | \
1401  PIN_OSPEED_SPEED_VERYLOW(PK06) | \
1402  PIN_OSPEED_SPEED_VERYLOW(PK07) | \
1403  PIN_OSPEED_SPEED_VERYLOW(PK08) | \
1404  PIN_OSPEED_SPEED_VERYLOW(PK09) | \
1405  PIN_OSPEED_SPEED_VERYLOW(PK10) | \
1406  PIN_OSPEED_SPEED_VERYLOW(PK11) | \
1407  PIN_OSPEED_SPEED_VERYLOW(PK12) | \
1408  PIN_OSPEED_SPEED_VERYLOW(PK13) | \
1409  PIN_OSPEED_SPEED_VERYLOW(PK14) | \
1410  PIN_OSPEED_SPEED_VERYLOW(PK15))
1411 
1412 #define VAL_GPIOK_PUPDR (PIN_PUPDR_PULLDOWN(PK00) | \
1413  PIN_PUPDR_PULLDOWN(PK01) | \
1414  PIN_PUPDR_PULLDOWN(PK02) | \
1415  PIN_PUPDR_PULLDOWN(PK03) | \
1416  PIN_PUPDR_PULLDOWN(PK04) | \
1417  PIN_PUPDR_PULLDOWN(PK05) | \
1418  PIN_PUPDR_PULLDOWN(PK06) | \
1419  PIN_PUPDR_PULLDOWN(PK07) | \
1420  PIN_PUPDR_PULLDOWN(PK08) | \
1421  PIN_PUPDR_PULLDOWN(PK09) | \
1422  PIN_PUPDR_PULLDOWN(PK10) | \
1423  PIN_PUPDR_PULLDOWN(PK11) | \
1424  PIN_PUPDR_PULLDOWN(PK12) | \
1425  PIN_PUPDR_PULLDOWN(PK13) | \
1426  PIN_PUPDR_PULLDOWN(PK14) | \
1427  PIN_PUPDR_PULLDOWN(PK15))
1428 
1429 #define VAL_GPIOK_ODR (PIN_ODR_LEVEL_LOW(PK00) | \
1430  PIN_ODR_LEVEL_LOW(PK01) | \
1431  PIN_ODR_LEVEL_LOW(PK02) | \
1432  PIN_ODR_LEVEL_LOW(PK03) | \
1433  PIN_ODR_LEVEL_LOW(PK04) | \
1434  PIN_ODR_LEVEL_LOW(PK05) | \
1435  PIN_ODR_LEVEL_LOW(PK06) | \
1436  PIN_ODR_LEVEL_LOW(PK07) | \
1437  PIN_ODR_LEVEL_LOW(PK08) | \
1438  PIN_ODR_LEVEL_LOW(PK09) | \
1439  PIN_ODR_LEVEL_LOW(PK10) | \
1440  PIN_ODR_LEVEL_LOW(PK11) | \
1441  PIN_ODR_LEVEL_LOW(PK12) | \
1442  PIN_ODR_LEVEL_LOW(PK13) | \
1443  PIN_ODR_LEVEL_LOW(PK14) | \
1444  PIN_ODR_LEVEL_LOW(PK15))
1445 
1446 #define VAL_GPIOK_AFRL (PIN_AFIO_AF(PK00, 0) | \
1447  PIN_AFIO_AF(PK01, 0) | \
1448  PIN_AFIO_AF(PK02, 0) | \
1449  PIN_AFIO_AF(PK03, 0) | \
1450  PIN_AFIO_AF(PK04, 0) | \
1451  PIN_AFIO_AF(PK05, 0) | \
1452  PIN_AFIO_AF(PK06, 0) | \
1453  PIN_AFIO_AF(PK07, 0))
1454 
1455 #define VAL_GPIOK_AFRH (PIN_AFIO_AF(PK08, 0) | \
1456  PIN_AFIO_AF(PK09, 0) | \
1457  PIN_AFIO_AF(PK10, 0) | \
1458  PIN_AFIO_AF(PK11, 0) | \
1459  PIN_AFIO_AF(PK12, 0) | \
1460  PIN_AFIO_AF(PK13, 0) | \
1461  PIN_AFIO_AF(PK14, 0) | \
1462  PIN_AFIO_AF(PK15, 0))
1463 
1464 #define AF_PA11_OTG_FS_DM 10U
1465 #define AF_LINE_A11_OTG_FS_DM 10U
1466 #define AF_PA12_OTG_FS_DP 10U
1467 #define AF_LINE_A12_OTG_FS_DP 10U
1468 #define AF_PA13_SWDIO 0U
1469 #define AF_LINE_A13_SWDIO 0U
1470 #define AF_PA14_SWCLK 0U
1471 #define AF_LINE_A14_SWCLK 0U
1472 #define AF_PA15_UART7_TX 12U
1473 #define AF_LINE_A15_UART7_TX 12U
1474 #define AF_PB03_UART7_RX 12U
1475 #define AF_LINE_B03_UART7_RX 12U
1476 #define AF_PB05_DSHOT_RX 1U
1477 #define AF_LINE_B05_DSHOT_RX 1U
1478 #define AF_PB06_SRVB1 2U
1479 #define AF_LINE_B06_SRVB1 2U
1480 #define AF_PB07_SRVB2 2U
1481 #define AF_LINE_B07_SRVB2 2U
1482 #define AF_PB08_SRVB3 2U
1483 #define AF_LINE_B08_SRVB3 2U
1484 #define AF_PB09_SRVB4 2U
1485 #define AF_LINE_B09_SRVB4 2U
1486 #define AF_PB10_I2C2_SCL_EXTERNAL 4U
1487 #define AF_LINE_B10_I2C2_SCL_EXTERNAL 4U
1488 #define AF_PB11_I2C2_SDA_EXTERNAL 4U
1489 #define AF_LINE_B11_I2C2_SDA_EXTERNAL 4U
1490 #define AF_PB14_SPI2_EXTERNAL_MISO 5U
1491 #define AF_LINE_B14_SPI2_EXTERNAL_MISO 5U
1492 #define AF_PB15_SPI2_EXTERNAL_MOSI 5U
1493 #define AF_LINE_B15_SPI2_EXTERNAL_MOSI 5U
1494 #define AF_PC08_SDMMC1_D0 12U
1495 #define AF_LINE_C08_SDMMC1_D0 12U
1496 #define AF_PC09_SDMMC1_D1 12U
1497 #define AF_LINE_C09_SDMMC1_D1 12U
1498 #define AF_PC10_SDMMC1_D2 12U
1499 #define AF_LINE_C10_SDMMC1_D2 12U
1500 #define AF_PC11_SDMMC1_D3 12U
1501 #define AF_LINE_C11_SDMMC1_D3 12U
1502 #define AF_PC12_SDMMC1_CK 12U
1503 #define AF_LINE_C12_SDMMC1_CK 12U
1504 #define AF_PC14_OSC32_IN 0U
1505 #define AF_LINE_C14_OSC32_IN 0U
1506 #define AF_PC15_OSC32_OUT 0U
1507 #define AF_LINE_C15_OSC32_OUT 0U
1508 #define AF_PD00_CAN_RX 9U
1509 #define AF_LINE_D00_CAN_RX 9U
1510 #define AF_PD01_CAN_TX 9U
1511 #define AF_LINE_D01_CAN_TX 9U
1512 #define AF_PD02_SDMMC1_CMD 12U
1513 #define AF_LINE_D02_SDMMC1_CMD 12U
1514 #define AF_PD03_SPI2_EXTERNAL_CLK 5U
1515 #define AF_LINE_D03_SPI2_EXTERNAL_CLK 5U
1516 #define AF_PD05_UART_TX2 7U
1517 #define AF_LINE_D05_UART_TX2 7U
1518 #define AF_PD06_UART_RX2 7U
1519 #define AF_LINE_D06_UART_RX2 7U
1520 #define AF_PD08_UART_TX3 7U
1521 #define AF_LINE_D08_UART_TX3 7U
1522 #define AF_PD09_UART_RX3 7U
1523 #define AF_LINE_D09_UART_RX3 7U
1524 #define AF_PD12_I2C4_SCL_EXTERNAL 4U
1525 #define AF_LINE_D12_I2C4_SCL_EXTERNAL 4U
1526 #define AF_PD13_I2C4_SDA_EXTERNAL 4U
1527 #define AF_LINE_D13_I2C4_SDA_EXTERNAL 4U
1528 #define AF_PE00_RC1 8U
1529 #define AF_LINE_E00_RC1 8U
1530 #define AF_PE02_SPI4_INTERNAL_CLK 5U
1531 #define AF_LINE_E02_SPI4_INTERNAL_CLK 5U
1532 #define AF_PE05_SPI4_INTERNAL_MISO 5U
1533 #define AF_LINE_E05_SPI4_INTERNAL_MISO 5U
1534 #define AF_PE06_SPI4_INTERNAL_MOSI 5U
1535 #define AF_LINE_E06_SPI4_INTERNAL_MOSI 5U
1536 #define AF_PE09_SRVA1 1U
1537 #define AF_LINE_E09_SRVA1 1U
1538 #define AF_PE11_SRVA2 1U
1539 #define AF_LINE_E11_SRVA2 1U
1540 #define AF_PE13_SRVA3 1U
1541 #define AF_LINE_E13_SRVA3 1U
1542 #define AF_PE14_SRVA4 1U
1543 #define AF_LINE_E14_SRVA4 1U
1544 #define AF_PH00_OSC_IN 0U
1545 #define AF_LINE_H00_OSC_IN 0U
1546 #define AF_PH01_OSC_OUT 0U
1547 #define AF_LINE_H01_OSC_OUT 0U
1548 
1549 
1550 #if !defined(_FROM_ASM_)
1551 #ifdef __cplusplus
1552 extern "C" {
1553 #endif
1554  void boardInit(void);
1555 #ifdef __cplusplus
1556 }
1557 #endif
1558 #endif /* _FROM_ASM_ */
1559 
void boardInit(void)
Board-specific initialization code.
Definition: board.c:261