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
Martin Kojtal 2021-07-19 11:01:45 +01:00
parent 00580ce3f5
commit dca1d5c42e
1 changed files with 4 additions and 0 deletions

View File

@ -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.
Can only be executed in Privileged modes.
*/
#ifndef __ARM_COMPAT_H
__STATIC_FORCEINLINE void __enable_irq(void)
{
__ASM volatile ("cpsie i" : : : "memory");
}
#endif
/**
\brief Disable IRQ Interrupts
\details Disables IRQ interrupts by setting the I-bit in the CPSR.
Can only be executed in Privileged modes.
*/
#ifndef __ARM_COMPAT_H
__STATIC_FORCEINLINE void __disable_irq(void)
{
__ASM volatile ("cpsid i" : : : "memory");
}
#endif
/**
\brief Enable FIQ