Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
#define ARDUINO_LED (13)
32
36
static
const
gpio_t
arduino_pinmap
[] = {
37
ARDUINO_PIN_0,
38
ARDUINO_PIN_1,
39
ARDUINO_PIN_2,
40
ARDUINO_PIN_3,
41
ARDUINO_PIN_4,
42
ARDUINO_PIN_5,
43
ARDUINO_PIN_6,
44
ARDUINO_PIN_7,
45
ARDUINO_PIN_8,
46
ARDUINO_PIN_9,
47
ARDUINO_PIN_10,
48
ARDUINO_PIN_11,
49
ARDUINO_PIN_12,
50
ARDUINO_PIN_13,
51
ARDUINO_PIN_A0,
52
ARDUINO_PIN_A1,
53
ARDUINO_PIN_A2,
54
ARDUINO_PIN_A3,
55
ARDUINO_PIN_A4,
56
ARDUINO_PIN_A5,
57
ARDUINO_PIN_A6,
58
ARDUINO_PIN_A7
59
};
60
64
static
const
adc_t
arduino_analog_map
[] = {
65
ARDUINO_A0,
66
ARDUINO_A1,
67
ARDUINO_A2,
68
ARDUINO_A3,
69
ARDUINO_A4,
70
ARDUINO_A5,
71
ARDUINO_A6,
72
ARDUINO_A7,
73
};
74
75
#ifdef __cplusplus
76
}
77
#endif
78
79
#endif
/* ARDUINO_BOARD_H */
80
arduino_pinmap.h
Mapping from MCU pins to Arduino pins.
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:64
arduino_pinmap
static const gpio_t arduino_pinmap[]
Look-up table for the Arduino's digital pins.
Definition:
arduino_board.h:36
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17