samples: drivers: counter: alarm: add support for the Smartbond Timer
Add support for the Renesas Smartbond Timer IP to the counter alarm sample. Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
This commit is contained in:
parent
b896ca5771
commit
cc53f3f021
2 changed files with 7 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
|||
&timer3 {
|
||||
clock-src = <&lp_clk>;
|
||||
prescaler = <1>;
|
||||
status = "okay";
|
||||
};
|
|
@ -27,6 +27,8 @@ struct counter_alarm_cfg alarm_cfg;
|
|||
#define TIMER DT_INST(0, st_stm32_counter)
|
||||
#elif defined(CONFIG_COUNTER_RTC_STM32)
|
||||
#define TIMER DT_INST(0, st_stm32_rtc)
|
||||
#elif defined(CONFIG_COUNTER_SMARTBOND_TIMER)
|
||||
#define TIMER DT_NODELABEL(timer3)
|
||||
#elif defined(CONFIG_COUNTER_NATIVE_POSIX)
|
||||
#define TIMER DT_NODELABEL(counter0)
|
||||
#elif defined(CONFIG_COUNTER_XLNX_AXI_TIMER)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue