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 
22 #ifndef ARDUINO_IOMAP_H
23 #define ARDUINO_IOMAP_H
24 
25 #include "periph/gpio.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
42 #define ARDUINO_PIN_3 GPIO_PIN(PORT_A, 13)
43 #define ARDUINO_PIN_4 GPIO_PIN(PORT_A, 14)
44 #define ARDUINO_PIN_5 GPIO_PIN(PORT_B, 15)
45 #define ARDUINO_PIN_6 GPIO_PIN(PORT_A, 15)
46 #define ARDUINO_PIN_7 GPIO_PIN(PORT_B, 4)
47 #define ARDUINO_PIN_8 GPIO_PIN(PORT_B, 3)
48 #define ARDUINO_PIN_9 GPIO_PIN(PORT_B, 7)
49 #define ARDUINO_PIN_10 GPIO_PIN(PORT_B, 6)
50 #define ARDUINO_PIN_11 GPIO_PIN(PORT_B, 5)
51 #define ARDUINO_PIN_12 GPIO_PIN(PORT_C, 1)
52 #define ARDUINO_PIN_13 GPIO_PIN(PORT_C, 0)
53 #define ARDUINO_PIN_18 GPIO_PIN(PORT_A, 3)
54 #define ARDUINO_PIN_19 GPIO_PIN(PORT_A, 2)
55 #define ARDUINO_PIN_20 GPIO_PIN(PORT_B, 10)
56 #define ARDUINO_PIN_21 GPIO_PIN(PORT_A, 9)
57 #define ARDUINO_PIN_23 GPIO_PIN(PORT_A, 0)
58 #define ARDUINO_PIN_24 GPIO_PIN(PORT_B, 13)
59 #define ARDUINO_PIN_25 GPIO_PIN(PORT_B, 9)
60 #define ARDUINO_PIN_26 GPIO_PIN(PORT_B, 14)
61 #define ARDUINO_PIN_27 GPIO_PIN(PORT_A, 10)
62 #define ARDUINO_PIN_28 GPIO_PIN(PORT_B, 0)
64 #define ARDUINO_PIN_LAST 28
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 #endif /* ARDUINO_IOMAP_H */
Low-level GPIO peripheral driver interface definitions.