摘要
为了创建一个高效、直观、支持多任务的嵌入式图像开发平台,建立了基于μC/OS_II、μC/GUI、STM32、ILI9320液晶屏的嵌入式实验环境,对μC/OS_II和μC/GUI的整合移植方法进行研究,并针对μC/GUI的中文支持欠缺和屏幕刷新率低等不足进行优化。研究了μC/OS_II、μC/GUI的组织架构,针对μC/OS_II与CPU任务切换密切相关的文件进行改写,同时在μC/OS_II成功移植的基础上对μC/GUI进行进一步的移植操作,包括修改与μC/OS_II相关的文件,改写μC/GUI底层与LCD驱动密切联系的函数。在μC/GUI成功移植的基础上对其字库文件进行改写,加入中文字库;对μC/GUI的画点、画线、矩形填充函数进行修改,提高液晶屏的屏幕刷新效率。实验结果表明,所创建的4个任务切换正常,中文正常显示,同时像素填充率由之前的996 080/s上升到优化后的1 629 060/s。μC/OS_II与μC/GUI能正常地协同工作,优化带来了μC/GUI性能的提升。
In order to create an efficient,intuitionistic and multi-mission embedded development platform,the embedded experimental environment was designed based on theμC/OS_II,μC/GUI,STM32 MCU and ILI9320 LCD.Research was done to explore the migration method of theμC/OS_II andμC/GUI and to optimize theμC/GUI on the lack of the Chinese and low rate of the screen refresh.The organizational structure of theμC/OS_II andμC/GUI were studied,and the files that were closely associated with stm32 mcu were rewritten.At the same time,the operation of theμC/GUI transplantation was done based on the success of the transplantation of theμC/OS_II including the modification of the files related to theμC/OS_II and the adaptation of theμC/GUI bottom-driven functions.And Chinese font library was added to the system based on the successful transplantation of theμC/GUI.TheμC/GUI functions of drawing pixel,line and rectangle were rewritten to increase the screen refresh rate.The experimental results show that the four created tasks run regular services,and the Chinese character displayed normally.The screen refresh rate increased from 996 080to1 629 060pixel/s.TheμC/OS_II andμC/GUI worked cooperatively and the optimization of theμC/GUI functions improved the screen's performance.
出处
《液晶与显示》
CAS
CSCD
北大核心
2014年第6期950-956,共7页
Chinese Journal of Liquid Crystals and Displays
基金
河南省重点科技攻关项目(No.122102210117
No.112102210004)