nucleo144-common/include/arduino_board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Inria
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef ARDUINO_BOARD_H
20 #define ARDUINO_BOARD_H
21 
22 #include "arduino_pinmap.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
31 static const gpio_t arduino_pinmap[] = {
32  ARDUINO_PIN_0,
33  ARDUINO_PIN_1,
34  ARDUINO_PIN_2,
35  ARDUINO_PIN_3,
36  ARDUINO_PIN_4,
37  ARDUINO_PIN_5,
38  ARDUINO_PIN_6,
39  ARDUINO_PIN_7,
40  ARDUINO_PIN_8,
41  ARDUINO_PIN_9,
42  ARDUINO_PIN_10,
43  ARDUINO_PIN_11,
44  ARDUINO_PIN_12,
45  ARDUINO_PIN_13,
46  ARDUINO_PIN_14,
47  ARDUINO_PIN_15,
48  ARDUINO_PIN_A0,
49  ARDUINO_PIN_A1,
50  ARDUINO_PIN_A2,
51  ARDUINO_PIN_A3,
52  ARDUINO_PIN_A4,
53  ARDUINO_PIN_A5,
54 };
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif /* ARDUINO_BOARD_H */
61 
Mapping from MCU pins to Arduino pins.
static const gpio_t arduino_pinmap[]
Look-up table for the Arduino's digital pins.