/* * 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_BOARD_H #define ARDUINO_BOARD_H #include "periph/gpio.h" #include "periph/adc.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 Look-up table for the Arduino's digital pins */ static const gpio_t arduino_pinmap[] = { GPIO1, /* ARDUINO_PIN_0 (RxD) */ GPIO3, /* ARDUINO_PIN_1 (TxD) */ GPIO0, /* ARDUINO_PIN_2 */ GPIO4, /* ARDUINO_PIN_3 */ #if defined(FLASH_MODE_QIO) || defined(FLASH_MODE_QOUT) GPIO9, /* ARDUINO_PIN_4 */ GPIO10, /* ARDUINO_PIN_5 */ #else GPIO_UNDEF, /* ARDUINO_PIN_4 */ GPIO_UNDEF, /* ARDUINO_PIN_5 */ #endif GPIO5, /* ARDUINO_PIN_6 */ GPIO_UNDEF, /* ARDUINO_PIN_7 */ GPIO_UNDEF, /* ARDUINO_PIN_8 */ GPIO_UNDEF, /* ARDUINO_PIN_9 */ GPIO15, /* ARDUINO_PIN_10 (CS0) */ GPIO13, /* ARDUINO_PIN_11 (MOSI) */ GPIO12, /* ARDUINO_PIN_12 (MISO) */ GPIO14, /* ARDUINO_PIN_13 (SCK) */ GPIO_UNDEF, /* ARDUINO_PIN_A0 */ GPIO_UNDEF, /* ARDUINO_PIN_A1 */ GPIO_UNDEF, /* ARDUINO_PIN_A2 */ GPIO_UNDEF, /* ARDUINO_PIN_A3 */ GPIO2, /* ARDUINO_PIN_A4 (SDA) */ GPIO14, /* ARDUINO_PIN_A5 (SCL) */ }; /** * @brief Look-up table for the Arduino's analog pins */ static const adc_t arduino_analog_map[] = { }; #ifdef __cplusplus } #endif #endif /* ARDUINO_BOARD_H */ /** @} */