1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
19771: boards/nrf9160dk: use all available CC timer channels r=dylad a=dylad

### Contribution description
`nRF9160` has 6 CC per timer.
You can `grep -ra "CC_NUM" cpu/nrf9160 ` to check it.
So let's use all available CC.

### Testing procedure
You can run `tests/periph/timer` to see the new CC.


### Issues/PRs references
None.


Co-authored-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
This commit is contained in:
bors[bot] 2023-07-04 12:03:43 +00:00 committed by GitHub
commit e0361abb3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,13 +66,15 @@ static const spi_conf_t spi_config[] = {
static const timer_conf_t timer_config[] = {
{
.dev = NRF_TIMER0_S,
.channels = 3,
/* using last channel for timer_read(), so only 5 of 6 channels available */
.channels = 5,
.bitmode = TIMER_BITMODE_BITMODE_32Bit,
.irqn = TIMER0_IRQn
},
{
.dev = NRF_TIMER1_S,
.channels = 3,
/* using last channel for timer_read(), so only 5 of 6 channels available */
.channels = 5,
.bitmode = TIMER_BITMODE_BITMODE_08Bit,
.irqn = TIMER1_IRQn
},