本帖最后由 eehome 于 2013-1-5 10:09 编辑
uC OS-II在C51下的LCD项目源代码
通用板系统调试
********* */
#define OS_VERSION 200 /* Version of uC/OS-II (Vx.yy multi plied by 100) */
#ifdef OS_GLOBALS #define OS_EXT #else #define OS_EXT extern #endif
#define OS_PRIO_SELF 0xFF /* Indicate SELF priority */
#if OS_TASK_STAT_EN #define OS_N_SYS_TASKS 2 /* Number of system tasks */ #else #define OS_N_SYS_TASKS 1 #endif
#define OS_STAT_PRIO (OS_LOWEST_PRIO - 1) /* Statistic task priority */ #define OS_IDLE_PRIO (OS_LOWEST_PRIO) /* IDLE task priority */
#define OS_EVENT_TBL_SIZE ((OS_LOWEST_PRIO) / 8 + 1) /* Size of event table */ #define OS_RDY_TBL_SIZE ((OS_LOWEST_PRIO) / 8 + 1) /* Size of ready table */
#define OS_TASK_IDLE_ID 65535 /* I.D. numbers for Idle and Stat tasks */ #define OS_TASK_STAT_ID 65534
/* TASK STATUS (Bit definition for OSTCBStat) */ #define OS_STAT_RDY 0x00 /* Ready to run */ #define OS_STAT_SEM 0x01 /* Pending on semaphore */ #define OS_STAT_MBOX 0x02 /* Pending on mailbox */ #define OS_STAT_Q 0x04 /* Pending on queue */ #define OS_STAT_SUSPEND 0x08 /* Task is suspended */
#define OS_EVENT_TYPE_MBOX 1 #define OS_EVENT_TYPE_Q 2 #define OS_EVENT_TYPE_SEM 3
/* TASK OPTIONS (see OSTaskCreateExt()) */ #define OS_TASK_OPT_STK_CHK 0x0001 /* Enable stack checking for the task */ #define OS_TASK_OPT_STK_CLR 0x0002 /* Clear the stack when the task is create */ #define OS_TASK_OPT_SAVE_FP 0x0004 /* Save the contents of any floating-point registers */
#ifndef FALSE #define FALSE 0 #endif
#ifndef TRUE #define TRUE 1 #endif
/* **************************************
0
功率模块回收IGBT回收欧派克回收西门康回收★ -------------------- 高价收购原装模块、拆机模块★13544123655 ★ -------------------------------------------------------- 高价现金回收工厂欧派克、西门康、三菱、富士等各品牌拆机、原装模块。 需要处理此类产品的朋友请联系我,把库存换成现金,为您资金立马回笼的好生意。 QQ:893884513 E-mail:893884513@qq.com 电话:135-4412-3655(深圳) 周生
提交评论