Skip to content

Commit 7891bed

Browse files
sylvioalvescarlescufi
authored andcommitted
tests: counter: add esp32 test case
Adds only ESP32 board test case. Signed-off-by: Sylvio Alves <[email protected]>
1 parent e4969ec commit 7891bed

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_COUNTER_TMR_ESP32=y
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
&timer0 {
2+
status = "okay";
3+
};

tests/drivers/counter/counter_basic_api/src/test_counter.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ static const struct device *const devices[] = {
9191
#ifdef CONFIG_COUNTER_XLNX_AXI_TIMER
9292
DEVS_FOR_DT_COMPAT(xlnx_xps_timer_1_00_a)
9393
#endif
94+
#ifdef CONFIG_COUNTER_TMR_ESP32
95+
DEVS_FOR_DT_COMPAT(espressif_esp32_timer)
96+
#endif
9497
};
9598

9699
static const struct device *const period_devs[] = {

0 commit comments

Comments
 (0)