samples: drivers: counter: support alarm sample in counter_gecko_stimer
This commit adds sample support for the counter_gecko_stimer driver. Signed-off-by: Mateusz Sierszulski <msierszulski@antmicro.com>
This commit is contained in:
parent
d4a6a14926
commit
85a90d7448
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@ struct counter_alarm_cfg alarm_cfg;
|
|||
#define TIMER DT_NODELABEL(stm0)
|
||||
#elif defined(CONFIG_COUNTER_TIMER_GD32)
|
||||
#define TIMER DT_NODELABEL(timer0)
|
||||
#elif defined(CONFIG_COUNTER_GECKO_RTCC)
|
||||
#define TIMER DT_NODELABEL(rtcc0)
|
||||
#elif defined(CONFIG_COUNTER_GECKO_STIMER)
|
||||
#define TIMER DT_NODELABEL(stimer0)
|
||||
#endif
|
||||
|
||||
static void test_counter_interrupt_fn(const struct device *counter_dev,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue