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:
Mateusz Sierszulski 2022-09-14 13:59:57 +02:00 committed by Carles Cufí
commit 85a90d7448

View file

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