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
Martin Kojtal 2018-06-29 09:29:11 +01:00
parent 97a3ca193e
commit fcadf0b4f7
2 changed files with 4 additions and 2 deletions

View File

@ -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++;
}
}

View File

@ -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++;
}