Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
arduino_iomap.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2018 Gunar Schorcht
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
15
16
#include "
periph/adc.h
"
17
#include "
periph/gpio.h
"
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
26
#define ARDUINO_LED (0)
27
32
#define ARDUINO_PIN_0 GPIO1
/* D0 (RxD) */
33
#define ARDUINO_PIN_1 GPIO3
/* D1 (TxD) */
34
#define ARDUINO_PIN_2 GPIO0
/* D2 */
35
#define ARDUINO_PIN_3 GPIO4
/* D3 */
36
#if defined(CONFIG_FLASHMODE_QIO) || defined(CONFIG_FLASHMODE_QOUT)
37
# define ARDUINO_PIN_4 GPIO9
/* D4 */
38
# define ARDUINO_PIN_5 GPIO10
/* D5 */
39
#endif
40
#define ARDUINO_PIN_6 GPIO5
/* D6 */
41
#define ARDUINO_PIN_10 GPIO15
/* D10 (CS0) */
42
#define ARDUINO_PIN_11 GPIO13
/* D11 (MOSI) */
43
#define ARDUINO_PIN_12 GPIO12
/* D12 (MISO) */
44
#define ARDUINO_PIN_13 GPIO14
/* D13 (SCK) */
45
46
#define ARDUINO_PIN_18 GPIO2
/* D18 (A4 / SDA) */
47
#define ARDUINO_PIN_19 GPIO14
/* D19 (A5 / SCL) */
48
49
#define ARDUINO_PIN_LAST 19
51
56
#define ARDUINO_PIN_A4 ARDUINO_PIN_18
57
#define ARDUINO_PIN_A5 ARDUINO_PIN_19
59
60
#ifdef __cplusplus
61
}
62
#endif
63
adc.h
Low-level ADC peripheral driver interface definitions.
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Wed Aug 27 2025 20:40:39 by
1.13.2