Skip to content

Commit fcadf0b

Browse files
committed
tests: fix internal symbols from RTX
As we do not include rtx_lib header file anymore, these symbols are not available. Use core util for if ISR is active. And for OS tick, pull in os_tick header file.
1 parent 97a3ca1 commit fcadf0b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

TESTS/mbed_hal/common_tickers/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#include "hal/us_ticker_api.h"
2222
#include "hal/lp_ticker_api.h"
2323

24+
#include "os_tick.h"
25+
2426
#if !DEVICE_USTICKER
2527
#error [NOT_SUPPORTED] test not supported
2628
#endif
@@ -117,7 +119,7 @@ void ticker_event_handler_stub(const ticker_data_t * const ticker)
117119
}
118120

119121
/* Indicate that ISR has been executed in interrupt context. */
120-
if (IsIrqMode()) {
122+
if (core_util_is_isr_active()) {
121123
intFlag++;
122124
}
123125
}

TESTS/mbed_hal/lp_ticker/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void overflow_protect()
6363
void ticker_event_handler_stub(const ticker_data_t * const ticker)
6464
{
6565
/* Indicate that ISR has been executed in interrupt context. */
66-
if (IsIrqMode()) {
66+
if (core_util_is_isr_active()) {
6767
intFlag++;
6868
}
6969

0 commit comments

Comments
 (0)