mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/efm32: align xtimer configuration
- move XTIMER_WIDTH within #if statement because sltk3402a is 32-bit - update comments - alignment.
This commit is contained in:
parent
cf65d27c94
commit
42deb1ab85
@ -33,11 +33,20 @@ extern "C" {
|
||||
/**
|
||||
* @name Xtimer configuration
|
||||
*
|
||||
* The timer runs at 250 KHz to increase accuracy.
|
||||
* The timer runs at 250 kHz to increase accuracy, or at 32.768 kHz if
|
||||
* LETIMER is used.
|
||||
* @{
|
||||
*/
|
||||
#if IS_ACTIVE(CONFIG_EFM32_XTIMER_USE_LETIMER)
|
||||
#define XTIMER_DEV (TIMER_DEV(1))
|
||||
#define XTIMER_HZ (32768UL)
|
||||
#define XTIMER_WIDTH (16)
|
||||
#else
|
||||
#define XTIMER_DEV (TIMER_DEV(0))
|
||||
#define XTIMER_HZ (250000UL)
|
||||
#define XTIMER_WIDTH (16)
|
||||
#endif
|
||||
#define XTIMER_CHAN (0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -33,18 +33,20 @@ extern "C" {
|
||||
/**
|
||||
* @name Xtimer configuration
|
||||
*
|
||||
* The timer runs at 250 kHz to increase accuracy or 32768 Hz for LETIMER.
|
||||
* The timer runs at 250 kHz to increase accuracy, or at 32.768 kHz if
|
||||
* LETIMER is used.
|
||||
* @{
|
||||
*/
|
||||
#if IS_ACTIVE(CONFIG_EFM32_XTIMER_USE_LETIMER)
|
||||
#define XTIMER_DEV (TIMER_DEV(1))
|
||||
#define XTIMER_HZ (32768UL)
|
||||
#define XTIMER_WIDTH (16)
|
||||
#else
|
||||
#define XTIMER_DEV (TIMER_DEV(0))
|
||||
#define XTIMER_HZ (250000UL)
|
||||
#endif
|
||||
#define XTIMER_WIDTH (16)
|
||||
#define XTIMER_CHAN (0)
|
||||
#endif
|
||||
#define XTIMER_CHAN (0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -96,7 +96,7 @@ static const timer_conf_t timer_config[] = {
|
||||
.cmu = cmuClock_TIMER1
|
||||
},
|
||||
.irq = TIMER1_IRQn,
|
||||
.channel_numof = 3
|
||||
.channel_numof = 4
|
||||
},
|
||||
{
|
||||
.prescaler = {
|
||||
@ -109,7 +109,7 @@ static const timer_conf_t timer_config[] = {
|
||||
},
|
||||
.irq = LETIMER0_IRQn,
|
||||
.channel_numof = 2
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
#define TIMER_0_ISR isr_timer1
|
||||
|
@ -32,18 +32,20 @@ extern "C" {
|
||||
/**
|
||||
* @name Xtimer configuration
|
||||
*
|
||||
* The timer runs at 250 KHz to increase accuracy or 32768 Hz for LETIMER.
|
||||
* The timer runs at 250 kHz to increase accuracy, or at 32.768 kHz if
|
||||
* LETIMER is used.
|
||||
* @{
|
||||
*/
|
||||
#if IS_ACTIVE(CONFIG_EFM32_XTIMER_USE_LETIMER)
|
||||
#define XTIMER_DEV (TIMER_DEV(1))
|
||||
#define XTIMER_HZ (32768UL)
|
||||
#define XTIMER_WIDTH (16)
|
||||
#else
|
||||
#define XTIMER_DEV (TIMER_DEV(0))
|
||||
#define XTIMER_HZ (250000UL)
|
||||
#endif
|
||||
#define XTIMER_WIDTH (16)
|
||||
#define XTIMER_CHAN (0)
|
||||
#endif
|
||||
#define XTIMER_CHAN (0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -31,6 +31,9 @@ extern "C" {
|
||||
|
||||
/**
|
||||
* @name Xtimer configuration
|
||||
*
|
||||
* The timer runs at 1000 kHz to increase accuracy, or at 32.768 kHz if
|
||||
* LETIMER is used.
|
||||
* @{
|
||||
*/
|
||||
#if IS_ACTIVE(CONFIG_EFM32_XTIMER_USE_LETIMER)
|
||||
@ -42,7 +45,7 @@ extern "C" {
|
||||
#define XTIMER_HZ (1000000UL)
|
||||
#define XTIMER_WIDTH (32)
|
||||
#endif
|
||||
#define XTIMER_CHAN (0)
|
||||
#define XTIMER_CHAN (0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -32,7 +32,8 @@ extern "C" {
|
||||
/**
|
||||
* @name Xtimer configuration
|
||||
*
|
||||
* The timer runs at 250 KHz to increase accuracy or 32768 Hz for LETIMER.
|
||||
* The timer runs at 250 kHz to increase accuracy, or at 32.768 kHz if
|
||||
* LETIMER is used.
|
||||
* @{
|
||||
*/
|
||||
#if IS_ACTIVE(CONFIG_EFM32_XTIMER_USE_LETIMER)
|
||||
@ -44,7 +45,7 @@ extern "C" {
|
||||
#define XTIMER_HZ (250000UL)
|
||||
#define XTIMER_WIDTH (16)
|
||||
#endif
|
||||
#define XTIMER_CHAN (0)
|
||||
#define XTIMER_CHAN (0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -32,11 +32,13 @@ extern "C" {
|
||||
/**
|
||||
* @name Xtimer configuration
|
||||
*
|
||||
* The timer runs at 250 KHz to increase accuracy.
|
||||
* The timer runs at 250 kHz.
|
||||
* @{
|
||||
*/
|
||||
#define XTIMER_DEV (TIMER_DEV(0))
|
||||
#define XTIMER_HZ (250000UL)
|
||||
#define XTIMER_WIDTH (16)
|
||||
#define XTIMER_CHAN (0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -32,7 +32,8 @@ extern "C" {
|
||||
/**
|
||||
* @name Xtimer configuration
|
||||
*
|
||||
* The timer runs at 250 KHz to increase accuracy or 32768 Hz for LETIMER.
|
||||
* The timer runs at 250 kHz to increase accuracy, or at 32.768 kHz if
|
||||
* LETIMER is used.
|
||||
* @{
|
||||
*/
|
||||
#if IS_ACTIVE(CONFIG_EFM32_XTIMER_USE_LETIMER)
|
||||
@ -44,7 +45,7 @@ extern "C" {
|
||||
#define XTIMER_HZ (250000UL)
|
||||
#define XTIMER_WIDTH (16)
|
||||
#endif
|
||||
#define XTIMER_CHAN (0)
|
||||
#define XTIMER_CHAN (0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -32,7 +32,8 @@ extern "C" {
|
||||
/**
|
||||
* @name Xtimer configuration
|
||||
*
|
||||
* The timer runs at 250 KHz to increase accuracy or 32768 Hz for LETIMER.
|
||||
* The timer runs at 250 kHz to increase accuracy, or at 32.768 kHz if
|
||||
* LETIMER is used.
|
||||
* @{
|
||||
*/
|
||||
#if IS_ACTIVE(CONFIG_EFM32_XTIMER_USE_LETIMER)
|
||||
@ -44,7 +45,7 @@ extern "C" {
|
||||
#define XTIMER_HZ (250000UL)
|
||||
#define XTIMER_WIDTH (16)
|
||||
#endif
|
||||
#define XTIMER_CHAN (0)
|
||||
#define XTIMER_CHAN (0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user