完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
如题,我注释了画UCGUI界面的函数,我的定时器中断服务函数就能进入了,但我在画UCGUI界面的过程中,我无法进入定时器中断服务函数!搞不懂这个是什么问题!
部分UCGUI画界面函数如下: 1.(画如下这个界面的过程中,无法进入定时器中断): [C] 纯文本查看 复制代码 void Draw_Check_Screen(void){int rate = Heart_Rate;int height = Height;int west = West;int east = East;if(Screen_Change == 1) //??????????????±???{GUI_ClearRect(0,0,128,128);//????±??°????????}Draw_Header();//????????GUI_DrawBitmap(&bm30x30heart_rate,10,30);//??????????±êGUI_DrawBitmap(&bm30x30navigation,10,80);//?????¨????±êGUI_SetColor(GUI_BLUE);GUI_DrawLine(10,67,117,67);//???????????±??GUI_SetColor(GUI_WHITE);GUI_SetFont(&GUI_Font8x8);//?è??×???GUI_GotoXY(50,40);//?è???±?°??±?????GUI_DispDecMin(rate);//??????????GUI_GotoXY(50,85);//?è???±?°??±?????GUI_DispDecMin(east);//??????????????GUI_DispChars('E',1);GUI_GotoXY(90,85);//?è???±?°??±?????GUI_DispDecMin(west);//??????????????GUI_DispChars('W',1);GUI_GotoXY(50,103);//?è???±?°??±?????GUI_DispDecMin(height);//??????????????GUI_DispChars('H',1);} 2.(画如下这个界面的时候,进不了定时器中断服务函数): [C] 纯文本查看 复制代码 void Draw_Phone_Screen(void){char string1[15] = "Calling...";char string2[15] = "Your telegram";char string3[15] = "On the phone";char ac[] = "Select number:";char xPosition1 = 20;char yPosition1 = 68;char xPosition2 = 20;char yPosition2 = 88;char xPosition3 = 20;char yPosition3 = 108;unsigned char i;char phone[11] ;//?????????????°????for(i = 0;i <11;i++){phone = Phone_Number;//???????°????}if(Screen_Change == 1) //??????????????±???{GUI_ClearRect(0,0,128,128);//????±??°????????}Draw_Header();//????????switch (K1_Count){case PHONE_DIALING : //????????????GUI_DrawBitmap(&bm30x30calling,50,30);//??????????±êGUI_SetFont(&GUI_Font8x8);//?è??×???GUI_GotoXY(4,70);//?è???±?°??±?????GUI_DispString(string1);GUI_GotoXY(20,100);//?è???±?°??±?????GUI_DispString(phone);//???????°????break;case PHONE_COMING ://????????????GUI_DrawBitmap(&bm30x30incoming,50,30);//??????????±êGUI_SetFont(&GUI_Font8x8);//?è??×???GUI_GotoXY(4,70);//?è???±?°??±?????GUI_DispString(string2);GUI_GotoXY(20,100);//?è???±?°??±?????GUI_DispString(phone);//???????°????break;case PHONE_CALLING ://?????¨?°??????GUI_DrawBitmap(&bm30x30ontheline,50,30);//??????????±êGUI_SetFont(&GUI_Font8x8);//?è??×???GUI_GotoXY(4,70);//?è???±?°??±?????GUI_DispString(string3);GUI_GotoXY(20,100);//?è???±?°??±?????GUI_DispString(phone);//???????°????break;case PHONE_SCREEN ://?????¨?°???????? ????????????GUI_SetFont(&GUI_Font8x8);GUI_GotoXY(7,40);//?è???±?°??±?????GUI_DispString(ac);GUI_GotoXY(30,70);//?è???±?°??±?????GUI_DispString(number1);GUI_GotoXY(30,90);//?è???±?°??±?????GUI_DispString(number2);GUI_GotoXY(30,110);//?è???±?°??±?????GUI_DispString(number3);GUI_ClearRect(0,60,29,128);//????±??°?????????????????ò//????????????????????±êif(K2_Count == PHONE_NUMBER_1)GUI_AA_FillPolygon(Number_Select,GUI_COUNTOF(Number_Select),4 * (xPosition1),4 * (yPosition1));else if(K2_Count == PHONE_NUMBER_2)GUI_AA_FillPolygon(Number_Select,GUI_COUNTOF(Number_Select),4 * (xPosition2),4 * (yPosition2));else if(K2_Count == PHONE_NUMBER_3)GUI_AA_FillPolygon(Number_Select,GUI_COUNTOF(Number_Select),4 * (xPosition3),4 * (yPosition3));break;default :break;}} 请各位大神支招!万分感谢! |
|
相关推荐
3个回答
|
|
帮顶....
|
|
|
|
找到产生这个问题的原因了,是如下这个函数导致的问题:
GUI_AA_FillPolygon(); 定位的到这个函数,函数的原型如下: [C] 纯文本查看 复制代码 /*********************************************************************** GUI_AA_FillPolygon*/void GUI_AA_FillPolygon(/*const*/ GUI_POINT* pPoints, int NumPoints, int x0, int y0) { GUI_LOCK(); #if (GUI_WINSUPPORT) WM_ADDORG_AA(x0,y0); WM_ITERATE_START(NULL); { #endif/* Variables in MEMDEV module (with memory devices only) */ #if GUI_SUPPORT_MEMDEV if (GUI_Context.pDeviceAPI->pfFillPolygonAA) GUI_Context.pDeviceAPI->pfFillPolygonAA(pPoints, NumPoints, x0, y0); else #endif _FillPolygonAA (pPoints, NumPoints, x0, y0); #if (GUI_WINSUPPORT) } WM_ITERATE_END(); #endif GUI_UNLOCK();}我的 GUI_WINSUPPORT 定义为 0,GUI_SUPPORT_MEMDEV 定义为 1 ,但我的是 裸机UCGUI,所以里面的 GUI_LOCK(); 和 GUI_UNLOCK(); 是空函数体,不影响! 唯一会影响的就是GUI_SUPPORT_MEMDEV 这个定义! 请问各位大神,具体是什么原因? |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
679 浏览 0 评论
1099 浏览 1 评论
2463 浏览 5 评论
2796 浏览 9 评论
移植了freeRTOS到STMf103之后显示没有定义的原因?
2634 浏览 6 评论
使用eim外接fpga可是端口一点反应都没有有没有大哥指点一下啊
645浏览 9评论
640浏览 7评论
请教大神怎样去解决iMX6Q在linux3.0.35内核上做AP失败的问题呢
771浏览 6评论
617浏览 5评论
659浏览 5评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-16 19:20 , Processed in 1.057365 second(s), Total 85, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号