SRTOS
Loading...
Searching...
No Matches
system_funcs.c
Go to the documentation of this file.
1
7
8#include "system_funcs.h"
9
15void
17{
18 /* Mask priorities 0xE0 to 0xFF, which includes
19 * SysTick_Handler and PendSV_Handler
20 */
21 __asm volatile ("MOV r0, #0xE0\n"
22 "MSR BASEPRI, r0\n"
23 "ISB\n");
24}
25
31void
33{
34 __asm volatile ("MOV r0, #0x00\n"
35 "MSR BASEPRI, r0\n"
36 "ISB\n");
37}
void systemEXIT_CRITICAL()
Exit a critical section by enabling all interrupts.
void systemENTER_CRITICAL()
Enter a critical section by disabling all interrupts.
This header files contains kernel functions that help control system behvaior.