Loading...
Searching...
No Matches
arduino_iomap.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Bas Stottelaar <basstottelaar@gmail.com>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
20
21#include "periph/adc.h"
22#include "periph/gpio.h"
23#include "periph/i2c.h"
24#include "periph/spi.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
34#define ARDUINO_UART_DEV UART_UNDEF
36
41#define ARDUINO_SPI_DEV SPI_DEV(0)
43
48#define ARDUINO_I2C_DEV I2C_DEV(0)
50
55#define ARDUINO_LED (13)
57
62#define ARDUINO_PIN_0 GPIO_PIN(0, 8)
63#define ARDUINO_PIN_1 GPIO_PIN(0, 6)
64#define ARDUINO_PIN_2 GPIO_PIN(0, 17)
65#define ARDUINO_PIN_3 GPIO_PIN(0, 20)
66#define ARDUINO_PIN_4 GPIO_PIN(0, 22)
67#define ARDUINO_PIN_5 GPIO_PIN(0, 24)
68#define ARDUINO_PIN_6 GPIO_PIN(1, 0)
69#define ARDUINO_PIN_7 GPIO_PIN(0, 11)
70#define ARDUINO_PIN_8 GPIO_PIN(1, 4)
71#define ARDUINO_PIN_9 GPIO_PIN(1, 6)
72#define ARDUINO_PIN_10 GPIO_PIN(0, 9)
73#define ARDUINO_PIN_11 GPIO_UNDEF
74#define ARDUINO_PIN_12 GPIO_UNDEF
75#define ARDUINO_PIN_13 GPIO_PIN(0, 15)
76#define ARDUINO_PIN_14 GPIO_PIN(1, 11)
77#define ARDUINO_PIN_15 GPIO_PIN(1, 13)
78#define ARDUINO_PIN_16 GPIO_PIN(0, 10)
79#define ARDUINO_PIN_17 GPIO_UNDEF
80#define ARDUINO_PIN_18 GPIO_PIN(1, 15)
81#define ARDUINO_PIN_19 GPIO_PIN(0, 2)
82#define ARDUINO_PIN_20 GPIO_PIN(0, 29)
83#define ARDUINO_PIN_21 GPIO_PIN(0, 31)
84
85#define ARDUINO_PIN_LAST 21
87
88#ifdef __cplusplus
89}
90#endif
91
Low-level ADC peripheral driver interface definitions.
Low-level GPIO peripheral driver interface definitions.
Low-level I2C peripheral driver interface definition.
Low-level SPI peripheral driver interface definition.