mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
83 lines
1.9 KiB
C
83 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_esp32_esp-wrover-kit
|
||
|
* @{
|
||
|
*
|
||
|
* @file
|
||
|
* @brief Board specific configuration for the Arduino API
|
||
|
*
|
||
|
* @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 not available
|
||
|
*/
|
||
|
#define ARDUINO_LED (0)
|
||
|
|
||
|
/**
|
||
|
* @brief Look-up table for the Arduino's digital pins
|
||
|
*/
|
||
|
static const gpio_t arduino_pinmap[] = {
|
||
|
GPIO3, /* ARDUINO_PIN_0 (RxD) */
|
||
|
GPIO1, /* ARDUINO_PIN_1 (TxD) */
|
||
|
|
||
|
GPIO19, /* ARDUINO_PIN_2 */
|
||
|
GPIO0, /* ARDUINO_PIN_3 (PWM) */
|
||
|
GPIO22, /* ARDUINO_PIN_4 */
|
||
|
GPIO4, /* ARDUINO_PIN_5 (PWM) */
|
||
|
GPIO23, /* ARDUINO_PIN_6 (PWM) */
|
||
|
GPIO25, /* ARDUINO_PIN_7 */
|
||
|
GPIO9, /* ARDUINO_PIN_8 */
|
||
|
GPIO10, /* ARDUINO_PIN_9 (PWM) */
|
||
|
|
||
|
GPIO13, /* ARDUINO_PIN_10 (CS0 / PWM) */
|
||
|
GPIO15, /* ARDUINO_PIN_11 (MOSI / PWM) */
|
||
|
GPIO2, /* ARDUINO_PIN_12 (MISO) */
|
||
|
GPIO14, /* ARDUINO_PIN_13 (SCK) */
|
||
|
|
||
|
GPIO34, /* ARDUINO_PIN_A0 */
|
||
|
GPIO35, /* ARDUINO_PIN_A1 */
|
||
|
GPIO36, /* ARDUINO_PIN_A2 */
|
||
|
GPIO39, /* ARDUINO_PIN_A3 */
|
||
|
|
||
|
GPIO26, /* ARDUINO_PIN_A4 (SDA) */
|
||
|
GPIO27, /* ARDUINO_PIN_A5 (SCL) */
|
||
|
};
|
||
|
|
||
|
/**
|
||
|
* @brief Look-up table for the Arduino's analog pins
|
||
|
*/
|
||
|
static const adc_t arduino_analog_map[] = {
|
||
|
GPIO34, /* ARDUINO_PIN_A0 */
|
||
|
GPIO35, /* ARDUINO_PIN_A1 */
|
||
|
GPIO36, /* ARDUINO_PIN_A2 */
|
||
|
GPIO39, /* ARDUINO_PIN_A3 */
|
||
|
|
||
|
GPIO26, /* ARDUINO_PIN_A4 (SDA) */
|
||
|
GPIO27, /* ARDUINO_PIN_A5 (SCL) */
|
||
|
};
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif /* ARDUINO_BOARD_H */
|
||
|
/** @} */
|