1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/efm32: update channel_numof

The number of channels per timer got updated incorrectly in #15368.
Only TIMER1 and higher have four channels. Without this fix, timer
initialization will halt.
This commit is contained in:
Bas Stottelaar 2020-11-10 23:39:35 +01:00
parent fe941ac9fe
commit 67e7a14e6c
5 changed files with 6 additions and 6 deletions

View File

@ -148,7 +148,7 @@ static const timer_conf_t timer_config[] = {
.cmu = cmuClock_TIMER1
},
.irq = TIMER1_IRQn,
.channel_numof = 4
.channel_numof = 3
},
{
.prescaler = {

View File

@ -125,7 +125,7 @@ static const timer_conf_t timer_config[] = {
.cmu = cmuClock_TIMER1
},
.irq = TIMER1_IRQn,
.channel_numof = 4
.channel_numof = 3
},
{
.prescaler = {

View File

@ -155,7 +155,7 @@ static const timer_conf_t timer_config[] = {
.cmu = cmuClock_TIMER1
},
.irq = TIMER1_IRQn,
.channel_numof = 4
.channel_numof = 3
},
{
.prescaler = {

View File

@ -146,7 +146,7 @@ static const timer_conf_t timer_config[] = {
.cmu = cmuClock_WTIMER1
},
.irq = WTIMER1_IRQn,
.channel_numof = 4
.channel_numof = 3
},
{
.prescaler = {
@ -158,7 +158,7 @@ static const timer_conf_t timer_config[] = {
.cmu = cmuClock_TIMER1
},
.irq = TIMER1_IRQn,
.channel_numof = 4
.channel_numof = 3
},
{
.prescaler = {

View File

@ -155,7 +155,7 @@ static const timer_conf_t timer_config[] = {
.cmu = cmuClock_TIMER1
},
.irq = TIMER1_IRQn,
.channel_numof = 4
.channel_numof = 3
},
{
.prescaler = {