Skip to content

Commit 4e6c506

Browse files
besmarshcarlescufi
authored andcommitted
samples: drivers: counter: alarm: Add support for stm32h735g_disco
Add the stm32h735g_disco board to the supported boards for the counter alarm sample Signed-off-by: Ben Marsh <[email protected]>
1 parent 1cec2af commit 4e6c506

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
&timers2 {
2+
st,prescaler = <83>;
3+
counter {
4+
status = "okay";
5+
};
6+
};

samples/drivers/counter/alarm/sample.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tests:
99
bl5340_dvk_cpuapp gd32e103v_eval gd32e507z_eval
1010
gd32f403z_eval gd32f450i_eval gd32f450z_eval
1111
gd32e507v_start gd32f407v_start gd32f450v_start
12-
gd32f470i_eval
12+
gd32f470i_eval stm32h735g_disco
1313
integration_platforms:
1414
- nucleo_f746zg
1515
harness_config:

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ struct counter_alarm_cfg alarm_cfg;
2323
#define TIMER DT_NODELABEL(extrtc0)
2424
#elif defined(CONFIG_COUNTER_RTC0)
2525
#define TIMER DT_NODELABEL(rtc0)
26+
#elif defined(CONFIG_COUNTER_TIMER_STM32)
27+
#define TIMER DT_INST(0, st_stm32_counter)
2628
#elif defined(CONFIG_COUNTER_RTC_STM32)
2729
#define TIMER DT_INST(0, st_stm32_rtc)
2830
#elif defined(CONFIG_COUNTER_NATIVE_POSIX)

0 commit comments

Comments
 (0)