samples: drivers: counter: alarm: Add lp_em_cc2340r5 overlay

Add overlay for lp_em_cc2340r5 to counter/alarm sample.

Signed-off-by: Stoyan Bogdanov <sbogdanov@baylibre.com>
This commit is contained in:
Stoyan Bogdanov 2024-08-29 16:14:55 +03:00 committed by Benjamin Cabé
commit 198230bef2
3 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,3 @@
&rtc0 {
status = "okay";
};

View file

@ -41,6 +41,7 @@ tests:
- s32z2xxdc2/s32z270/rtu1
- s32z2xxdc2@D/s32z270/rtu0
- s32z2xxdc2@D/s32z270/rtu1
- lp_em_cc2340r5
integration_platforms:
- nucleo_f746zg
sample.drivers.counter.alarm.stm32_rtc:

View file

@ -65,6 +65,8 @@ struct counter_alarm_cfg alarm_cfg;
#define TIMER DT_NODELABEL(counter0)
#elif defined(CONFIG_COUNTER_RENESAS_RZ_GTM)
#define TIMER DT_INST(0, renesas_rz_gtm_counter)
#elif defined(CONFIG_COUNTER_CC23X0_RTC)
#define TIMER DT_NODELABEL(rtc0)
#else
#error Unable to find a counter device node in devicetree
#endif