musca targets: use IsException instead of removed isIrqMode

pull/14900/head
Martin Kojtal 2021-07-19 14:19:54 +01:00
parent dca1d5c42e
commit c0187712b1
3 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@
#define IRQ_MODE_CHECK(is_func_void) \
/* Secure service can't be called in interrupt context. */ \
if (IsIrqMode()) { \
if (IsException()) { \
MBED_WARNING(MBED_MAKE_ERROR(MBED_MODULE_HAL, \
MBED_ERROR_INVALID_OPERATION), \
"GPIO secure service can't be called in interrupt context\n"); \

View File

@ -81,7 +81,7 @@ void pin_function(PinName pin, int function)
MBED_ASSERT(pin != NC);
/* Secure service can't be called in interrupt context. */
if (IsIrqMode()) {
if (IsException()) {
MBED_WARNING(MBED_MAKE_ERROR(MBED_MODULE_HAL,
MBED_ERROR_INVALID_OPERATION),
"Pin secure service can't be called in interrupt context\n");
@ -127,7 +127,7 @@ void pin_mode(PinName pin, PinMode mode)
MBED_ASSERT(pin != NC);
/* Secure service can't be called in interrupt context. */
if (IsIrqMode()) {
if (IsException()) {
MBED_WARNING(MBED_MAKE_ERROR(MBED_MODULE_HAL,
MBED_ERROR_INVALID_OPERATION),
"Pin secure service can't be called in interrupt context\n");

View File

@ -37,7 +37,7 @@
#define IRQ_MODE_CHECK(is_func_void) \
/* Secure service can't be called in interrupt context. */ \
if (IsIrqMode()) { \
if (IsException()) { \
MBED_WARNING(MBED_MAKE_ERROR(MBED_MODULE_HAL, \
MBED_ERROR_INVALID_OPERATION), \
"GPIO secure service can't be called in interrupt context\n"); \