import
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#ifndef INCLUDED_OS_IDLE_H
|
||||
#define INCLUDED_OS_IDLE_H
|
||||
|
||||
#ifndef INCLUDED_OS_TASK_H
|
||||
#include <os_task.h>
|
||||
#endif /*INCLUDED_OS_TASK_H*/
|
||||
|
||||
extern os_task_t g_os_idle_task;
|
||||
|
||||
typedef void (*os_idle_entry_t)(void*);
|
||||
|
||||
typedef struct {
|
||||
os_idle_entry_t entry;
|
||||
void* param;
|
||||
}os_idle_closure_t;
|
||||
|
||||
void os_idle_init(void);
|
||||
|
||||
os_idle_closure_t os_idle_register(os_idle_entry_t entry, void* param);
|
||||
|
||||
OS_STATIC_FORCE_INLINE
|
||||
os_bool_t os_idle_is_idle_task(os_task_t* p_task){
|
||||
return (&g_os_idle_task == p_task)?OS_TRUE:OS_FALSE;
|
||||
}
|
||||
|
||||
|
||||
#endif /*INCLUDED_OS_IDLE_H*/
|
||||
Reference in New Issue
Block a user