新手上路
- 积分
- 33
- 金钱
- 33
- 注册时间
- 2015-12-24
- 在线时间
- 31 小时
|
楼主 |
发表于 2016-12-26 13:32:28
|
显示全部楼层
主函数为
int main(void)
{
u8 error;
if(!init_touch())
printf("T_IN register successfully!\n");
else
printf("Error: T_IN register failure!\n");
GUI_Delay(1000);
while(ctp_dev.init())
{
printf("GT811 initialization error\r\n");error=1;break;
}
if(error!=1)
printf("GT811 initialization OK\r\n");
GUI_Delay(1000);
GUI_Init();
GUI_Clear();
OSInit();
OSTaskCreateExt(ButtonUse_Demo,
NULL,
(void *)&task2_stk[TASK_STACKSIZE-1],
TASK2_PRIORITY,
TASK2_PRIORITY,
task2_stk,
TASK_STACKSIZE,
NULL,
0);
OSStart();
return 0;
} |
|