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) 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_H
20
#define ARDUINO_BOARD_H
21
22
#include "
periph/gpio.h
"
23
#include "
periph/adc.h
"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
32
#define ARDUINO_LED (3)
33
37
static
const
gpio_t
arduino_pinmap
[] = {
38
GPIO1,
/* ARDUINO_PIN_0 (RxD) */
39
GPIO3,
/* ARDUINO_PIN_1 (TxD) */
40
GPIO0,
/* ARDUINO_PIN_2 */
41
GPIO2,
/* ARDUINO_PIN_3 */
42
#if defined(FLASH_MODE_QIO) || defined(FLASH_MODE_QOUT)
43
GPIO9,
/* ARDUINO_PIN_4 */
44
GPIO10,
/* ARDUINO_PIN_5 */
45
#else
46
GPIO_UNDEF
,
/* ARDUINO_PIN_4 */
47
GPIO_UNDEF
,
/* ARDUINO_PIN_5 */
48
#endif
49
GPIO_UNDEF
,
/* ARDUINO_PIN_6 */
50
GPIO_UNDEF
,
/* ARDUINO_PIN_7 */
51
GPIO_UNDEF
,
/* ARDUINO_PIN_8 */
52
GPIO_UNDEF
,
/* ARDUINO_PIN_9 */
53
GPIO15,
/* ARDUINO_PIN_10 (CS0) */
54
GPIO13,
/* ARDUINO_PIN_11 (MOSI) */
55
GPIO12,
/* ARDUINO_PIN_12 (MISO) */
56
GPIO14,
/* ARDUINO_PIN_13 (SCK) */
57
GPIO_UNDEF
,
/* ARDUINO_PIN_A0 */
58
GPIO_UNDEF
,
/* ARDUINO_PIN_A1 */
59
GPIO_UNDEF
,
/* ARDUINO_PIN_A2 */
60
GPIO_UNDEF
,
/* ARDUINO_PIN_A3 */
61
GPIO4,
/* ARDUINO_PIN_A4 (SDA) */
62
GPIO5,
/* ARDUINO_PIN_A5 (SCL) */
63
};
64
68
static
const
adc_t
arduino_analog_map
[] = {
69
};
70
71
#ifdef __cplusplus
72
}
73
#endif
74
75
#endif
/* ARDUINO_BOARD_H */
76
arduino_pinmap
static const gpio_t arduino_pinmap[]
Look-up table for the Arduino's digital pins.
Definition:
arduino_board.h:37
adc_t
unsigned int adc_t
Define default ADC type identifier.
Definition:
adc.h:72
adc.h
Low-level ADC peripheral driver interface definitions.
arduino_analog_map
static const adc_t arduino_analog_map[]
Look-up table for the Arduino's analog pins.
Definition:
arduino_board.h:68
GPIO_UNDEF
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
Definition:
periph_cpu_common.h:52
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17