2016-01-23 14:41:09 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 Leon George
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2018-07-26 11:59:14 +02:00
|
|
|
* @ingroup boards_cc2650stk
|
2016-01-23 14:41:09 +01:00
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Board configuration for the CC2650STK
|
|
|
|
*
|
|
|
|
* @author Leon M. George <leon@georgemail.eu>
|
2017-06-20 21:11:34 +02:00
|
|
|
* @author Sebastian Meiling <s@mlng.net>
|
2016-01-23 14:41:09 +01:00
|
|
|
*/
|
|
|
|
|
2017-01-18 13:00:05 +01:00
|
|
|
#ifndef BOARD_H
|
|
|
|
#define BOARD_H
|
2016-01-23 14:41:09 +01:00
|
|
|
|
|
|
|
#include "periph/gpio.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
2017-07-10 14:56:14 +02:00
|
|
|
* @name xtimer configuration
|
2016-01-23 14:41:09 +01:00
|
|
|
* @{
|
|
|
|
*/
|
2017-07-10 14:56:14 +02:00
|
|
|
#define XTIMER_WIDTH (16)
|
|
|
|
#define XTIMER_BACKOFF (50)
|
|
|
|
#define XTIMER_ISR_BACKOFF (40)
|
2016-01-23 14:41:09 +01:00
|
|
|
/** @} */
|
|
|
|
|
|
|
|
/**
|
2017-04-10 19:04:32 +02:00
|
|
|
* @name On-board button configuration
|
2016-01-23 14:41:09 +01:00
|
|
|
* @{
|
|
|
|
*/
|
2017-06-20 21:11:34 +02:00
|
|
|
#define BTN0_PIN GPIO_PIN(0, 4)
|
2017-07-10 15:07:26 +02:00
|
|
|
#define BTN0_MODE GPIO_IN_PU
|
2017-06-20 21:11:34 +02:00
|
|
|
#define BTN1_PIN GPIO_PIN(0, 0)
|
2017-07-10 15:07:26 +02:00
|
|
|
#define BTN1_MODE GPIO_IN_PU
|
2016-01-23 14:41:09 +01:00
|
|
|
/** @} */
|
|
|
|
|
|
|
|
/**
|
2017-04-10 19:04:32 +02:00
|
|
|
* @name Macros for controlling the on-board LEDs
|
2016-01-23 14:41:09 +01:00
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#define LED0_PIN GPIO_PIN(0, 10)
|
|
|
|
#define LED1_PIN GPIO_PIN(0, 15)
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
2017-01-18 13:00:05 +01:00
|
|
|
#endif /* BOARD_H */
|
2016-01-23 14:41:09 +01:00
|
|
|
/** @} */
|