set xtimer parameters for cc2538-based boards.

This commit is contained in:
Ian Martin 2016-02-22 16:38:39 -05:00
parent 3c275370c3
commit 4b29d2ef6d
3 changed files with 34 additions and 0 deletions

View File

@ -72,6 +72,17 @@ extern "C" {
#define CCA_BACKDOOR_ACTIVE_LEVEL 0 /**< Active low */ #define CCA_BACKDOOR_ACTIVE_LEVEL 0 /**< Active low */
/** @} */ /** @} */
/**
* @name xtimer configuration
* @{
*/
#define XTIMER TIMER_0
#define XTIMER_CHAN 0
#define XTIMER_SHIFT -4
#define XTIMER_BACKOFF 50
#define XTIMER_ISR_BACKOFF 40
/** @} */
/** /**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO * @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/ */

View File

@ -60,6 +60,17 @@
#define LED_ORANGE_TOGGLE (LED_PORT->DATA ^= (1 << LED_ORANGE_PIN)) #define LED_ORANGE_TOGGLE (LED_PORT->DATA ^= (1 << LED_ORANGE_PIN))
/** @} */ /** @} */
/**
* @name xtimer configuration
* @{
*/
#define XTIMER TIMER_0
#define XTIMER_CHAN 0
#define XTIMER_SHIFT -4
#define XTIMER_BACKOFF 50
#define XTIMER_ISR_BACKOFF 40
/** @} */
/** /**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO * @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/ */

View File

@ -121,6 +121,18 @@
#define RF_SWITCH_INTERNAL (RF_SWITCH_PORT->DATA &= ~(1 << RF_SWITCH_PIN)) #define RF_SWITCH_INTERNAL (RF_SWITCH_PORT->DATA &= ~(1 << RF_SWITCH_PIN))
#define RF_SWITCH_TOGGLE (RF_SWITCH_PORT->DATA ^= (1 << RF_SWITCH_PIN)) #define RF_SWITCH_TOGGLE (RF_SWITCH_PORT->DATA ^= (1 << RF_SWITCH_PIN))
/** @} */ /** @} */
/**
* @name xtimer configuration
* @{
*/
#define XTIMER TIMER_0
#define XTIMER_CHAN 0
#define XTIMER_SHIFT -4
#define XTIMER_BACKOFF 50
#define XTIMER_ISR_BACKOFF 40
/** @} */
/** /**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO * @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/ */