Statistics
| Branch: | Tag: | Revision:

amiro-os / modules / LightRing_1-2 / board.h @ 510b93cc

History | View | Annotate | Download (42.8 KB)

1 9ae7c4f3 Thomas Schöpping
/*
2
AMiRo-OS is an operating system designed for the Autonomous Mini Robot (AMiRo) platform.
3
Copyright (C) 2016..2019  Thomas Schöpping et al.
4

5
This program is free software: you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
9

10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
GNU General Public License for more details.
14

15
You should have received a copy of the GNU General Public License
16
along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
/**
20
 * @file
21 034cb15a Thomas Schöpping
 * @brief   LightRing v1.2 Board specific macros.
22 9ae7c4f3 Thomas Schöpping
 *
23
 * @addtogroup lightring_board
24
 * @{
25
 */
26
27
#ifndef BOARD_H
28
#define BOARD_H
29
30 cda14729 Thomas Schöpping
/*===========================================================================*/
31
/* Driver constants.                                                         */
32
/*===========================================================================*/
33
34 9ae7c4f3 Thomas Schöpping
/*
35 034cb15a Thomas Schöpping
 * Setup for AMiRo LightRing v1.2 board.
36 9ae7c4f3 Thomas Schöpping
 */
37
38
/*
39
 * Board identifier.
40
 */
41
#define BOARD_LIGHTRING_1_2
42
#define BOARD_NAME              "AMiRo LightRing v1.2"
43
44
/*
45
 * Board oscillators-related settings.
46
 * NOTE: LSE not fitted.
47
 */
48
#if !defined(STM32_LSECLK)
49
#define STM32_LSECLK                0U
50
#endif
51
52
#if !defined(STM32_HSECLK)
53
#define STM32_HSECLK                8000000U
54
#endif
55
56
/*
57
 * Board voltages.
58
 * Required for performance limits calculation.
59
 */
60
#define STM32_VDD                   330U
61
62
/*
63
 * MCU type as defined in the ST header.
64
 */
65
#define STM32F103xE
66
67
/*
68 f606f432 Thomas Schöpping
 * Identifiers for the several breakout modules, which can be attached to the LightRing v1.2 module.
69 0b989911 Cung Sang
 */
70 f606f432 Thomas Schöpping
#define BOARD_BREAKOUT_NONE         0
71
#define BOARD_BREAKOUT_UWBv10       1
72
73
/*
74 cda14729 Thomas Schöpping
 * Configuration macro to define which breakout module is attached.
75 f606f432 Thomas Schöpping
 */
76
#if !defined(BOARD_BREAKOUT_MODULE) || defined(__DOXYGEN__)
77 cda14729 Thomas Schöpping
#define BOARD_BREAKOUT_MODULE       BOARD_BREAKOUT_NONE
78 f606f432 Thomas Schöpping
#endif
79 0b989911 Cung Sang
80
/*
81 9ae7c4f3 Thomas Schöpping
 * IO pins assignments.
82
 */
83
#define GPIOA_USART_CTS             0U
84
#define GPIOA_USART_RTS             1U
85
#define GPIOA_USART_RX              2U
86
#define GPIOA_USART_TX              3U
87
#define GPIOA_LIGHT_BLANK           4U
88
#define GPIOA_LIGHT_SCLK            5U
89
#define GPIOA_LIGHT_MISO            6U
90
#define GPIOA_LIGHT_MOSI            7U
91
#define GPIOA_PIN8                  8U
92
#define GPIOA_PROG_RX               9U
93
#define GPIOA_PROG_TX               10U
94
#define GPIOA_CAN_RX                11U
95
#define GPIOA_CAN_TX                12U
96
#define GPIOA_SWDIO                 13U
97
#define GPIOA_SWCLK                 14U
98
#define GPIOA_RS232_R_EN_N          15U
99
100
#define GPIOB_SW_V33_EN             0U
101
#define GPIOB_SW_V42_EN             1U
102
#define GPIOB_SW_V50_EN             2U
103
#define GPIOB_IO_3                  3U
104
#define GPIOB_IO_5                  4U
105
#define GPIOB_IO_6                  5U
106
#define GPIOB_SYS_UART_DN           6U
107
#define GPIOB_PIN7                  7U
108
#define GPIOB_IO_7                  8U
109
#define GPIOB_IO_8                  9U
110
#define GPIOB_I2C_SCL               10U
111
#define GPIOB_I2C_SDA               11U
112
#define GPIOB_SPI_SS_N              12U
113
#define GPIOB_SPI_SCLK              13U
114
#define GPIOB_SPI_MISO              14U
115
#define GPIOB_SPI_MOSI              15U
116
117
#define GPIOC_IO_4                  0U
118
#define GPIOC_IO_1                  1U
119
#define GPIOC_IO_2                  2U
120
#define GPIOC_LED                   3U
121
#define GPIOC_LIGHT_XLAT            4U
122
#define GPIOC_SW_V18_EN             5U
123
#define GPIOC_SW_VSYS_EN            6U
124
#define GPIOC_SYS_UART_UP           7U
125
#define GPIOC_PIN8                  8U
126
#define GPIOC_PIN9                  9U
127
#define GPIOC_SYS_UART_RX           10U
128
#define GPIOC_SYS_UART_TX           11U
129
#define GPIOC_RS232_D_OFF_N         12U
130
#define GPIOC_PIN13                 13U
131
#define GPIOC_SYS_PD_N              14U
132
#define GPIOC_PIN15                 15U
133
134
#define GPIOD_OSC_IN                0U
135
#define GPIOD_OSC_OUT               1U
136
#define GPIOD_SYS_INT_N             2U
137
#define GPIOD_PIN3                  3U
138
#define GPIOD_PIN4                  4U
139
#define GPIOD_PIN5                  5U
140
#define GPIOD_PIN6                  6U
141
#define GPIOD_PIN7                  7U
142
#define GPIOD_PIN8                  8U
143
#define GPIOD_PIN9                  9U
144
#define GPIOD_PIN10                 10U
145
#define GPIOD_PIN11                 11U
146
#define GPIOD_PIN12                 12U
147
#define GPIOD_PIN13                 13U
148
#define GPIOD_PIN14                 14U
149
#define GPIOD_PIN15                 15U
150
151
#define GPIOE_PIN0                  0U
152
#define GPIOE_PIN1                  1U
153
#define GPIOE_PIN2                  2U
154
#define GPIOE_PIN3                  3U
155
#define GPIOE_PIN4                  4U
156
#define GPIOE_PIN5                  5U
157
#define GPIOE_PIN6                  6U
158
#define GPIOE_PIN7                  7U
159
#define GPIOE_PIN8                  8U
160
#define GPIOE_PIN9                  9U
161
#define GPIOE_PIN10                 10U
162
#define GPIOE_PIN11                 11U
163
#define GPIOE_PIN12                 12U
164
#define GPIOE_PIN13                 13U
165
#define GPIOE_PIN14                 14U
166
#define GPIOE_PIN15                 15U
167
168
#define GPIOF_PIN0                  0U
169
#define GPIOF_PIN1                  1U
170
#define GPIOF_PIN2                  2U
171
#define GPIOF_PIN3                  3U
172
#define GPIOF_PIN4                  4U
173
#define GPIOF_PIN5                  5U
174
#define GPIOF_PIN6                  6U
175
#define GPIOF_PIN7                  7U
176
#define GPIOF_PIN8                  8U
177
#define GPIOF_PIN9                  9U
178
#define GPIOF_PIN10                 10U
179
#define GPIOF_PIN11                 11U
180
#define GPIOF_PIN12                 12U
181
#define GPIOF_PIN13                 13U
182
#define GPIOF_PIN14                 14U
183
#define GPIOF_PIN15                 15U
184
185
#define GPIOG_PIN0                  0U
186
#define GPIOG_PIN1                  1U
187
#define GPIOG_PIN2                  2U
188
#define GPIOG_PIN3                  3U
189
#define GPIOG_PIN4                  4U
190
#define GPIOG_PIN5                  5U
191
#define GPIOG_PIN6                  6U
192
#define GPIOG_PIN7                  7U
193
#define GPIOG_PIN8                  8U
194
#define GPIOG_PIN9                  9U
195
#define GPIOG_PIN10                 10U
196
#define GPIOG_PIN11                 11U
197
#define GPIOG_PIN12                 12U
198
#define GPIOG_PIN13                 13U
199
#define GPIOG_PIN14                 14U
200
#define GPIOG_PIN15                 15U
201
202
/*
203
 * IO lines assignments.
204
 */
