Skip to content

Commit c018771

Browse files
author
Martin Kojtal
committed
musca targets: use IsException instead of removed isIrqMode
1 parent dca1d5c commit c018771

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

targets/TARGET_ARM_SSG/TARGET_MUSCA_B1/gpio_api_ns.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

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

targets/TARGET_ARM_SSG/TARGET_MUSCA_B1/pinmap_ns.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void pin_function(PinName pin, int function)
8181
MBED_ASSERT(pin != NC);
8282

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

129129
/* Secure service can't be called in interrupt context. */
130-
if (IsIrqMode()) {
130+
if (IsException()) {
131131
MBED_WARNING(MBED_MAKE_ERROR(MBED_MODULE_HAL,
132132
MBED_ERROR_INVALID_OPERATION),
133133
"Pin secure service can't be called in interrupt context\n");

targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/gpio_api_ns.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

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

0 commit comments

Comments
 (0)