Loading...
Searching...
No Matches
arduino_iomap.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 J. David Ibáñez <jdavid.ibp@gmail.com>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
20
21#include "periph/gpio.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
37
38#define ARDUINO_PIN_3 GPIO_PIN(PORT_A, 13)
39#define ARDUINO_PIN_4 GPIO_PIN(PORT_A, 14)
40#define ARDUINO_PIN_5 GPIO_PIN(PORT_B, 15)
41#define ARDUINO_PIN_6 GPIO_PIN(PORT_A, 15)
42#define ARDUINO_PIN_7 GPIO_PIN(PORT_B, 4)
43#define ARDUINO_PIN_8 GPIO_PIN(PORT_B, 3)
44#define ARDUINO_PIN_9 GPIO_PIN(PORT_B, 7)
45#define ARDUINO_PIN_10 GPIO_PIN(PORT_B, 6)
46#define ARDUINO_PIN_11 GPIO_PIN(PORT_B, 5)
47#define ARDUINO_PIN_12 GPIO_PIN(PORT_C, 1)
48#define ARDUINO_PIN_13 GPIO_PIN(PORT_C, 0)
49#define ARDUINO_PIN_18 GPIO_PIN(PORT_A, 3)
50#define ARDUINO_PIN_19 GPIO_PIN(PORT_A, 2)
51#define ARDUINO_PIN_20 GPIO_PIN(PORT_B, 10)
52#define ARDUINO_PIN_21 GPIO_PIN(PORT_A, 9)
53#define ARDUINO_PIN_23 GPIO_PIN(PORT_A, 0)
54#define ARDUINO_PIN_24 GPIO_PIN(PORT_B, 13)
55#define ARDUINO_PIN_25 GPIO_PIN(PORT_B, 9)
56#define ARDUINO_PIN_26 GPIO_PIN(PORT_B, 14)
57#define ARDUINO_PIN_27 GPIO_PIN(PORT_A, 10)
58#define ARDUINO_PIN_28 GPIO_PIN(PORT_B, 0)
59
60#define ARDUINO_PIN_LAST 28
62
63#ifdef __cplusplus
64}
65#endif
66
Low-level GPIO peripheral driver interface definitions.