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: 2022 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
32
#define ARDUINO_PIN_0 GPIO44
33
#define ARDUINO_PIN_1 GPIO43
34
#define ARDUINO_PIN_2 GPIO0
35
#define ARDUINO_PIN_3 GPIO14
36
#define ARDUINO_PIN_4 GPIO3
37
#define ARDUINO_PIN_5 GPIO17
38
#define ARDUINO_PIN_6 GPIO18
39
#define ARDUINO_PIN_7 GPIO6
40
#define ARDUINO_PIN_8 GPIO7
41
#define ARDUINO_PIN_9 GPIO21
42
43
#define ARDUINO_PIN_10 GPIO10
44
#define ARDUINO_PIN_11 GPIO11
45
#define ARDUINO_PIN_12 GPIO13
46
#define ARDUINO_PIN_13 GPIO12
47
48
#define ARDUINO_PIN_14 GPIO1
49
#define ARDUINO_PIN_15 GPIO2
50
#define ARDUINO_PIN_16 GPIO4
51
#define ARDUINO_PIN_17 GPIO5
52
53
#define ARDUINO_PIN_18 GPIO8
54
#define ARDUINO_PIN_19 GPIO9
55
56
#define ARDUINO_PIN_LAST 19
58
63
#define ARDUINO_PIN_A0 ARDUINO_PIN_14
64
#define ARDUINO_PIN_A1 ARDUINO_PIN_15
65
#define ARDUINO_PIN_A2 ARDUINO_PIN_16
66
#define ARDUINO_PIN_A3 ARDUINO_PIN_17
67
#define ARDUINO_PIN_A4 ARDUINO_PIN_18
68
#define ARDUINO_PIN_A5 ARDUINO_PIN_19
70
75
#define ARDUINO_A0 ADC_LINE(7)
76
#define ARDUINO_A1 ADC_LINE(8)
77
#define ARDUINO_A2 ADC_LINE(2)
78
#define ARDUINO_A3 ADC_LINE(6)
79
#define ARDUINO_A4 ADC_LINE(14)
80
#define ARDUINO_A5 ADC_LINE(15)
81
82
#define ARDUINO_ANALOG_PIN_LAST 5
84
89
#define ARDUINO_PIN_3_PWM_DEV PWM_DEV(0)
90
#define ARDUINO_PIN_3_PWM_CHAN 0
91
92
#define ARDUINO_PIN_5_PWM_DEV PWM_DEV(0)
93
#define ARDUINO_PIN_5_PWM_CHAN 1
94
95
#define ARDUINO_PIN_6_PWM_DEV PWM_DEV(0)
96
#define ARDUINO_PIN_6_PWM_CHAN 2
97
98
#define ARDUINO_PIN_9_PWM_DEV PWM_DEV(0)
99
#define ARDUINO_PIN_9_PWM_CHAN 3
101
102
#ifdef __cplusplus
103
}
104
#endif
105
adc.h
Low-level ADC peripheral driver interface definitions.
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Mon Sep 8 2025 18:20:30 by
1.13.2