1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 10:52:44 +01:00

boards/nrf52: Defined TIMER_x_MAX_VALUE

The macro's presence is documented in `timer_init`, but was missing from
this platform.
This commit is contained in:
chrysn 2023-08-17 13:51:14 +02:00 committed by MrKevinWeiss
parent abf95d14a6
commit d32c32ffae
No known key found for this signature in database
GPG Key ID: C26684F1C0767FFF

View File

@ -80,6 +80,21 @@ static const timer_conf_t timer_config[] = {
#define TIMER_2_ISR isr_timer3
#define TIMER_3_ISR isr_timer4
/** See @ref timer_init */
#define TIMER_0_MAX_VALUE 0xffffffff
/** See @ref timer_init */
#define TIMER_1_MAX_VALUE 0xffffffff
#ifdef NRF_TIMER3
/** See @ref timer_init */
#define TIMER_2_MAX_VALUE 0xffffffff
#endif
/* If there is no NRF_TIMER3 this should be TIMER_2 because the index shifts
* up, but there is only a TIMER4 if there is a TIMER3 too. */
#ifdef NRF_TIMER4
/** See @ref timer_init */
#define TIMER_3_MAX_VALUE 0xffffffff
#endif
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
/** @} */