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