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:
parent
a6db5c783b
commit
198230bef2
3 changed files with 6 additions and 0 deletions
|
@ -0,0 +1,3 @@
|
|||
&rtc0 {
|
||||
status = "okay";
|
||||
};
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue