?? task.h
字號:
/************ tasK.h *******************************************************
This file is created by Peng.Wang 06/20/2006
Multitasking routine
***************************************************************************/
#ifndef TASK_H
#define TASK_H
#include<type.h>
/***************************************************************************
The task data structure
***************************************************************************/
typedef void (*TASKENTRY)(void);
typedef struct
{
Int8 Name[16];
Int16 Priority;
Int16 * Stack_top;
Int32 Stack_size;
TASKENTRY Task_entry;
}Tcb;
/*for the only one mcu system ,we can realize the mutex by switch on /off interrupt*/
#define M_ENTER_CRITICAL() asm CLI /*turn off the interrupt*/
#define M_EXIT_CRITICAL() asm STI /* turn on the interrupt*/
extern void T_main(void);
extern Tcb* T_get_ready_task(void);
#endif /*TASK_H*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -