资源说明:ucos在44B0上的成功移植,void Main(void)
{
char Id1 = '1';
char Id2 = '2';
char Id3 = '3';
Port_Init();
Uart_Init(0,115200);
Delay(1000);
Uart_Select(0); //Select UART0
uHALr_printf("\nstarting ucos!!\n\n") ;
//Uart_Printf("Uc-OS ii will run at once!");
/* do target (uHAL based ARM system) initialisation */
ARMTargetInit();//°üÀ¨½ûÖ¹ÖжÏ
OSInit();
OSTimeSet(0);
Sem1 = OSSemCreate(1);
//Sem2 = OSSemCreate(1);
// Sem3 = OSSemCreate(1);
OSTaskCreate(Task1, (void *)&Id1, &Stack1[STACKSIZE - 1], 1);
OSTaskCreate(Task2, (void *)&Id2, &Stack2[STACKSIZE - 1], 2);
OSTaskCreate(Task3, (void *)&Id3, &Stack3[STACKSIZE - 1], 3);
OSStart();
}
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。