void LCD_Command(void *Tags) { uint8 i=0; uint64_t Data; Run_Value.SaveOffSet=FlashConfigNull; AT24C08_Init(); FlashGetConfigRoom(&Run_Value.SaveOffSet,sizeof(Run_ValueRege)/2); Load_Configs(); Tos_TaskDelay(1000); Run_Value.OnlyRefresh=True; WhileWrite(); Run_Value.OnlyRefresh=False; while(1) { Tos_TaskDelay(1); DeBug_Get(); ClearWithBuffer(&USART1_RX_Buffer[0],100); USART1_ReadDatas(Null,100,0); Data=BufToUint64(&USART1_RX_Buffer[0]); i=0; while(MenuConst[i].Key) { if(MenuConst[i].Key==Data)EnterTask(&MenuConst[i],&USART1_RX_Buffer[8]);i++; } } }
void RBench::CreateWorker (Identity id, int prio, Packet *work, TaskState *state) { WorkerTaskRec *data; TaskControlBlock *t; data = new WorkerTaskRec; t = new WorkerTCB(taskList, id, prio, work, state, data); EnterTask(id, t); }