摘要
采用Lua可扩展脚本语言,实现多个协同程序在同一任务中协作执行的嵌入式产品的应用扩展要求。在宿主程序中完成协同程序的实现细节,简化了应用中的编程。文章描述了协同机制,分析和设计了宿主程序的协同操作,并通过ARM7平台完成了具体实现。
In order to meet requirements for extensions of embedded device,the functions that execute multiple coroutine in same task was developed using extensible scripting language of Lua.The implementation details of coroutine was processed by host program,thereby reducing the difficulty of application programming.The paper describe the mechanism of coroutine,analyzed and design of coroutine operation in host program and complete the specific implementation using ARM7 platform.
出处
《自动化与信息工程》
2010年第4期33-35,48,共4页
Automation & Information Engineering