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
17
#ifndef ARDUINO_BOARD_H
18
#define ARDUINO_BOARD_H
19
20
#include "
periph/gpio.h
"
21
#include "
periph/adc.h
"
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
30
#define ARDUINO_LED (6)
31
35
static
const
gpio_t
arduino_pinmap
[] = {
36
GPIO1,
/* ARDUINO_PIN_0 (RxD) */
37
GPIO3,
/* ARDUINO_PIN_1 (TxD) */
38
GPIO0,
/* ARDUINO_PIN_2 */
39
GPIO4,
/* ARDUINO_PIN_3 */
40
#if defined(FLASH_MODE_QIO) || defined(FLASH_MODE_QOUT)
41
GPIO9,
/* ARDUINO_PIN_4 */
42
GPIO10,
/* ARDUINO_PIN_5 */
43
#else
44
GPIO_UNDEF
,
/* ARDUINO_PIN_4 */
45
GPIO_UNDEF
,
/* ARDUINO_PIN_5 */
46
#endif
47
GPIO5,
/* ARDUINO_PIN_6 */
48
GPIO_UNDEF
,
/* ARDUINO_PIN_7 */
49
GPIO_UNDEF
,
/* ARDUINO_PIN_8 */
50
GPIO_UNDEF
,
/* ARDUINO_PIN_9 */
51
GPIO15,
/* ARDUINO_PIN_10 (CS0) */
52
GPIO13,
/* ARDUINO_PIN_11 (MOSI) */
53
GPIO12,
/* ARDUINO_PIN_12 (MISO) */
54
GPIO14,
/* ARDUINO_PIN_13 (SCK) */
55
GPIO_UNDEF
,
/* ARDUINO_PIN_A0 */
56
GPIO_UNDEF
,
/* ARDUINO_PIN_A1 */
57
GPIO_UNDEF
,
/* ARDUINO_PIN_A2 */
58
GPIO_UNDEF
,
/* ARDUINO_PIN_A3 */
59
GPIO2,
/* ARDUINO_PIN_A4 (SDA) */
60
GPIO14,
/* ARDUINO_PIN_A5 (SCL) */
61
};
62
66
static
const
adc_t
arduino_analog_map
[] = {
67
};
68
69
#ifdef __cplusplus
70
}
71
#endif
72
73
#endif
/* ARDUINO_BOARD_H */
74
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:66
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.
arduino_pinmap
static const gpio_t arduino_pinmap[]
Look-up table for the Arduino's digital pins.
Definition:
arduino_board.h:35
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17