Skip to content

Commit

Permalink
boards/nrf9160dk: Override WS281X_TIMER_*
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKevinWeiss committed Dec 19, 2023
1 parent fb5ebea commit 6a0b1c5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions boards/nrf9160dk/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions boards/nrf9160dk/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/** @} */

Expand Down

0 comments on commit 6a0b1c5

Please sign in to comment.