mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/efm32: update timer configuration
This commit is contained in:
parent
8383d09d20
commit
2ea9829b02
@ -141,8 +141,7 @@ static const spi_dev_t spi_config[] = {
|
||||
/**
|
||||
* @name Timer configuration
|
||||
*
|
||||
* The implementation can use one low-energy timer
|
||||
* or two regular timers in cascade mode.
|
||||
* The implementation uses two timers in cascade mode.
|
||||
* @{
|
||||
*/
|
||||
static const timer_conf_t timer_config[] = {
|
||||
@ -156,7 +155,7 @@ static const timer_conf_t timer_config[] = {
|
||||
.cmu = cmuClock_TIMER1
|
||||
},
|
||||
.irq = TIMER1_IRQn,
|
||||
.channel_numof = 3
|
||||
.channel_numof = 4
|
||||
},
|
||||
{
|
||||
.prescaler = {
|
||||
@ -169,13 +168,12 @@ static const timer_conf_t timer_config[] = {
|
||||
},
|
||||
.irq = LETIMER0_IRQn,
|
||||
.channel_numof = 2
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
|
||||
#define TIMER_0_ISR isr_timer1
|
||||
#define TIMER_1_ISR isr_letimer0
|
||||
|
||||
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -141,8 +141,7 @@ static const spi_dev_t spi_config[] = {
|
||||
/**
|
||||
* @name Timer configuration
|
||||
*
|
||||
* The implementation can use one low-energy timer
|
||||
* or two regular timers in cascade mode.
|
||||
* The implementation uses two timers in cascade mode.
|
||||
* @{
|
||||
*/
|
||||
static const timer_conf_t timer_config[] = {
|
||||
@ -156,7 +155,7 @@ static const timer_conf_t timer_config[] = {
|
||||
.cmu = cmuClock_TIMER1
|
||||
},
|
||||
.irq = TIMER1_IRQn,
|
||||
.channel_numof = 3
|
||||
.channel_numof = 4
|
||||
},
|
||||
{
|
||||
.prescaler = {
|
||||
@ -169,13 +168,12 @@ static const timer_conf_t timer_config[] = {
|
||||
},
|
||||
.irq = LETIMER0_IRQn,
|
||||
.channel_numof = 2
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
|
||||
#define TIMER_0_ISR isr_timer1
|
||||
#define TIMER_1_ISR isr_letimer0
|
||||
|
||||
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -195,8 +195,7 @@ static const spi_dev_t spi_config[] = {
|
||||
/**
|
||||
* @name Timer configuration
|
||||
*
|
||||
* The implementation can use one low-energy timer
|
||||
* or two regular timers in cascade mode.
|
||||
* The implementation uses two timers in cascade mode.
|
||||
* @{
|
||||
*/
|
||||
static const timer_conf_t timer_config[] = {
|
||||
@ -223,13 +222,12 @@ static const timer_conf_t timer_config[] = {
|
||||
},
|
||||
.irq = LETIMER0_IRQn,
|
||||
.channel_numof = 2
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
|
||||
#define TIMER_0_ISR isr_timer1
|
||||
#define TIMER_1_ISR isr_letimer0
|
||||
|
||||
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -195,8 +195,7 @@ static const spi_dev_t spi_config[] = {
|
||||
/**
|
||||
* @name Timer configuration
|
||||
*
|
||||
* The implementation can use one low-energy timer
|
||||
* or two regular timers in cascade mode.
|
||||
* The implementation uses two timers in cascade mode.
|
||||
* @{
|
||||
*/
|
||||
static const timer_conf_t timer_config[] = {
|
||||
@ -223,13 +222,12 @@ static const timer_conf_t timer_config[] = {
|
||||
},
|
||||
.irq = LETIMER0_IRQn,
|
||||
.channel_numof = 2
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
|
||||
#define TIMER_0_ISR isr_timer1
|
||||
#define TIMER_1_ISR isr_letimer0
|
||||
|
||||
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user