📄 test.c.svn-base
字号:
#include "global.h"
/*
*********************************************************************************************************
* FUNCTION PROTOTYPES
*********************************************************************************************************
*/
void Task(void *data); /* Function prototypes of tasks */
void TaskStart(void *data); /* Function prototypes of Startup task */
static void TaskStartCreateTasks(void);
static void TaskStartDispInit(void);
static void TaskStartDisp(void);
void test(){ OSInit();// OSTaskCreate(TaskStart, (void *)0, &TaskStartStk[TASK_STK_SIZE - 1], 0);
OSStart();}void TaskStart (void *pdata)
{
// char s[100];
// INT16S key;
// pdata = pdata; /* Prevent compiler warning */
// TaskStartDispInit(); /* Initialize the display */
// OS_ENTER_CRITICAL();
// PC_VectSet(0x08, OSTickISR); /* Install uC/OS-II's clock tick ISR */
// PC_SetTickRate(OS_TICKS_PER_SEC); /* Reprogram tick rate */
// OS_EXIT_CRITICAL();
// OSStatInit(); /* Initialize uC/OS-II's statistics */
TaskStartCreateTasks(); /* Create all the application tasks */
// for (;;) {
// TaskStartDisp(); /* Update the display */
// if (PC_GetKey(&key) == TRUE) { /* See if key has been pressed */
// if (key == 0x1B) { /* Yes, see if it's the ESCAPE key */
// PC_DOSReturn(); /* Return to DOS */
// }
// }
// OSCtxSwCtr = 0; /* Clear context switch counter */
// OSTimeDlyHMSM(0, 0, 1, 0); /* Wait one second */
// }
}/*
*********************************************************************************************************
* CREATE TASKS
*********************************************************************************************************
*/
static void TaskStartCreateTasks (void)
{
// INT8U i;
// for (i = 0; i < N_TASKS; i++) { /* Create N_TASKS identical tasks */
// TaskData[i] = '0' + i; /* Each task will display its own letter */
// OSTaskCreate(Task, (void *)&TaskData[i], &TaskStk[i][TASK_STK_SIZE - 1], i + 1);
// }
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -