We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5cbb70 commit 8c0add4Copy full SHA for 8c0add4
1 file changed
teensy/teensy_hal.h
@@ -119,6 +119,19 @@ __attribute__(( always_inline )) static inline void __WFI(void)
119
__asm volatile ("wfi");
120
}
121
122
+__attribute__(( always_inline )) static inline uint32_t __get_PRIMASK(void)
123
+{
124
+ uint32_t result;
125
+ __asm volatile ("MRS %0, primask" : "=r" (result));
126
+ return(result);
127
+}
128
+
129
+__attribute__(( always_inline )) static inline void __set_PRIMASK(uint32_t priMask)
130
131
+ __asm volatile ("MSR primask, %0" : : "r" (priMask) : "memory");
132
133
134
135
uint32_t HAL_GetTick(void);
136
void HAL_Delay(uint32_t Delay);
137
0 commit comments