Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
arduino_iomap.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2019 Yegor Yefremov
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
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)
28
#if MODULE_ESP32_TTGO_T_BEAM_V1_0
29
# define ARDUINO_LED (3)
30
#endif
31
37
#define ARDUINO_PIN_0 GPIO3
38
#define ARDUINO_PIN_1 GPIO1
39
#define ARDUINO_PIN_2 GPIO13
40
#define ARDUINO_PIN_3 GPIO14
41
#define ARDUINO_PIN_4 GPIO4
42
#define ARDUINO_PIN_5 GPIO0
43
#define ARDUINO_PIN_6 GPIO2
44
#define ARDUINO_PIN_7 GPIO23
46
/* Arduino pin 8 is not available */
47
48
#define ARDUINO_PIN_9 GPIO25
50
#define ARDUINO_PIN_10 GPIO18
51
#define ARDUINO_PIN_11 GPIO27
52
#define ARDUINO_PIN_12 GPIO19
53
#define ARDUINO_PIN_13 GPIO5
55
/* analog pins as digital pin: */
56
#define ARDUINO_PIN_14 GPIO32
57
#define ARDUINO_PIN_15 GPIO33
58
#define ARDUINO_PIN_16 GPIO35
59
#define ARDUINO_PIN_17 GPIO36
61
/* Arduino I2C signals */
62
#define ARDUINO_PIN_18 GPIO21
63
#define ARDUINO_PIN_19 GPIO22
65
#define ARDUINO_PIN_LAST 19
72
#define ARDUINO_PIN_A0 ARDUINO_PIN_14
73
#define ARDUINO_PIN_A1 ARDUINO_PIN_15
74
#define ARDUINO_PIN_A2 ARDUINO_PIN_16
75
#define ARDUINO_PIN_A3 ARDUINO_PIN_17
77
#define ARDUINO_PIN_DAC0 ARDUINO_PIN_9
84
#define ARDUINO_A0 ADC_LINE(5)
85
#define ARDUINO_A1 ADC_LINE(6)
86
#define ARDUINO_A2 ADC_LINE(7)
87
#define ARDUINO_A3 ADC_LINE(8)
89
#define ARDUINO_ANALOG_PIN_LAST 3
96
#define ARDUINO_DAC0 DAC_LINE(0)
98
#define ARDUINO_DAC_PIN_LAST 0
105
#define ARDUINO_PIN_3_PWM_DEV PWM_DEV(0)
106
#define ARDUINO_PIN_3_PWM_CHAN 0
108
#define ARDUINO_PIN_5_PWM_DEV PWM_DEV(0)
109
#define ARDUINO_PIN_5_PWM_CHAN 1
111
#define ARDUINO_PIN_6_PWM_DEV PWM_DEV(0)
112
#define ARDUINO_PIN_6_PWM_CHAN 2
114
#define ARDUINO_PIN_9_PWM_DEV PWM_DEV(0)
115
#define ARDUINO_PIN_9_PWM_CHAN 3
118
#ifdef __cplusplus
119
}
120
#endif
121
adc.h
Low-level ADC peripheral driver interface definitions.
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1