/* * Copyright (C) 2018 Gunar Schorcht * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup boards_esp8266_olimex-mod * @brief Board specific configuration for the Arduino API * @file * @author Gunar Schorcht * @{ */ #ifndef ARDUINO_IOMAP_H #define ARDUINO_IOMAP_H #include "periph/adc.h" #include "periph/gpio.h" #ifdef __cplusplus extern "C" { #endif /** * @brief The on-board LED is connected to GPIO1 (Arduino pin 0) on this board */ #define ARDUINO_LED (0) /** * @brief Mapping of MCU pins to Arduino pins * @{ */ #define ARDUINO_PIN_0 GPIO1 /* D0 (RxD) */ #define ARDUINO_PIN_1 GPIO3 /* D1 (TxD) */ #define ARDUINO_PIN_2 GPIO0 /* D2 */ #define ARDUINO_PIN_3 GPIO4 /* D3 */ #if defined(CONFIG_FLASHMODE_QIO) || defined(CONFIG_FLASHMODE_QOUT) # define ARDUINO_PIN_4 GPIO9 /* D4 */ # define ARDUINO_PIN_5 GPIO10 /* D5 */ #endif #define ARDUINO_PIN_6 GPIO5 /* D6 */ #define ARDUINO_PIN_10 GPIO15 /* D10 (CS0) */ #define ARDUINO_PIN_11 GPIO13 /* D11 (MOSI) */ #define ARDUINO_PIN_12 GPIO12 /* D12 (MISO) */ #define ARDUINO_PIN_13 GPIO14 /* D13 (SCK) */ #define ARDUINO_PIN_18 GPIO2 /* D18 (A4 / SDA) */ #define ARDUINO_PIN_19 GPIO14 /* D19 (A5 / SCL) */ #define ARDUINO_PIN_LAST 19 /** @} */ /** * @name Aliases for analog pins * @{ */ #define ARDUINO_PIN_A4 ARDUINO_PIN_18 #define ARDUINO_PIN_A5 ARDUINO_PIN_19 /** @} */ #ifdef __cplusplus } #endif #endif /* ARDUINO_IOMAP_H */ /** @} */