Skip to content

Commit 198230b

Browse files
bogdanovskartben
authored andcommitted
samples: drivers: counter: alarm: Add lp_em_cc2340r5 overlay
Add overlay for lp_em_cc2340r5 to counter/alarm sample. Signed-off-by: Stoyan Bogdanov <[email protected]>
1 parent a6db5c7 commit 198230b

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
&rtc0 {
2+
status = "okay";
3+
};

samples/drivers/counter/alarm/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ tests:
4141
- s32z2xxdc2/s32z270/rtu1
4242
- s32z2xxdc2@D/s32z270/rtu0
4343
- s32z2xxdc2@D/s32z270/rtu1
44+
- lp_em_cc2340r5
4445
integration_platforms:
4546
- nucleo_f746zg
4647
sample.drivers.counter.alarm.stm32_rtc:

samples/drivers/counter/alarm/src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ struct counter_alarm_cfg alarm_cfg;
6565
#define TIMER DT_NODELABEL(counter0)
6666
#elif defined(CONFIG_COUNTER_RENESAS_RZ_GTM)
6767
#define TIMER DT_INST(0, renesas_rz_gtm_counter)
68+
#elif defined(CONFIG_COUNTER_CC23X0_RTC)
69+
#define TIMER DT_NODELABEL(rtc0)
6870
#else
6971
#error Unable to find a counter device node in devicetree
7072
#endif

0 commit comments

Comments
 (0)