mirror of https://github.com/ARMmbed/mbed-os.git
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.pull/7364/head
parent
97a3ca193e
commit
fcadf0b4f7
|
|
@ -21,6 +21,8 @@
|
|||
#include "hal/us_ticker_api.h"
|
||||
#include "hal/lp_ticker_api.h"
|
||||
|
||||
#include "os_tick.h"
|
||||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
|
|
@ -117,7 +119,7 @@ void ticker_event_handler_stub(const ticker_data_t * const ticker)
|
|||
}
|
||||
|
||||
/* Indicate that ISR has been executed in interrupt context. */
|
||||
if (IsIrqMode()) {
|
||||
if (core_util_is_isr_active()) {
|
||||
intFlag++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ void overflow_protect()
|
|||
void ticker_event_handler_stub(const ticker_data_t * const ticker)
|
||||
{
|
||||
/* Indicate that ISR has been executed in interrupt context. */
|
||||
if (IsIrqMode()) {
|
||||
if (core_util_is_isr_active()) {
|
||||
intFlag++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue