mirror of https://github.com/ARMmbed/mbed-os.git
musca targets: use IsException instead of removed isIrqMode
parent
dca1d5c42e
commit
c0187712b1
|
@ -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"); \
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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"); \
|
||||
|
|
Loading…
Reference in New Issue