请问一下 一个嵌入式开发的系统 其主函数就下面一小段代码 ,它怎么就能撑的起一个系统的运行呢 谁能帮我讲一下 。也不知道该不该怎么这个版面提问,请高手指点迷津
INT16U writecnt=0;
INT16U readcnt =0;
OS_TID TASK_KEY;
void init_task (void) __task
{
// INT8U err;
// INT8U i;
// INT32U KEYTIME;
INT32U volatile start;
// POSINFO_REC PosInfo;
if(C_EPara> =1)
{
LANGUE = CHINESE;
}
else
{
LANGUE = ENGLISH;
}
init_tk = os_tsk_self ();
//sys init
Beep();
ADC_INIT();
//startx:
I2cInit(60000);
SysParaInit();
KeyInit();
GUI_Initialize();
GUI_SetColor(1, 0);
LCM_BK_ON();
//for (start = 0; start < 1000000; start++) { ; }
//os_dly_wait(5);
#if STAT > 15
PINSEL1 = PINSEL1&~(3 < < (2*(STAT-16)));
#else
PINSEL0 = PINSEL0&~(3 < <(2* (STAT)));
#endif
IO0DIR =IO0DIR&(~(1 < <STAT));
//BUZZ_ON();
//os_dly_wait(5);
//for (start = 0; start < 1000000; start++) { ; }
BUZZ_OFF();
SpiInit();
SST25VF_init();
UnWP();
EWSR();
WRSR(0);
WREN();
SysUnitIdInit();
SelectMenuIco();
}
int main (void)
{
//#ifdef MCB2100
INT32U volatile start;
// INT8U i;
/* Wait for debugger connection*/
for (start = 0; start < 10000; start++) { ; }
IO0SET = (1 < <SELF_ON);
#if SELF_ON > 15