Loading...
Searching...
No Matches
arduino_iomap.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2025 David Picard
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
9#pragma once
10
20
21#include "periph/gpio.h"
22#include "periph/adc.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
32#define ARDUINO_PIN_0 GPIO2
33#define ARDUINO_PIN_1 GPIO3
34#define ARDUINO_PIN_2 GPIO4
35#define ARDUINO_PIN_3 GPIO5
36#define ARDUINO_PIN_4 GPIO6
37#define ARDUINO_PIN_5 GPIO7
38#define ARDUINO_PIN_6 GPIO21
39#define ARDUINO_PIN_7 GPIO20
40#define ARDUINO_PIN_8 GPIO8
41#define ARDUINO_PIN_9 GPIO9
42#define ARDUINO_PIN_10 GPIO10
43
44#define ARDUINO_PIN_LAST 10
46
51#define ARDUINO_A0 ADC_LINE(0)
52#define ARDUINO_A1 ADC_LINE(1)
53#define ARDUINO_A2 ADC_LINE(2)
54
55#define ARDUINO_ANALOG_PIN_LAST 2
57
58#ifdef __cplusplus
59}
60#endif
61
Low-level ADC peripheral driver interface definitions.
Low-level GPIO peripheral driver interface definitions.