1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-16 10:03:50 +01:00

69 lines
1.6 KiB
C

/*
* 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.
*/
#pragma once
/**
* @ingroup boards_esp8266_esp-12x
* @{
*
* @file
* @brief Board specific configuration for the Arduino API
*
* @author Gunar Schorcht <gunar@schorcht.net>
*/
#include "periph/gpio.h"
#include "periph/adc.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief The on-board LED is connected to GPIO2 (Arduino pin 3) on this board
*/
#define ARDUINO_LED (3)
/**
* @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 GPIO2 /* 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_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 GPIO4 /* D18 (A4 / SDA) */
#define ARDUINO_PIN_19 GPIO5 /* 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
/** @} */