The friendly Operating System for the Internet of Things
nucleo-common/include/arduino_board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Freie Universit├Ąt Berlin
3  * 2016 Inria
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
21 #ifndef ARDUINO_BOARD_H
22 #define ARDUINO_BOARD_H
23 
24 #include "arduino_pinmap.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
33 #define ARDUINO_LED (13)
34 
38 static const gpio_t arduino_pinmap[] = {
40  ARDUINO_PIN_1,
41  ARDUINO_PIN_2,
42  ARDUINO_PIN_3,
43  ARDUINO_PIN_4,
44  ARDUINO_PIN_5,
45  ARDUINO_PIN_6,
46  ARDUINO_PIN_7,
47  ARDUINO_PIN_8,
48  ARDUINO_PIN_9,
49  ARDUINO_PIN_10,
50  ARDUINO_PIN_11,
51  ARDUINO_PIN_12,
52  ARDUINO_PIN_13,
53  ARDUINO_PIN_A0,
54  ARDUINO_PIN_A1,
55  ARDUINO_PIN_A2,
56  ARDUINO_PIN_A3,
57  ARDUINO_PIN_A4,
58  ARDUINO_PIN_A5,
59 };
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif /* ARDUINO_BOARD_H */
66 
static const gpio_t arduino_pinmap[]
Look-up table for the Arduino's digital pins.
Mapping from MCU pins to Arduino pins.
#define ARDUINO_PIN_0
Mapping of MCU pins to Arduino pins.