5 #include "sw/device/lib/runtime/irq.h"
7 #include "sw/device/lib/testing/pwrmgr_testutils.h"
8 #include "sw/device/lib/testing/test_framework/check.h"
10 #include "sw/device/tests/pwrmgr_sleep_all_wake_ups_impl.h"
19 OTTF_DEFINE_TEST_CONFIG();
23 irq_global_ctrl(
true);
24 irq_external_ctrl(
true);
28 if (UNWRAP(pwrmgr_testutils_is_wakeup_reason(&pwrmgr, 0))) {
31 for (
size_t wakeup_unit = 0; wakeup_unit < get_wakeup_count();
33 if (!execute_test(wakeup_unit,
false)) {
36 check_wakeup_reason(wakeup_unit);
37 LOG_INFO(
"Woke up by source %d", wakeup_unit);
38 clear_wakeup(wakeup_unit);
39 LOG_INFO(
"clean up done source %d", wakeup_unit);