arduino_board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Freie Universität Berlin
3  * 2019 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 static const gpio_t arduino_pinmap[] = {
34  ARDUINO_PIN_0,
35  ARDUINO_PIN_1,
36  ARDUINO_PIN_2,
37  ARDUINO_PIN_3,
38  ARDUINO_PIN_4,
39  ARDUINO_PIN_5,
40  ARDUINO_PIN_6,
41  ARDUINO_PIN_7,
42  ARDUINO_PIN_8,
43  ARDUINO_PIN_9,
44  ARDUINO_PIN_10,
45  ARDUINO_PIN_11,
46  ARDUINO_PIN_12,
47  ARDUINO_PIN_13,
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 
59 static const adc_t arduino_analog_map[] = {
60  ARDUINO_A0,
61  ARDUINO_A1,
62  ARDUINO_A2,
63  ARDUINO_A3,
64  ARDUINO_A4,
65  ARDUINO_A5,
66 };
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 #endif /* ARDUINO_BOARD_H */
73 
adc_t
unsigned int adc_t
Define default ADC type identifier.
Definition: adc.h:72
arduino_pinmap.h
Mapping from MCU pins to Arduino pins.
arduino_pinmap
static const gpio_t arduino_pinmap[]
Look-up table for the Arduino's digital pins.
Definition: arduino_board.h:33
arduino_analog_map
static const adc_t arduino_analog_map[]
Look-up table for the Arduino's analog pins.
Definition: arduino_board.h:59