摘要
在基于C8051F020处理器组建的系统上移植μC/OS-Ⅱ时,把任务函数定义为再入函数,用户要修改与处理器相关的头文件OS_CPU.H、汇编语言文件OS_CPU_A.ASM及C语言文件OS_CPU_C.C。汇编语言文件涉及任务堆栈结构和系统硬件堆栈空间分配,根据编译器的需要,用户要改写KEIL C51下的编译函数STARTUP.A51。
When 霤/OS-Ⅱ was transplanted on the system built by C8051F020 processor, the task function was defined into the reentrant function. Customers modified the relating document OS_CPU.H, assembly language document OS_CPU_A.ASM and C language document OS_CPU_C in processor. The document of assembly language refers to the construction of task stack and distributions of the system hardware stack space. According to the requirement of compiler, customers should rewrite the STARTUP.A51 compiler function under KEIL C51.
出处
《兵工自动化》
2004年第5期82-84,共3页
Ordnance Industry Automation