Skip to content

Commit dba2d7b

Browse files
sylvioalveskartben
authored andcommitted
tests: counter: add esp32 timer in cancel test case
Allow ESP32 devices to test the scenario where when alarm should not be triggered after being cancelled. Signed-off-by: Sylvio Alves <[email protected]>
1 parent d48e10a commit dba2d7b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,6 +1113,11 @@ static bool reliable_cancel_capable(const struct device *dev)
11131113
if (single_channel_alarm_capable(dev)) {
11141114
return true;
11151115
}
1116+
#endif
1117+
#ifdef CONFIG_COUNTER_TMR_ESP32
1118+
if (single_channel_alarm_capable(dev)) {
1119+
return true;
1120+
}
11161121
#endif
11171122
return false;
11181123
}

0 commit comments

Comments
 (0)