1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/slwstk6220a/include/board.h
2018-08-01 15:24:55 +02:00

85 lines
1.8 KiB
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_slwstk6220a
* @{
*
* @file
* @brief Board specific definitions for the WSTK6220 evaluation kit
*
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#ifndef BOARD_H
#define BOARD_H
#include "cpu.h"
#include "periph_conf.h"
#include "periph_cpu.h"
#include "periph/gpio.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Assign the hardware timer
*/
#define HW_TIMER TIMER_DEV(0)
/**
* @name Connection to the on-board temperature/humidity sensor (Si7021)
* @{
*/
#define SI7021_I2C (I2C_0)
#define SI7021_ADDR (0) /* TODO */
#define SI7021_EN_PIN GPIO_PIN(PF,8)
/** @} */
/**
* @brief GPIO pin for enabling communication through the board controller
*/
#define BC_PIN GPIO_PIN(PA,12)
/**
* @name User button pin definitions
* @{
*/
#define PB0_PIN GPIO_PIN(PE,3)
#define PB1_PIN GPIO_PIN(PE,2)
/** @} */
/**
* @name LED pin definitions
* @{
*/
#define LED0_PIN GPIO_PIN(PF, 6)
#define LED1_PIN GPIO_PIN(PF, 7)
#define LED0_ON gpio_set(LED0_PIN)
#define LED0_OFF gpio_clear(LED0_PIN)
#define LED0_TOGGLE gpio_toggle(LED0_PIN)
#define LED1_ON gpio_set(LED1_PIN)
#define LED1_OFF gpio_clear(LED1_PIN)
#define LED1_TOGGLE gpio_toggle(LED1_PIN)
/** @} */
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/
void board_init(void);
#ifdef __cplusplus
}
#endif
#endif /* BOARD_H */
/** @} */