205
#define LINE_USART_CTS              PAL_LINE(GPIOA, GPIOA_USART_CTS)
206
#define LINE_USART_RTS              PAL_LINE(GPIOA, GPIOA_USART_RTS)
207
#define LINE_USART_RX               PAL_LINE(GPIOA, GPIOA_USART_RX)
208
#define LINE_USART_TX               PAL_LINE(GPIOA, GPIOA_USART_TX)
209
#define LINE_LIGHT_BLANK            PAL_LINE(GPIOA, GPIOA_LIGHT_BLANK)
210
#define LINE_LIGHT_SCLK             PAL_LINE(GPIOA, GPIOA_LIGHT_SCLK)
211
#define LINE_LIGHT_MISO             PAL_LINE(GPIOA, GPIOA_LIGHT_MISO)
212
#define LINE_LIGHT_MOSI             PAL_LINE(GPIOA, GPIOA_LIGHT_MOSI)
213
#define LINE_PROG_RX                PAL_LINE(GPIOA, GPIOA_PROG_RX)
214
#define LINE_PROG_TX                PAL_LINE(GPIOA, GPIOA_PROG_TX)
215
#define LINE_CAN_RX                 PAL_LINE(GPIOA, GPIOA_CAN_RX)
216
#define LINE_CAN_TX                 PAL_LINE(GPIOA, GPIOA_CAN_TX)
217
#define LINE_SWDIO                  PAL_LINE(GPIOA, GPIOA_SWDIO)
218
#define LINE_SWCLK                  PAL_LINE(GPIOA, GPIOA_SWCLK)
219
#define LINE_RS232_R_EN_N           PAL_LINE(GPIOA, GPIOA_RS232_R_EN_N)
220
221
#define LINE_SW_V33_EN              PAL_LINE(GPIOB, GPIOB_SW_V33_EN)
222
#define LINE_SW_V42_EN              PAL_LINE(GPIOB, GPIOB_SW_V42_EN)
223
#define LINE_SW_V50_EN              PAL_LINE(GPIOB, GPIOB_SW_V50_EN)
224
#define LINE_IO_3                   PAL_LINE(GPIOB, GPIOB_IO_3)
225
#define LINE_IO_5                   PAL_LINE(GPIOB, GPIOB_IO_5)
226
#define LINE_IO_6                   PAL_LINE(GPIOB, GPIOB_IO_6)
227
#define LINE_SYS_UART_DN            PAL_LINE(GPIOB, GPIOB_SYS_UART_DN)
228
#define LINE_IO_7                   PAL_LINE(GPIOB, GPIOB_IO_7)
229
#define LINE_IO_8                   PAL_LINE(GPIOB, GPIOB_IO_8)
230
#define LINE_I2C_SCL                PAL_LINE(GPIOB, GPIOB_I2C_SCL)
231
#define LINE_I2C_SDA                PAL_LINE(GPIOB, GPIOB_I2C_SDA)
232
#define LINE_SPI_SS_N               PAL_LINE(GPIOB, GPIOB_SPI_SS_N)
233
#define LINE_SPI_SCLK               PAL_LINE(GPIOB, GPIOB_SPI_SCLK)
234
#define LINE_SPI_MISO               PAL_LINE(GPIOB, GPIOB_SPI_MISO)
235
#define LINE_SPI_MOSI               PAL_LINE(GPIOB, GPIOB_SPI_MOSI)
236
237
#define LINE_IO_4                   PAL_LINE(GPIOC, GPIOC_IO_4)
238
#define LINE_IO_1                   PAL_LINE(GPIOC, GPIOC_IO_1)
239
#define LINE_IO_2                   PAL_LINE(GPIOC, GPIOC_IO_2)
240
#define LINE_LED                    PAL_LINE(GPIOC, GPIOC_LED)
241
#define LINE_LIGHT_XLAT             PAL_LINE(GPIOC, GPIOC_LIGHT_XLAT)
242
#define LINE_SW_V18_EN              PAL_LINE(GPIOC, GPIOC_SW_V18_EN)
243
#define LINE_SW_VSYS_EN             PAL_LINE(GPIOC, GPIOC_SW_VSYS_EN)
244
#define LINE_SYS_UART_UP            PAL_LINE(GPIOC, GPIOC_SYS_UART_UP)
245
#define LINE_SYS_UART_RX            PAL_LINE(GPIOC, GPIOC_SYS_UART_RX)
246
#define LINE_SYS_UART_TX            PAL_LINE(GPIOC, GPIOC_SYS_UART_TX)
247
#define LINE_RS232_D_OFF_N          PAL_LINE(GPIOC, GPIOC_RS232_D_OFF_N)
248
#define LINE_SYS_PD_N               PAL_LINE(GPIOC, GPIOC_SYS_PD_N)
249
250
#define LINE_SYS_INT_N              PAL_LINE(GPIOD, GPIOD_SYS_INT_N)
251
252 cda14729 Thomas Schöpping
/*===========================================================================*/
253
/* Driver pre-compile time settings.                                         */
254
/*===========================================================================*/
255
256
/*===========================================================================*/
257
/* Derived constants and error checks.                                       */
258
/*===========================================================================*/
259
260
/*===========================================================================*/
261
/* Driver data structures and types.                                         */
262
/*===========================================================================*/
263
264
/*===========================================================================*/
265
/* Driver macros.                                                            */
266
/*===========================================================================*/
267
268 9ae7c4f3 Thomas Schöpping
/*
269
 * I/O ports initial setup, this configuration is established soon after reset
270
 * in the initialization code.
271
 * Please refer to the STM32 Reference Manual for details.
272
 */
273
#define PIN_MODE_INPUT              0U
274
#define PIN_MODE_OUTPUT_2M          2U
275
#define PIN_MODE_OUTPUT_10M         1U
276
#define PIN_MODE_OUTPUT_50M         3U
277
#define PIN_CNF_INPUT_ANALOG        0U
278
#define PIN_CNF_INPUT_FLOATING      1U
279
#define PIN_CNF_INPUT_PULLX         2U
280
#define PIN_CNF_OUTPUT_PUSHPULL     0U
281
#define PIN_CNF_OUTPUT_OPENDRAIN    1U
282
#define PIN_CNF_ALTERNATE_PUSHPULL  2U
283
#define PIN_CNF_ALTERNATE_OPENDRAIN 3U
284
#define PIN_CR(pin, mode, cnf)      (((mode) | ((cnf) << 2U)) << (((pin) % 8U) * 4U))
285
#define PIN_ODR_LOW(n)              (0U << (n))
286
#define PIN_ODR_HIGH(n)             (1U << (n))
287
#define PIN_IGNORE(n)               (1U << (n))
288
289
/*
290
 * GPIOA setup:
291
 *
292
 * PA0  - USART_CTS                 (alternate pushpull 50MHz)
293
 * PA1  - USART_RTS                 (alternate pushpull 50MHz)
294
 * PA2  - USART_RX                  (alternate pushpull 50MHz)
295
 * PA3  - USART_TX                  (input pullup)
296
 * PA4  - LIGHT_BLANK               (output pushpull high 50MHz)
297
 * PA5  - LIGHT_SCLK                (alternate pushpull 50MHz)
298
 * PA6  - LIGHT_MISO                (input pullup)
299
 * PA7  - LIGHT_MOSI                (alternate pushpull 50MHz)
300
 * PA8  - PIN8                      (input floating)
301
 * PA9  - PROG_RX                   (alternate pushpull 50MHz)
302
 * PA10 - PROG_TX                   (input pullup)
303
 * PA11 - CAN_RX                    (input floating)
304
 * PA12 - CAN_TX                    (alternate pushpull 50MHz)
305
 * PA13 - SWDIO                     (input pullup)
306
 * PA14 - SWCLK                     (input pullup)
307
 * PA15 - RS232_R_EN_N              (output opendrain low 50MHz)
308
 */
309
#define VAL_GPIOAIGN                0
310
#define VAL_GPIOACRL                (PIN_CR(GPIOA_USART_CTS, PIN_MODE_OUTPUT_50M, PIN_CNF_ALTERNATE_PUSHPULL) |  \
311
                                     PIN_CR(GPIOA_USART_RTS, PIN_MODE_OUTPUT_50M, PIN_CNF_ALTERNATE_PUSHPULL) |  \
312
                                     PIN_CR(GPIOA_USART_RX, PIN_MODE_OUTPUT_50M, PIN_CNF_ALTERNATE_PUSHPULL) |   \
