新闻中心

EEPW首页 > 嵌入式系统 > 设计应用 > STM32学习记录16 ucosii+UCGUI

STM32学习记录16 ucosii+UCGUI

作者: 时间:2016-11-13 来源:网络 收藏
主要介绍下UCGUI的修改:
1:GUI_X_ucos.c文件夹,第80行,修改为:
/*
*********************************************************************************************************
* GUI_X_ExecIdle()
*********************************************************************************************************
*/
void GUI_X_ExecIdle (void)
{
// OS_X_Delay(1);
OSTimeDly(50);//自己修改的
}
2:GUI_X_ucos.c最后添加以下函数,从GUI_X.c文件拷贝的,工程中不需要添加GUI_X
//下面是从GUI_X拷贝的
/*********************************************************************
*
* Logging: OS dependent
Note:
Logging is used in higher debug levels only. The typical target
build does not use logging and does therefor not require any of
the logging routines below. For a release build without logging
the routines below may be eliminated to save some space.
(If the linker is not function aware and eliminates unreferenced
functions automatically)
*/
void GUI_X_Log (const char *s) { GUI_USE_PARA(s); }
void GUI_X_Warn (const char *s) { GUI_USE_PARA(s); }
void GUI_X_ErrorOut(const char *s) { GUI_USE_PARA(s); }
工程文件截图如下:


评论


技术专区

关闭
×

TI直播中...
汽车电气化背景下的TI音频解决方案和技术线上研讨会直播中,早鸟报名礼、myTI 专属礼、活动参与礼等着您(已经报名用户可以凭报名邮箱直接登录),速入>>