Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
preempt.h
Go to the documentation of this file.
1 
4 #ifndef __KERNEL_PREEMPT_H__
5 #define __KERNEL_PREEMPT_H__
6 
7 void __preempt_disable(void);
8 void __preempt_enable(void);
9 
10 void preempt_count_inc(void);
11 void preempt_count_dec(void);
12 int preempt_count(void);
13 void preempt_count_set(uint32_t count);
14 
20 void preempt_disable(void);
21 
27 void preempt_enable(void);
28 
29 #endif
void preempt_enable(void)
Enable all interrupts.
Definition: kernel.c:161
void preempt_disable(void)
Disable all interrupts.
Definition: kernel.c:152