Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
arduino_board_common.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018 Gunar Schorcht
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_COMMON_H
20
#define ARDUINO_BOARD_COMMON_H
21
22
#include "arduino_pinmap.h"
23
24
#ifdef __cplusplus
25
extern
"C"
26
{
27
#endif
28
32
static
const
gpio_t
arduino_pinmap
[] = {
33
ARDUINO_PIN_0,
34
ARDUINO_PIN_1,
35
ARDUINO_PIN_2,
36
ARDUINO_PIN_3,
37
ARDUINO_PIN_4,
38
ARDUINO_PIN_5,
39
ARDUINO_PIN_6,
40
ARDUINO_PIN_7,
41
ARDUINO_PIN_8,
42
ARDUINO_PIN_9,
43
ARDUINO_PIN_10,
44
ARDUINO_PIN_11,
45
ARDUINO_PIN_12,
46
ARDUINO_PIN_13,
47
ARDUINO_PIN_A0,
48
ARDUINO_PIN_A1,
49
ARDUINO_PIN_A2,
50
ARDUINO_PIN_A3,
51
ARDUINO_PIN_A4,
52
ARDUINO_PIN_A5
53
};
54
58
static
const
adc_t
arduino_analog_map
[] = {
59
ARDUINO_PIN_A0,
60
ARDUINO_PIN_A1,
61
ARDUINO_PIN_A2,
62
ARDUINO_PIN_A3,
63
ARDUINO_PIN_A4,
64
ARDUINO_PIN_A5
65
};
66
67
#ifdef __cplusplus
68
}
69
#endif
70
71
#endif
/* ARDUINO_BOARD_COMMON_H */
72
adc_t
unsigned int adc_t
Define default ADC type identifier.
Definition:
adc.h:72
arduino_pinmap
static const gpio_t arduino_pinmap[]
Look-up table for the Arduino's digital pins.
Definition:
arduino_board_common.h:32
arduino_analog_map
static const adc_t arduino_analog_map[]
Look-up table for the Arduino's analog pins.
Definition:
arduino_board_common.h:58
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17