313
                                     PIN_CR(GPIOA_USART_TX, PIN_MODE_INPUT, PIN_CNF_INPUT_PULLX) |               \
314
                                     PIN_CR(GPIOA_LIGHT_BLANK, PIN_MODE_OUTPUT_50M, PIN_CNF_OUTPUT_PUSHPULL) |   \
315
                                     PIN_CR(GPIOA_LIGHT_SCLK, PIN_MODE_OUTPUT_50M, PIN_CNF_ALTERNATE_PUSHPULL) | \
316
                                     PIN_CR(GPIOA_LIGHT_MISO, PIN_MODE_INPUT, PIN_CNF_INPUT_PULLX) |             \
317
                                     PIN_CR(GPIOA_LIGHT_MOSI, PIN_MODE_OUTPUT_50M, PIN_CNF_ALTERNATE_PUSHPULL))
318
#define VAL_GPIOACRH                (PIN_CR(GPIOA_PIN8, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                \
319
                                     PIN_CR(GPIOA_PROG_RX, PIN_MODE_OUTPUT_50M, PIN_CNF_ALTERNATE_PUSHPULL) |    \
320
                                     PIN_CR(GPIOA_PROG_TX, PIN_MODE_INPUT, PIN_CNF_INPUT_PULLX) |                \
321
                                     PIN_CR(GPIOA_CAN_RX, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |              \
322
                                     PIN_CR(GPIOA_CAN_TX, PIN_MODE_OUTPUT_50M, PIN_CNF_ALTERNATE_PUSHPULL) |     \
323
                                     PIN_CR(GPIOA_SWDIO, PIN_MODE_INPUT, PIN_CNF_INPUT_PULLX) |                  \
324
                                     PIN_CR(GPIOA_SWCLK, PIN_MODE_INPUT, PIN_CNF_INPUT_PULLX) |                  \
325
                                     PIN_CR(GPIOA_RS232_R_EN_N, PIN_MODE_OUTPUT_50M, PIN_CNF_OUTPUT_OPENDRAIN))
326
#define VAL_GPIOAODR                (PIN_ODR_LOW(GPIOA_USART_CTS) |                                              \
327
                                     PIN_ODR_LOW(GPIOA_USART_RTS) |                                              \
328
                                     PIN_ODR_HIGH(GPIOA_USART_RX) |                                              \
329
                                     PIN_ODR_HIGH(GPIOA_USART_TX) |                                              \
330
                                     PIN_ODR_HIGH(GPIOA_LIGHT_BLANK) |                                           \
331
                                     PIN_ODR_HIGH(GPIOA_LIGHT_SCLK) |                                            \
332
                                     PIN_ODR_HIGH(GPIOA_LIGHT_MISO) |                                            \
333
                                     PIN_ODR_HIGH(GPIOA_LIGHT_MOSI) |                                            \
334
                                     PIN_ODR_LOW(GPIOA_PIN8) |                                                   \
335
                                     PIN_ODR_HIGH(GPIOA_PROG_RX) |                                               \
336
                                     PIN_ODR_HIGH(GPIOA_PROG_TX) |                                               \
337
                                     PIN_ODR_HIGH(GPIOA_CAN_RX) |                                                \
338
                                     PIN_ODR_HIGH(GPIOA_CAN_TX) |                                                \
339
                                     PIN_ODR_HIGH(GPIOA_SWDIO) |                                                 \
340
                                     PIN_ODR_HIGH(GPIOA_SWCLK) |                                                 \
341
                                     PIN_ODR_LOW(GPIOA_RS232_R_EN_N))
342
343
/*
344
 * GPIOB setup:
345
 *
346
 * PB0  - SW_V33_EN                 (output pushpull low 50MHz)
347
 * PB1  - SW_V42_EN                 (output pushpull low 50MHz)
348
 * PB2  - SW_V50_EN                 (output pushpull low 50MHz)
349
 * PB3  - IO_3                      (input floating)
350
 * PB4  - IO_5                      (input floating)
351
 * PB5  - IO_6                      (input floating)
352
 * PB6  - SYS_UART_DN               (output opendrain high 50MHz)
353
 * PB7  - PIN7                      (input foating)
354
 * PB8  - IO_7                      (input floating)
355
 * PB9  - IO_8                      (input floating)
356
 * PB10 - I2C_SCL                   (alternate opendrain 50MHz)
357
 * PB11 - I2C_SDA                   (alternate opendrain 50MHz)
358
 * PB12 - SPI_SS_N                  (output pushpull high 50MHz)
359
 * PB13 - SPI_SCLK                  (alternate pushpull 50MHz)
360
 * PB14 - SPI_MISO                  (input pullup)
361
 * PB15 - SPI_MOSI                  (alternate pushpull 50MHz)
362
 */
363
#define VAL_GPIOBIGN                (PIN_IGNORE(GPIOB_SYS_UART_DN)) & 0
364
#define VAL_GPIOBCRL                (PIN_CR(GPIOB_SW_V33_EN, PIN_MODE_OUTPUT_50M, PIN_CNF_OUTPUT_PUSHPULL) |     \
365
                                     PIN_CR(GPIOB_SW_V42_EN, PIN_MODE_OUTPUT_50M, PIN_CNF_OUTPUT_PUSHPULL) |     \
366
                                     PIN_CR(GPIOB_SW_V50_EN, PIN_MODE_OUTPUT_50M, PIN_CNF_OUTPUT_PUSHPULL) |     \
367
                                     PIN_CR(GPIOB_IO_3, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                \
368
                                     PIN_CR(GPIOB_IO_5, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                \
369
                                     PIN_CR(GPIOB_IO_6, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                \
370
                                     PIN_CR(GPIOB_SYS_UART_DN, PIN_MODE_OUTPUT_50M, PIN_CNF_OUTPUT_OPENDRAIN) |  \
371
                                     PIN_CR(GPIOB_PIN7, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING))
372
#define VAL_GPIOBCRH                (PIN_CR(GPIOB_IO_7, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                \
373
                                     PIN_CR(GPIOB_IO_8, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                \
374
                                     PIN_CR(GPIOB_I2C_SCL, PIN_MODE_OUTPUT_50M, PIN_CNF_ALTERNATE_OPENDRAIN) |   \
375
                                     PIN_CR(GPIOB_I2C_SDA, PIN_MODE_OUTPUT_50M, PIN_CNF_ALTERNATE_OPENDRAIN) |   \
376
                                     PIN_CR(GPIOB_SPI_SS_N, PIN_MODE_OUTPUT_50M, PIN_CNF_OUTPUT_PUSHPULL) |      \
377
                                     PIN_CR(GPIOB_SPI_SCLK, PIN_MODE_OUTPUT_50M, PIN_CNF_ALTERNATE_PUSHPULL) |   \
378
                                     PIN_CR(GPIOB_SPI_MISO, PIN_MODE_INPUT, PIN_CNF_INPUT_PULLX) |               \
379
                                     PIN_CR(GPIOB_SPI_MOSI, PIN_MODE_OUTPUT_50M, PIN_CNF_ALTERNATE_PUSHPULL))
380
#define VAL_GPIOBODR                (PIN_ODR_LOW(GPIOB_SW_V33_EN) |                                              \
381
                                     PIN_ODR_LOW(GPIOB_SW_V42_EN) |                                              \
382
                                     PIN_ODR_LOW(GPIOB_SW_V50_EN) |                                              \
383
                                     PIN_ODR_LOW(GPIOB_IO_3) |                                                   \
384
                                     PIN_ODR_LOW(GPIOB_IO_5) |                                                   \
385
                                     PIN_ODR_LOW(GPIOB_IO_6) |                                                   \
386
                                     PIN_ODR_HIGH(GPIOB_SYS_UART_DN) |                                           \
387
                                     PIN_ODR_LOW(GPIOB_PIN7) |                                                   \
388
                                     PIN_ODR_LOW(GPIOB_IO_7) |                                                   \
389
                                     PIN_ODR_LOW(GPIOB_IO_8) |                                                   \
390
                                     PIN_ODR_HIGH(GPIOB_I2C_SCL) |                                               \
391
                                     PIN_ODR_HIGH(GPIOB_I2C_SDA) |                                               \
392
                                     PIN_ODR_HIGH(GPIOB_SPI_SS_N) |                                              \
393
                                     PIN_ODR_HIGH(GPIOB_SPI_SCLK) |                                              \
394
                                     PIN_ODR_HIGH(GPIOB_SPI_MISO) |                                              \
395
                                     PIN_ODR_HIGH(GPIOB_SPI_MOSI))
396
397
/*
398
 * GPIOC setup:
399
 *
400
 * PC0  - IO_4                      (input floating)
401
 * PC1  - IO_1                      (input floating)
402
 * PC2  - IO_2                      (input floating)
403
 * PC3  - LED                       (output opendrain high 50MHz)
404
 * PC4  - LIGHT_XLAT                (output pushpull low 50MHz)
405
 * PC5  - SW_V18_EN                 (output pushpull low 50MHz)
406
 * PC6  - SW_VSYS_EN                (output pushpull low 50MHz)
407
 * PC7  - SYS_UART_UP               (output opendrain high 50MHz)
408
 * PC8  - PIN8                      (input floating)
409
 * PC9  - PIN9                      (input floating)
410
 * PC10 - SYS_UART_RX               (input pullup)
411
 * PC11 - SYS_UART_TX               (input pullup)
412
 * PC12 - RS232_D_OFF_N             (output puspull low 50MHz)
413
 * PC13 - PIN13                     (input floating)
414
 * PC14 - SYS_PD_N                  (output opendrain high 50MHz)
415
 * PC15 - PIN15                     (input floating)
416
 */
417
#define VAL_GPIOCIGN                (PIN_IGNORE(GPIOC_SYS_PD_N)) & 0
418
#define VAL_GPIOCCRL                (PIN_CR(GPIOC_IO_4, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                \
419
                                     PIN_CR(GPIOC_IO_1, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                \
420
                                     PIN_CR(GPIOC_IO_2, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                \
421
                                     PIN_CR(GPIOC_LED, PIN_MODE_OUTPUT_50M, PIN_CNF_OUTPUT_OPENDRAIN) |          \
422
                                     PIN_CR(GPIOC_LIGHT_XLAT, PIN_MODE_OUTPUT_50M, PIN_CNF_OUTPUT_PUSHPULL) |    \
423
                                     PIN_CR(GPIOC_SW_V18_EN, PIN_MODE_OUTPUT_50M, PIN_CNF_OUTPUT_PUSHPULL) |     \
424
                                     PIN_CR(GPIOC_SW_VSYS_EN, PIN_MODE_OUTPUT_50M, PIN_CNF_OUTPUT_PUSHPULL) |    \
425
                                     PIN_CR(GPIOC_SYS_UART_UP, PIN_MODE_OUTPUT_50M, PIN_CNF_OUTPUT_OPENDRAIN))
426
#define VAL_GPIOCCRH                (PIN_CR(GPIOC_PIN8, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                \
427
                                     PIN_CR(GPIOC_PIN9, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                \
428
                                     PIN_CR(GPIOC_SYS_UART_RX, PIN_MODE_INPUT, PIN_CNF_INPUT_PULLX) |            \
429
                                     PIN_CR(GPIOC_SYS_UART_TX, PIN_MODE_INPUT, PIN_CNF_INPUT_PULLX) |            \
430
                                     PIN_CR(GPIOC_RS232_D_OFF_N, PIN_MODE_OUTPUT_50M, PIN_CNF_OUTPUT_PUSHPULL) | \
431
                                     PIN_CR(GPIOC_PIN13, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |               \
432
                                     PIN_CR(GPIOC_SYS_PD_N, PIN_MODE_OUTPUT_50M, PIN_CNF_OUTPUT_OPENDRAIN) |     \
433
                                     PIN_CR(GPIOC_PIN15, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING))
434
#define VAL_GPIOCODR                (PIN_ODR_LOW(GPIOC_IO_4) |                                                   \
435
                                     PIN_ODR_LOW(GPIOC_IO_1) |                                                   \
436
                                     PIN_ODR_LOW(GPIOC_IO_2) |                                                   \
437
                                     PIN_ODR_HIGH(GPIOC_LED) |                                                   \
438
                                     PIN_ODR_LOW(GPIOC_LIGHT_XLAT) |                                             \
439
                                     PIN_ODR_LOW(GPIOC_SW_V18_EN) |                                              \
440
                                     PIN_ODR_LOW(GPIOC_SW_VSYS_EN) |                                             \
441
                                     PIN_ODR_HIGH(GPIOC_SYS_UART_UP) |                                           \
442
                                     PIN_ODR_LOW(GPIOC_PIN8) |                                                   \
443
                                     PIN_ODR_LOW(GPIOC_PIN9) |                                                   \
444
                                     PIN_ODR_HIGH(GPIOC_SYS_UART_RX) |                                           \
445
                                     PIN_ODR_HIGH(GPIOC_SYS_UART_TX) |                                           \
446
                                     PIN_ODR_LOW(GPIOC_RS232_D_OFF_N) |                                          \
447
                                     PIN_ODR_LOW(GPIOC_PIN13) |                                                  \
448
                                     PIN_ODR_HIGH(GPIOC_SYS_PD_N) |                                              \
449
                                     PIN_ODR_LOW(GPIOC_PIN15))
450
451
/*
452
 * GPIOD setup:
453
 *
454
 * PD0  - OSC_IN                    (input floating)
455
 * PD1  - OSC_OUT                   (input floating)
456
 * PD2  - SYS_INT_N                 (output opendrain low 50MHz)
457
 * PD3  - PIN3                      (input floating)
458
 * PD4  - PIN4                      (input floating)
459
 * PD5  - PIN5                      (input floating)
460
 * PD6  - PIN6                      (input floating)
461
 * PD7  - PIN7                      (input floating)
462
 * PD8  - PIN8                      (input floating)
463
 * PD9  - PIN9                      (input floating)
464
 * PD10 - PIN10                     (input floating)
465
 * PD11 - PIN11                     (input floating)
466
 * PD12 - PIN12                     (input floating)
467
 * PD13 - PIN13                     (input floating)
468
 * PD14 - PIN14                     (input floating)
469
 * PD15 - PIN15                     (input floating)
470
 */
471
#define VAL_GPIODIGN                (PIN_IGNORE(GPIOD_SYS_INT_N)) & 0
472
#define VAL_GPIODCRL                (PIN_CR(GPIOD_OSC_IN, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |              \
473
                                     PIN_CR(GPIOD_OSC_OUT, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |             \
474
                                     PIN_CR(GPIOD_SYS_INT_N, PIN_MODE_OUTPUT_50M, PIN_CNF_OUTPUT_OPENDRAIN) |    \
475
                                     PIN_CR(GPIOD_PIN3, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                \
476
                                     PIN_CR(GPIOD_PIN4, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                \
477
                                     PIN_CR(GPIOD_PIN5, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                \
478
                                     PIN_CR(GPIOD_PIN6, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                \
479
                                     PIN_CR(GPIOD_PIN7, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING))
480
#define VAL_GPIODCRH                (PIN_CR(GPIOD_PIN8, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                \
481
                                     PIN_CR(GPIOD_PIN9, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                \
482
                                     PIN_CR(GPIOD_PIN10, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |               \
483
                                     PIN_CR(GPIOD_PIN11, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |               \
484
                                     PIN_CR(GPIOD_PIN12, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |               \
485
                                     PIN_CR(GPIOD_PIN13, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |               \
486
                                     PIN_CR(GPIOD_PIN14, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |               \
487
                                     PIN_CR(GPIOD_PIN15, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING))
488
#define VAL_GPIODODR                (PIN_ODR_HIGH(GPIOD_OSC_IN) |                                                \
489
                                     PIN_ODR_HIGH(GPIOD_OSC_OUT) |                                               \
490
                                     PIN_ODR_LOW(GPIOD_SYS_INT_N) |                                             \
491
                                     PIN_ODR_LOW(GPIOD_PIN3) |                                                   \
492
                                     PIN_ODR_LOW(GPIOD_PIN4) |                                                   \
493
                                     PIN_ODR_LOW(GPIOD_PIN5) |                                                   \
494
                                     PIN_ODR_LOW(GPIOD_PIN6) |                                                   \
495
                                     PIN_ODR_LOW(GPIOD_PIN7) |                                                   \
496
                                     PIN_ODR_LOW(GPIOD_PIN8) |                                                   \
497
                                     PIN_ODR_LOW(GPIOD_PIN9) |                                                   \
498
                                     PIN_ODR_LOW(GPIOD_PIN10) |                                                  \
499
                                     PIN_ODR_LOW(GPIOD_PIN11) |                                                  \
500
                                     PIN_ODR_LOW(GPIOD_PIN12) |                                                  \
501
                                     PIN_ODR_LOW(GPIOD_PIN13) |                                                  \
502
                                     PIN_ODR_LOW(GPIOD_PIN14) |                                                  \
503
                                     PIN_ODR_LOW(GPIOD_PIN15))
504
505
/*
506
 * GPIOE setup:
507
 *
508
 * PE0  - PIN0                      (input floating)
509
 * PE1  - PIN1                      (input floating)
510
 * PE2  - PIN2                      (input floating)
511
 * PE3  - PIN3                      (input floating)
512
 * PE4  - PIN4                      (input floating)
513
 * PE5  - PIN5                      (input floating)
514
 * PE6  - PIN6                      (input floating)
515
 * PE7  - PIN7                      (input floating)
516
 * PE8  - PIN8                      (input floating)
517
 * PE9  - PIN9                      (input floating)
518
 * PE10 - PIN10                     (input floating)
519
 * PE11 - PIN11                     (input floating)
520
 * PE12 - PIN12                     (input floating)
521
 * PE13 - PIN13                     (input floating)
522
 * PE14 - PIN14                     (input floating)
523
 * PE15 - PIN15                     (input floating)
524
 */
525
#define VAL_GPIOEIGN                0
526
#define VAL_GPIOECRL                (PIN_CR(GPIOE_PIN0, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
527
                                     PIN_CR(GPIOE_PIN1, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
528
                                     PIN_CR(GPIOE_PIN2, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
529
                                     PIN_CR(GPIOE_PIN3, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
530
                                     PIN_CR(GPIOE_PIN4, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
531
                                     PIN_CR(GPIOE_PIN5, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
532
                                     PIN_CR(GPIOE_PIN6, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
533
                                     PIN_CR(GPIOE_PIN7, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING))
534
#define VAL_GPIOECRH                (PIN_CR(GPIOE_PIN8, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
535
                                     PIN_CR(GPIOE_PIN9, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
536
                                     PIN_CR(GPIOE_PIN10, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                 \
537
                                     PIN_CR(GPIOE_PIN11, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                 \
538
                                     PIN_CR(GPIOE_PIN12, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                 \
539
                                     PIN_CR(GPIOE_PIN13, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                 \
540
                                     PIN_CR(GPIOE_PIN14, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                 \
541
                                     PIN_CR(GPIOE_PIN15, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING))
542
#define VAL_GPIOEODR                (PIN_ODR_LOW(GPIOE_PIN0) |                                                     \
543
                                     PIN_ODR_LOW(GPIOE_PIN1) |                                                     \
544
                                     PIN_ODR_LOW(GPIOE_PIN2) |                                                     \
545
                                     PIN_ODR_LOW(GPIOE_PIN3) |                                                     \
546
                                     PIN_ODR_LOW(GPIOE_PIN4) |                                                     \
547
                                     PIN_ODR_LOW(GPIOE_PIN5) |                                                     \
548
                                     PIN_ODR_LOW(GPIOE_PIN6) |                                                     \
549
                                     PIN_ODR_LOW(GPIOE_PIN7) |                                                     \
550
                                     PIN_ODR_LOW(GPIOE_PIN8) |                                                     \
551
                                     PIN_ODR_LOW(GPIOE_PIN9) |                                                     \
552
                                     PIN_ODR_LOW(GPIOE_PIN10) |                                                    \
553
                                     PIN_ODR_LOW(GPIOE_PIN11) |                                                    \
554
                                     PIN_ODR_LOW(GPIOE_PIN12) |                                                    \
555
                                     PIN_ODR_LOW(GPIOE_PIN13) |                                                    \
556
                                     PIN_ODR_LOW(GPIOE_PIN14) |                                                    \
557
                                     PIN_ODR_LOW(GPIOE_PIN15))
558
559
/*
560
 * GPIOF setup:
561
 *
562
 * PF0  - PIN0                      (input floating)
563
 * PF1  - PIN1                      (input floating)
564
 * PF2  - PIN2                      (input floating)
565
 * PF3  - PIN3                      (input floating)
566
 * PF4  - PIN4                      (input floating)
567
 * PF5  - PIN5                      (input floating)
568
 * PF6  - PIN6                      (input floating)
569
 * PF7  - PIN7                      (input floating)
570
 * PF8  - PIN8                      (input floating)
571
 * PF9  - PIN9                      (input floating)
572
 * PF10 - PIN10                     (input floating)
573
 * PF11 - PIN11                     (input floating)
574
 * PF12 - PIN12                     (input floating)
575
 * PF13 - PIN13                     (input floating)
576
 * PF14 - PIN14                     (input floating)
577
 * PF15 - PIN15                     (input floating)
578
 */
579
#define VAL_GPIOFIGN                0
580
#define VAL_GPIOFCRL                (PIN_CR(GPIOF_PIN0, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
581
                                     PIN_CR(GPIOF_PIN1, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
582
                                     PIN_CR(GPIOF_PIN2, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
583
                                     PIN_CR(GPIOF_PIN3, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
584
                                     PIN_CR(GPIOF_PIN4, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
585
                                     PIN_CR(GPIOF_PIN5, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
586
                                     PIN_CR(GPIOF_PIN6, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
587
                                     PIN_CR(GPIOF_PIN7, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING))
588
#define VAL_GPIOFCRH                (PIN_CR(GPIOF_PIN8, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
589
                                     PIN_CR(GPIOF_PIN9, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
590
                                     PIN_CR(GPIOF_PIN10, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                 \
591
                                     PIN_CR(GPIOF_PIN11, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                 \
592
                                     PIN_CR(GPIOF_PIN12, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                 \
593
                                     PIN_CR(GPIOF_PIN13, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                 \
594
                                     PIN_CR(GPIOF_PIN14, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                 \
595
                                     PIN_CR(GPIOF_PIN15, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING))
596
#define VAL_GPIOFODR                (PIN_ODR_LOW(GPIOF_PIN0) |                                                     \
597
                                     PIN_ODR_LOW(GPIOF_PIN1) |                                                     \
598
                                     PIN_ODR_LOW(GPIOF_PIN2) |                                                     \
599
                                     PIN_ODR_LOW(GPIOF_PIN3) |                                                     \
600
                                     PIN_ODR_LOW(GPIOF_PIN4) |                                                     \
601
                                     PIN_ODR_LOW(GPIOF_PIN5) |                                                     \
602
                                     PIN_ODR_LOW(GPIOF_PIN6) |                                                     \
603
                                     PIN_ODR_LOW(GPIOF_PIN7) |                                                     \
604
                                     PIN_ODR_LOW(GPIOF_PIN8) |                                                     \
605
                                     PIN_ODR_LOW(GPIOF_PIN9) |                                                     \
606
                                     PIN_ODR_LOW(GPIOF_PIN10) |                                                    \
607
                                     PIN_ODR_LOW(GPIOF_PIN11) |                                                    \
608
                                     PIN_ODR_LOW(GPIOF_PIN12) |                                                    \
609
                                     PIN_ODR_LOW(GPIOF_PIN13) |                                                    \
610
                                     PIN_ODR_LOW(GPIOF_PIN14) |                                                    \
611
                                     PIN_ODR_LOW(GPIOF_PIN15))
612
613
/*
614
 * GPIOG setup:
615
 *
616
 * PG0  - PIN0                      (input floating)
617
 * PG1  - PIN1                      (input floating)
618
 * PG2  - PIN2                      (input floating)
619
 * PG3  - PIN3                      (input floating)
620
 * PG4  - PIN4                      (input floating)
621
 * PG5  - PIN5                      (input floating)
622
 * PG6  - PIN6                      (input floating)
623
 * PG7  - PIN7                      (input floating)
624
 * PG8  - PIN8                      (input floating)
625
 * PG9  - PIN9                      (input floating)
626
 * PG10 - PIN10                     (input floating)
627
 * PG11 - PIN11                     (input floating)
628
 * PG12 - PIN12                     (input floating)
629
 * PG13 - PIN13                     (input floating)
630
 * PG14 - PIN14                     (input floating)
631
 * PG15 - PIN15                     (input floating)
632
 */
633
#define VAL_GPIOGIGN                0
634
#define VAL_GPIOGCRL                (PIN_CR(GPIOG_PIN0, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
635
                                     PIN_CR(GPIOG_PIN1, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
636
                                     PIN_CR(GPIOG_PIN2, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
637
                                     PIN_CR(GPIOG_PIN3, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
638
                                     PIN_CR(GPIOG_PIN4, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
639
                                     PIN_CR(GPIOG_PIN5, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
640
                                     PIN_CR(GPIOG_PIN6, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
641
                                     PIN_CR(GPIOG_PIN7, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING))
642
#define VAL_GPIOGCRH                (PIN_CR(GPIOG_PIN8, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
643
                                     PIN_CR(GPIOG_PIN9, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                  \
644
                                     PIN_CR(GPIOG_PIN10, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                 \
645
                                     PIN_CR(GPIOG_PIN11, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                 \
646
                                     PIN_CR(GPIOG_PIN12, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                 \
647
                                     PIN_CR(GPIOG_PIN13, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                 \
648
                                     PIN_CR(GPIOG_PIN14, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING) |                 \
649
                                     PIN_CR(GPIOG_PIN15, PIN_MODE_INPUT, PIN_CNF_INPUT_FLOATING))
650
#define VAL_GPIOGODR                (PIN_ODR_LOW(GPIOG_PIN0) |                                                     \
651
                                     PIN_ODR_LOW(GPIOG_PIN1) |                                                     \
652
                                     PIN_ODR_LOW(GPIOG_PIN2) |                                                     \
653
                                     PIN_ODR_LOW(GPIOG_PIN3) |                                                     \
654
                                     PIN_ODR_LOW(GPIOG_PIN4) |                                                     \
655
                                     PIN_ODR_LOW(GPIOG_PIN5) |                                                     \
656
                                     PIN_ODR_LOW(GPIOG_PIN6) |                                                     \
657
                                     PIN_ODR_LOW(GPIOG_PIN7) |                                                     \
658
                                     PIN_ODR_LOW(GPIOG_PIN8) |                                                     \
659
                                     PIN_ODR_LOW(GPIOG_PIN9) |                                                     \
660
                                     PIN_ODR_LOW(GPIOG_PIN10) |                                                    \
661
                                     PIN_ODR_LOW(GPIOG_PIN11) |                                                    \
662
                                     PIN_ODR_LOW(GPIOG_PIN12) |                                                    \
663
                                     PIN_ODR_LOW(GPIOG_PIN13) |                                                    \
664
                                     PIN_ODR_LOW(GPIOG_PIN14) |                                                    \
665
                                     PIN_ODR_LOW(GPIOG_PIN15))
666
667 cda14729 Thomas Schöpping
/*===========================================================================*/
668
/* External declarations.                                                    */
669
/*===========================================================================*/
670
671 9ae7c4f3 Thomas Schöpping
#if !defined(_FROM_ASM_)
672
#ifdef __cplusplus
673
extern "C" {
674
#endif
675
  void boardInit(void);
676
#ifdef __cplusplus
677
}
678
#endif
679
#endif /* _FROM_ASM_ */
680
681
#endif /* BOARD_H */
682
683
/** @} */