Skip to content

Commit

Permalink
samples: drivers: counter: alarm: Add lp_em_cc2340r5 overlay
Browse files Browse the repository at this point in the history
Add overlay for lp_em_cc2340r5 to counter/alarm sample.

Signed-off-by: Stoyan Bogdanov <[email protected]>
  • Loading branch information
bogdanovs committed Feb 4, 2025
1 parent 8f788cc commit 9c3be34
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samples/drivers/counter/alarm/boards/lp_em_cc2340r5.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
&rtc0 {
status = "okay";
};
1 change: 1 addition & 0 deletions samples/drivers/counter/alarm/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions samples/drivers/counter/alarm/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,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
Expand Down

0 comments on commit 9c3be34

Please sign in to comment.