2014-11-19 11:52:57 +01:00
|
|
|
/**
|
|
|
|
* Native CPU peripheral configuration
|
|
|
|
*
|
2015-09-27 18:58:30 +02:00
|
|
|
* Copyright (C) 2014 Ludwig Knüpfer <ludwig.knuepfer@fu-berlin.de>
|
2014-11-19 11:52:57 +01:00
|
|
|
*
|
|
|
|
* 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 native_cpu
|
|
|
|
* @{
|
|
|
|
* @file
|
2015-09-27 18:58:30 +02:00
|
|
|
* @author Ludwig Knüpfer <ludwig.knuepfer@fu-berlin.de>
|
2014-11-19 11:52:57 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PERIPH_CONF_H
|
|
|
|
#define PERIPH_CONF_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-07-09 16:09:59 +02:00
|
|
|
/**
|
|
|
|
* @name hardware timer clock skew avoidance
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#define NATIVE_TIMER_MIN_RES 200
|
|
|
|
/** @} */
|
|
|
|
|
2014-11-19 11:52:57 +01:00
|
|
|
/**
|
|
|
|
* @name Random Number Generator configuration
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#define RANDOM_NUMOF (1U)
|
|
|
|
/** @} */
|
|
|
|
|
2014-10-31 15:57:17 +01:00
|
|
|
/**
|
|
|
|
* @name RealTime Clock configuration
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#define RTC_NUMOF (1)
|
|
|
|
/** @} */
|
|
|
|
|
2015-04-25 22:36:39 +02:00
|
|
|
/**
|
|
|
|
* @name Timer peripheral configuration
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#define TIMER_NUMOF (1U)
|
|
|
|
#define TIMER_0_EN 1
|
2015-07-09 02:12:16 +02:00
|
|
|
|
2015-08-14 14:02:58 +02:00
|
|
|
/**
|
|
|
|
* @brief xtimer configuration
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#define XTIMER_OVERHEAD 14
|
2016-01-06 13:57:48 +01:00
|
|
|
|
|
|
|
/* timer_set_absolute() has a high margin for possible underflow if set with
|
|
|
|
* value not far in the future. To prevent this, we set high backoff values
|
|
|
|
* here.
|
|
|
|
*/
|
|
|
|
#define XTIMER_BACKOFF 200
|
|
|
|
#define XTIMER_ISR_BACKOFF 200
|
|
|
|
|
2015-04-25 22:36:39 +02:00
|
|
|
/** @} */
|
|
|
|
|
2015-12-09 09:29:47 +01:00
|
|
|
/**
|
|
|
|
* @brief UART configuration
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#ifndef UART_NUMOF
|
|
|
|
#define UART_NUMOF (1U)
|
|
|
|
#endif
|
|
|
|
/** @} */
|
|
|
|
|
2014-11-19 11:52:57 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* PERIPH_CONF_H */
|
|
|
|
/** @} */
|