arduino_iomap.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2025 David Picard
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
18 #include "periph/gpio.h"
19 #include "periph/adc.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
29 #define ARDUINO_PIN_0 GPIO2
30 #define ARDUINO_PIN_1 GPIO3
31 #define ARDUINO_PIN_2 GPIO4
32 #define ARDUINO_PIN_3 GPIO5
33 #define ARDUINO_PIN_4 GPIO6
34 #define ARDUINO_PIN_5 GPIO7
35 #define ARDUINO_PIN_6 GPIO21
36 #define ARDUINO_PIN_7 GPIO20
37 #define ARDUINO_PIN_8 GPIO8
38 #define ARDUINO_PIN_9 GPIO9
39 #define ARDUINO_PIN_10 GPIO10
41 #define ARDUINO_PIN_LAST 10
48 #define ARDUINO_A0 ADC_LINE(0)
49 #define ARDUINO_A1 ADC_LINE(1)
50 #define ARDUINO_A2 ADC_LINE(2)
52 #define ARDUINO_ANALOG_PIN_LAST 2
55 #ifdef __cplusplus
56 }
57 #endif
58 
Low-level ADC peripheral driver interface definitions.
Low-level GPIO peripheral driver interface definitions.