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
31
#define ARDUINO_UART_D0D1 UART_DEV(0)
33
38
#define ARDUINO_SPI_DEV SPI_DEV(0)
40
45
#define ARDUINO_I2C_DEV I2C_DEV(0)
47
52
#define ARDUINO_LED (15)
54
59
/* Left pins */
60
#define ARDUINO_PIN_0 GPIO0
61
#define ARDUINO_PIN_1 GPIO1
62
#define ARDUINO_PIN_2 GPIO2
63
#define ARDUINO_PIN_3 GPIO21
64
#define ARDUINO_PIN_4 GPIO22
65
#define ARDUINO_PIN_5 GPIO23
66
#define ARDUINO_PIN_6 GPIO16
67
68
/* Right side */
69
#define ARDUINO_PIN_7 GPIO17
70
#define ARDUINO_PIN_8 GPIO19
71
#define ARDUINO_PIN_9 GPIO20
72
#define ARDUINO_PIN_10 GPIO18
73
74
#define ARDUINO_PIN_LAST 10
76
81
#define ARDUINO_PIN_A0 ARDUINO_PIN_0
82
#define ARDUINO_PIN_A1 ARDUINO_PIN_1
83
#define ARDUINO_PIN_A2 ARDUINO_PIN_2
85
90
#define ARDUINO_A0 ADC_LINE(0)
91
#define ARDUINO_A1 ADC_LINE(1)
92
#define ARDUINO_A2 ADC_LINE(2)
93
94
#define ARDUINO_ANALOG_PIN_LAST 2
96
97
#ifdef __cplusplus
98
}
99
#endif
adc.h
Low-level ADC peripheral driver interface definitions.
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Fri Sep 18 2026 14:25:04 by
1.13.2