Commit 8c0add4e authored by Dave Hylands's avatar Dave Hylands Committed by Damien George
Browse files

Add save/restore_irq

Factored irq functions into a separate file.
parent e5cbb703
......@@ -119,6 +119,19 @@ __attribute__(( always_inline )) static inline void __WFI(void)
__asm volatile ("wfi");
__attribute__(( always_inline )) static inline uint32_t __get_PRIMASK(void)
uint32_t result;
__asm volatile ("MRS %0, primask" : "=r" (result));
__attribute__(( always_inline )) static inline void __set_PRIMASK(uint32_t priMask)
__asm volatile ("MSR primask, %0" : : "r" (priMask) : "memory");
uint32_t HAL_GetTick(void);
void HAL_Delay(uint32_t Delay);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment