mirror of https://github.com/ARMmbed/mbed-os.git
cmsis: fix armcc compat header redefition of enable/disable irq
The fix will be in the 5.8.1 CMSIS, we cherry-pick it to our imported version.
See e797cca3f4
pull/14900/head
parent
00580ce3f5
commit
dca1d5c42e
|
|
@ -373,20 +373,24 @@ __STATIC_FORCEINLINE int32_t __SMMLA (int32_t op1, int32_t op2, int32_t op3)
|
||||||
\details Enables IRQ interrupts by clearing the I-bit in the CPSR.
|
\details Enables IRQ interrupts by clearing the I-bit in the CPSR.
|
||||||
Can only be executed in Privileged modes.
|
Can only be executed in Privileged modes.
|
||||||
*/
|
*/
|
||||||
|
#ifndef __ARM_COMPAT_H
|
||||||
__STATIC_FORCEINLINE void __enable_irq(void)
|
__STATIC_FORCEINLINE void __enable_irq(void)
|
||||||
{
|
{
|
||||||
__ASM volatile ("cpsie i" : : : "memory");
|
__ASM volatile ("cpsie i" : : : "memory");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\brief Disable IRQ Interrupts
|
\brief Disable IRQ Interrupts
|
||||||
\details Disables IRQ interrupts by setting the I-bit in the CPSR.
|
\details Disables IRQ interrupts by setting the I-bit in the CPSR.
|
||||||
Can only be executed in Privileged modes.
|
Can only be executed in Privileged modes.
|
||||||
*/
|
*/
|
||||||
|
#ifndef __ARM_COMPAT_H
|
||||||
__STATIC_FORCEINLINE void __disable_irq(void)
|
__STATIC_FORCEINLINE void __disable_irq(void)
|
||||||
{
|
{
|
||||||
__ASM volatile ("cpsid i" : : : "memory");
|
__ASM volatile ("cpsid i" : : : "memory");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\brief Enable FIQ
|
\brief Enable FIQ
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue