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
17
18
#include "
periph/gpio.h
"
19
#include "
periph/adc.h
"
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
#define ARDUINO_UART_D0D1 UART_DEV(0)
26
#define ARDUINO_SPI_D11D12D13 SPI_DEV(0)
27
28
#if !MODULE_ESP32_WROVER_KIT_CAMERA && !MODULE_PERIPH_SDMMC
29
# define ARDUINO_LED (5)
30
#endif
31
36
#define ARDUINO_PIN_0 GPIO3
37
#define ARDUINO_PIN_1 GPIO1
38
39
#define ARDUINO_PIN_2 GPIO19
40
#define ARDUINO_PIN_3 GPIO0
41
#define ARDUINO_PIN_4 GPIO22
42
#define ARDUINO_PIN_5 GPIO4
43
#define ARDUINO_PIN_6 GPIO23
44
#define ARDUINO_PIN_7 GPIO25
45
#define ARDUINO_PIN_8 GPIO9
46
#define ARDUINO_PIN_9 GPIO10
47
48
#define ARDUINO_PIN_10 GPIO13
49
#define ARDUINO_PIN_11 GPIO15
50
#define ARDUINO_PIN_12 GPIO2
51
#define ARDUINO_PIN_13 GPIO14
52
53
#define ARDUINO_PIN_14 GPIO34
54
#define ARDUINO_PIN_15 GPIO35
55
#define ARDUINO_PIN_16 GPIO36
56
#define ARDUINO_PIN_17 GPIO39
57
58
#define ARDUINO_PIN_18 GPIO26
59
#define ARDUINO_PIN_19 GPIO27
60
61
#define ARDUINO_PIN_LAST 19
63
64
#if !MODULE_ESP32_WROVER_KIT_CAMERA
70
# define ARDUINO_PIN_A0 ARDUINO_PIN_14
71
# define ARDUINO_PIN_A1 ARDUINO_PIN_15
72
# define ARDUINO_PIN_A2 ARDUINO_PIN_16
73
# define ARDUINO_PIN_A3 ARDUINO_PIN_17
75
81
# define ARDUINO_A0 ADC_LINE(0)
82
# define ARDUINO_A1 ADC_LINE(1)
83
# define ARDUINO_A2 ADC_LINE(2)
84
# define ARDUINO_A3 ADC_LINE(3)
85
86
# define ARDUINO_ANALOG_PIN_LAST 3
88
#endif
89
94
#if !MODULE_ESP32_WROVER_KIT_CAMERA
95
# define ARDUINO_PIN_3_PWM_DEV PWM_DEV(1)
96
# define ARDUINO_PIN_3_PWM_CHAN 0
97
# if !MODULE_PERIPH_SDMMC
98
# define ARDUINO_PIN_5_PWM_DEV PWM_DEV(1)
99
# define ARDUINO_PIN_5_PWM_CHAN 1
100
# endif
/* !MODULE_PERIPH_SDMMC */
101
#endif
/* !MODULE_ESP32_WROVER_KIT_CAMERA */
103
104
#ifdef __cplusplus
105
}
106
#endif
107
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