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: 2024 TU Dresden
3
* SPDX-FileCopyrightText: 2026 HAW Hamburg
4
* SPDX-License-Identifier: LGPL-2.1-only
5
*/
6
7
#pragma once
8
19
20
#include "
periph/gpio.h
"
21
#include "
periph/adc.h
"
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
32
#define ARDUINO_UART_D0D1 UART_DEV(0)
34
39
#define ARDUINO_SPI_DEV SPI_DEV(0)
41
46
#define ARDUINO_I2C_DEV I2C_DEV(0)
48
53
#define ARDUINO_LED (15)
55
60
/* Left pins */
61
#define ARDUINO_PIN_0 GPIO0
62
#define ARDUINO_PIN_1 GPIO1
63
#define ARDUINO_PIN_2 GPIO2
64
#define ARDUINO_PIN_3 GPIO21
65
#define ARDUINO_PIN_4 GPIO22
66
#define ARDUINO_PIN_5 GPIO23
67
#define ARDUINO_PIN_6 GPIO16
68
69
/* Right side */
70
#define ARDUINO_PIN_7 GPIO17
71
#define ARDUINO_PIN_8 GPIO19
72
#define ARDUINO_PIN_9 GPIO20
73
#define ARDUINO_PIN_10 GPIO18
74
75
#define ARDUINO_PIN_LAST 10
77
82
#define ARDUINO_PIN_A0 ARDUINO_PIN_0
83
#define ARDUINO_PIN_A1 ARDUINO_PIN_1
84
#define ARDUINO_PIN_A2 ARDUINO_PIN_2
86
91
#define ARDUINO_A0 ADC_LINE(0)
92
#define ARDUINO_A1 ADC_LINE(1)
93
#define ARDUINO_A2 ADC_LINE(2)
94
95
#define ARDUINO_ANALOG_PIN_LAST 2
97
98
#ifdef __cplusplus
99
}
100
#endif
adc.h
Low-level ADC peripheral driver interface definitions.
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Mon Jul 13 2026 17:05:02 by
1.13.2