diff options
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/osal/os-less/ARMCMx/osal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/os/hal/osal/os-less/ARMCMx/osal.h b/os/hal/osal/os-less/ARMCMx/osal.h index 248af8831..14ba6b115 100644 --- a/os/hal/osal/os-less/ARMCMx/osal.h +++ b/os/hal/osal/os-less/ARMCMx/osal.h @@ -598,6 +598,11 @@ static inline void osalSysLockFromISR(void) { */
static inline void osalSysUnlockFromISR(void) {
+#if CORTEX_MODEL == 0
+ __enable_irq();
+#else
+ __set_BASEPRI(0);
+#endif
}
/**
|