mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
57 lines
1019 B
C
57 lines
1019 B
C
/*
|
|
* Copyright (C) 2015 Freie Universität Berlin
|
|
*
|
|
* 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_stm32f4discovery
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Board specific configuration for the Arduino API
|
|
*
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
*/
|
|
|
|
#ifndef ARDUINO_BOARD_H
|
|
#define ARDUINO_BOARD_H
|
|
|
|
#include "arduino_pinmap.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define ARDUINO_LED (2)
|
|
|
|
static const gpio_t arduino_pinmap[] = {
|
|
ARDUINO_PIN_0,
|
|
ARDUINO_PIN_1,
|
|
ARDUINO_PIN_2,
|
|
ARDUINO_PIN_3,
|
|
ARDUINO_PIN_4,
|
|
ARDUINO_PIN_5,
|
|
ARDUINO_PIN_6,
|
|
ARDUINO_PIN_7,
|
|
};
|
|
|
|
/**
|
|
* @brief Look-up table for the Arduino's analog pins
|
|
*/
|
|
static const adc_t arduino_analog_map[] = {
|
|
ARDUINO_A0,
|
|
ARDUINO_A1,
|
|
ARDUINO_A2,
|
|
ARDUINO_A3,
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ARDUINO_BOARD_H */
|
|
/** @} */
|