arduino_board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Freie Universität Berlin
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 
28 #define ARDUINO_LED (2)
29 
30 static const gpio_t arduino_pinmap[] = {
31  ARDUINO_PIN_0,
32  ARDUINO_PIN_1,
33  ARDUINO_PIN_2,
34  ARDUINO_PIN_3,
35  ARDUINO_PIN_4,
36  ARDUINO_PIN_5,
37  ARDUINO_PIN_6,
38  ARDUINO_PIN_7,
39 };
40 
44 static const adc_t arduino_analog_map[] = {
45  ARDUINO_A0,
46  ARDUINO_A1,
47  ARDUINO_A2,
48  ARDUINO_A3,
49 };
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif /* ARDUINO_BOARD_H */
56 
adc_t
unsigned int adc_t
Define default ADC type identifier.
Definition: adc.h:72
arduino_analog_map
static const adc_t arduino_analog_map[]
Look-up table for the Arduino's analog pins.
Definition: arduino_board.h:44
arduino_pinmap
static const gpio_t arduino_pinmap[]
Look-up table for the Arduino's digital pins.
Definition: arduino_board.h:40
arduino_pinmap.h
Mapping from MCU pins to Arduino pins.