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
* Copyright (C) 2024 Christian Amsüss <chrysn@fsfe.org>
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
21
22
#include "
periph/gpio.h
"
23
#include "
periph/adc.h
"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
41
#define ARDUINO_PIN_0 GPIO_PIN(0, 11)
42
#define ARDUINO_PIN_1 GPIO_PIN(0, 12)
43
44
#define ARDUINO_PIN_2 GPIO_PIN(0, 13)
45
#define ARDUINO_PIN_3 GPIO_PIN(0, 14)
46
#define ARDUINO_PIN_4 GPIO_PIN(0, 15)
47
#define ARDUINO_PIN_5 GPIO_PIN(0, 16)
48
49
/* Those interact with LEDs, SWO and IOEXP_IRQ */
50
#define ARDUINO_PIN_6 GPIO_PIN(0, 17)
51
#define ARDUINO_PIN_7 GPIO_PIN(0, 18)
52
#define ARDUINO_PIN_8 GPIO_PIN(0, 19)
53
#define ARDUINO_PIN_9 GPIO_PIN(0, 20)
54
55
#define ARDUINO_PIN_10 GPIO_PIN(0, 22)
56
#define ARDUINO_PIN_11 GPIO_PIN(0, 23)
57
#define ARDUINO_PIN_12 GPIO_PIN(0, 24)
58
#define ARDUINO_PIN_13 GPIO_PIN(0, 25)
59
#define ARDUINO_PIN_14 GPIO_PIN(0, 0)
60
#define ARDUINO_PIN_15 GPIO_PIN(0, 1)
61
/* Also RESET */
62
#define ARDUINO_PIN_16 GPIO_PIN(0, 21)
63
64
/* These are also UART ports */
65
#define ARDUINO_PIN_17 GPIO_PIN(0, 5)
66
#define ARDUINO_PIN_18 GPIO_PIN(0, 6)
67
#define ARDUINO_PIN_19 GPIO_PIN(0, 7)
68
#define ARDUINO_PIN_20 GPIO_PIN(0, 8)
69
70
#define ARDUINO_PIN_21 GPIO_PIN(0, 9)
71
#define ARDUINO_PIN_22 GPIO_PIN(0, 10)
72
73
#define ARDUINO_PIN_LAST 22
75
80
#define ARDUINO_PIN_A0 GPIO_PIN(0, 3)
81
#define ARDUINO_PIN_A1 GPIO_PIN(0, 4)
82
#define ARDUINO_PIN_A2 GPIO_PIN(0, 28)
83
#define ARDUINO_PIN_A3 GPIO_PIN(0, 29)
84
#define ARDUINO_PIN_A4 GPIO_PIN(0, 30)
85
#define ARDUINO_PIN_A5 GPIO_PIN(0, 31)
87
95
#define ARDUINO_I2C_UNO I2C_DEV(0)
97
105
#define ARDUINO_SPI_D11D12D13 SPI_DEV(0)
107
108
#ifdef __cplusplus
109
}
110
#endif
111
adc.h
Low-level ADC peripheral driver interface definitions.
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Thu Jul 3 2025 17:41:18 by
1.13.2