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
#define ARDUINO_LED (10)
29
34
#define ARDUINO_PIN_0 GPIO3
35
#define ARDUINO_PIN_1 GPIO1
36
37
#define ARDUINO_PIN_2 GPIO4
38
#define ARDUINO_PIN_3 GPIO0
39
#define ARDUINO_PIN_4 GPIO13
40
#define ARDUINO_PIN_5 GPIO2
41
#define ARDUINO_PIN_6 GPIO15
42
#define ARDUINO_PIN_7 GPIO25
43
#define ARDUINO_PIN_8 GPIO26
44
#define ARDUINO_PIN_9 GPIO32
45
46
#define ARDUINO_PIN_10 GPIO5
47
#define ARDUINO_PIN_11 GPIO23
48
#define ARDUINO_PIN_12 GPIO19
49
#define ARDUINO_PIN_13 GPIO18
50
51
/* analog pins as digital pin: */
52
#define ARDUINO_PIN_14 GPIO36
53
#define ARDUINO_PIN_15 GPIO39
54
#define ARDUINO_PIN_16 GPIO34
55
#define ARDUINO_PIN_17 GPIO35
56
57
#define ARDUINO_PIN_18 GPIO21
58
#define ARDUINO_PIN_19 GPIO22
59
60
#define ARDUINO_PIN_LAST 19
62
67
#define ARDUINO_PIN_A0 ARDUINO_PIN_14
68
#define ARDUINO_PIN_A1 ARDUINO_PIN_15
69
#define ARDUINO_PIN_A2 ARDUINO_PIN_16
70
#define ARDUINO_PIN_A3 ARDUINO_PIN_17
71
72
#define ARDUINO_PIN_DAC0 ARDUINO_PIN_7
73
#define ARDUINO_PIN_DAC1 ARDUINO_PIN_8
75
80
#define ARDUINO_A0 ADC_LINE(0)
81
#define ARDUINO_A1 ADC_LINE(1)
82
#define ARDUINO_A2 ADC_LINE(2)
83
#define ARDUINO_A3 ADC_LINE(3)
84
85
#define ARDUINO_ANALOG_PIN_LAST 3
87
92
#define ARDUINO_DAC0 DAC_LINE(0)
93
#define ARDUINO_DAC1 DAC_LINE(1)
94
95
#define ARDUINO_DAC_PIN_LAST 1
97
102
#define ARDUINO_PIN_3_PWM_DEV PWM_DEV(0)
103
#define ARDUINO_PIN_3_PWM_CHAN 0
104
105
#define ARDUINO_PIN_5_PWM_DEV PWM_DEV(0)
106
#define ARDUINO_PIN_5_PWM_CHAN 1
108
109
#ifdef __cplusplus
110
}
111
#endif
112
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