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:
Jerzy Kasenberg 2022-12-21 13:15:06 +01:00 committed by Carles Cufí
commit cc53f3f021
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,5 @@
&timer3 {
clock-src = <&lp_clk>;
prescaler = <1>;
status = "okay";
};

View file

@ -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)