arduino_iomap.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 J. David Ibáñez <jdavid.ibp@gmail.com>
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 
24 #include "periph/gpio.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
41 #define ARDUINO_PIN_3 GPIO_PIN(PORT_A, 13)
42 #define ARDUINO_PIN_4 GPIO_PIN(PORT_A, 14)
43 #define ARDUINO_PIN_5 GPIO_PIN(PORT_B, 15)
44 #define ARDUINO_PIN_6 GPIO_PIN(PORT_A, 15)
45 #define ARDUINO_PIN_7 GPIO_PIN(PORT_B, 4)
46 #define ARDUINO_PIN_8 GPIO_PIN(PORT_B, 3)
47 #define ARDUINO_PIN_9 GPIO_PIN(PORT_B, 7)
48 #define ARDUINO_PIN_10 GPIO_PIN(PORT_B, 6)
49 #define ARDUINO_PIN_11 GPIO_PIN(PORT_B, 5)
50 #define ARDUINO_PIN_12 GPIO_PIN(PORT_C, 1)
51 #define ARDUINO_PIN_13 GPIO_PIN(PORT_C, 0)
52 #define ARDUINO_PIN_18 GPIO_PIN(PORT_A, 3)
53 #define ARDUINO_PIN_19 GPIO_PIN(PORT_A, 2)
54 #define ARDUINO_PIN_20 GPIO_PIN(PORT_B, 10)
55 #define ARDUINO_PIN_21 GPIO_PIN(PORT_A, 9)
56 #define ARDUINO_PIN_23 GPIO_PIN(PORT_A, 0)
57 #define ARDUINO_PIN_24 GPIO_PIN(PORT_B, 13)
58 #define ARDUINO_PIN_25 GPIO_PIN(PORT_B, 9)
59 #define ARDUINO_PIN_26 GPIO_PIN(PORT_B, 14)
60 #define ARDUINO_PIN_27 GPIO_PIN(PORT_A, 10)
61 #define ARDUINO_PIN_28 GPIO_PIN(PORT_B, 0)
63 #define ARDUINO_PIN_LAST 28
66 #ifdef __cplusplus
67 }
68 #endif
69 
Low-level GPIO peripheral driver interface definitions.