arduino_iomap.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2018 Gunar Schorcht
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
18 #include "periph/gpio.h"
19 #include "periph/adc.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
28 #define ARDUINO_LED (3)
29 
34 #define ARDUINO_PIN_0 GPIO1 /* D0 (RxD) */
35 #define ARDUINO_PIN_1 GPIO3 /* D1 (TxD) */
36 #define ARDUINO_PIN_2 GPIO0 /* D2 */
37 #define ARDUINO_PIN_3 GPIO2 /* D3 */
38 #if defined(CONFIG_FLASHMODE_QIO) || defined(CONFIG_FLASHMODE_QOUT)
39 # define ARDUINO_PIN_4 GPIO9 /* D4 */
40 # define ARDUINO_PIN_5 GPIO10 /* D5 */
41 #endif
42 #define ARDUINO_PIN_10 GPIO15 /* D10 (CS0) */
43 #define ARDUINO_PIN_11 GPIO13 /* D11 (MOSI) */
44 #define ARDUINO_PIN_12 GPIO12 /* D12 (MISO) */
45 #define ARDUINO_PIN_13 GPIO14 /* D13 (SCK) */
46 
47 #define ARDUINO_PIN_18 GPIO4 /* D18 (A4 / SDA) */
48 #define ARDUINO_PIN_19 GPIO5 /* D19 (A5 / SCL) */
49 
50 #define ARDUINO_PIN_LAST 19
57 #define ARDUINO_PIN_A4 ARDUINO_PIN_18
58 #define ARDUINO_PIN_A5 ARDUINO_PIN_19
61 #ifdef __cplusplus
62 }
63 #endif
64 
Low-level ADC peripheral driver interface definitions.
Low-level GPIO peripheral driver interface definitions.