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

boards/nrf9160dk: Override WS281X_TIMER_*

This commit is contained in:
MrKevinWeiss 2023-12-18 10:19:25 +01:00
parent fb5ebea1a5
commit 6a0b1c59c5
No known key found for this signature in database
GPG Key ID: C26684F1C0767FFF
2 changed files with 13 additions and 0 deletions

View File

@ -87,6 +87,14 @@ extern "C" {
#define BTN3_MODE GPIO_IN /**< BTN3 default mode */
/** @} */
/**
* @name WS281x RGB LED configuration
* @{
*/
#define WS281X_TIMER_DEV TIMER_DEV(1) /**< Timer device */
#define WS281X_TIMER_MAX_VALUE TIMER_1_MAX_VALUE /**< Timer max value */
/** @} */
#ifdef __cplusplus
}
#endif

View File

@ -83,6 +83,11 @@ static const timer_conf_t timer_config[] = {
#define TIMER_0_ISR isr_timer0 /**< Timer0 IRQ*/
#define TIMER_1_ISR isr_timer1 /**< Timer1 IRQ */
/** See @ref timer_init */
#define TIMER_0_MAX_VALUE 0xffffffff
/** See @ref timer_init */
#define TIMER_1_MAX_VALUE 0xffffffff
#define TIMER_NUMOF ARRAY_SIZE(timer_config) /**< Timer configuration NUMOF */
/** @} */