成都嵌入式论坛
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Micrium-ST-uCOS-II-LCD-STM32

向下

Micrium-ST-uCOS-II-LCD-STM32 Empty Micrium-ST-uCOS-II-LCD-STM32

帖子  Admin 周日 三月 27, 2011 7:14 pm

今天下午 移植 Micrium 官方范例 Micrium-ST-uCOS-II-LCD-STM32.exe 到 STM32-SS

//pass at STM32-SS + ILI 9320 TFT LCD (S24193),zhou__mi@tom.com,20110327,16:17
Micrium-ST-uCOS-II-LCD-STM32 Ucos2_10

Micrium-ST-uCOS-II-LCD-STM32 Ucos2_11
int main (void)
{
CPU_INT08U os_err;


BSP_IntDisAll(); /* Disable all ints until we are ready to accept them. */

OSInit(); /* Initialize "uC/OS-II, The Real-Time Kernel". */

os_err = OSTaskCreateExt((void (*)(void *)) App_TaskStart, /* Create the start task. */
(void * ) 0,
(OS_STK * )&App_TaskStartStk[APP_TASK_START_STK_SIZE - 1],
(INT8U ) APP_TASK_START_PRIO,
(INT16U ) APP_TASK_START_PRIO,
(OS_STK * )&App_TaskStartStk[0],
(INT32U ) APP_TASK_START_STK_SIZE,
(void * )0,
(INT16U )(OS_TASK_OPT_STK_CLR | OS_TASK_OPT_STK_CHK));

#if (OS_TASK_NAME_SIZE >= 11)
OSTaskNameSet(APP_TASK_START_PRIO, (CPU_INT08U *)"Start Task", &os_err);
#endif

OSStart(); /* Start multitasking (i.e. give control to uC/OS-II). */

return (0);
}

Admin
Admin

帖子数 : 177
注册日期 : 10-03-21

http://cdmcu.fengbb.com

返回页首 向下

返回页首


 
您在这个论坛的权限:
不能在这个论坛回复主题