mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ae16753f6f
The former FLASH_MODE_{DOUT,DIO,QOUT,QIO} defines are replaced by the corresponding CONFIG_FLASHMODE_{DOUT,DIO,QOUT,QIO} and CONFIG_ESPTOOLPY_FLASHMODE_{DOUT,DIO,QOUT,QIO} as used by the ESP-IDF. This is also needed for the migration of defining flash mode in Kconfig.
75 lines
1.9 KiB
C
75 lines
1.9 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.
|
|
*/
|
|
|
|
/**
|
|
* @ingroup boards_esp8266_sparkfun-thing
|
|
* @brief Board specific configuration for the Arduino API
|
|
* @file
|
|
* @author Gunar Schorcht <gunar@schorcht.net>
|
|
* @{
|
|
*/
|
|
|
|
#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 GPIO5 (Arduino pin 6) on this board
|
|
*/
|
|
#define ARDUINO_LED (6)
|
|
|
|
/**
|
|
* @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(CONFIG_FLASHMODE_QIO) || defined(CONFIG_FLASHMODE_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 */
|
|
/** @} */
|