16 H:\SOURCE中文源代码\uCOS_II.H
1133 #endif
1134
1135 /***********************************************************************************************
1136 * 任务管理条件编译
1137 ***********************************************************************************************/
1138
1139 #ifndef OS_MAX_TASKS
1140 #error "OS_CFG.H, Missing OS_MAX_TASKS: Max. number of tasks in your application"
1141 #else
1142 #if OS_MAX_TASKS == 0
1143 #error "OS_CFG.H, OS_MAX_TASKS must be >= 2"
1144 #endif
1145 #if OS_MAX_TASKS > 63
1146 #error "OS_CFG.H, OS_MAX_TASKS must be <= 63"
1147 #endif
1148 #endif
1149
1150 #ifndef OS_TASK_IDLE_STK_SIZE
1151 #error "OS_CFG.H, Missing OS_TASK_IDLE_STK_SIZE: Idle task stack size"
1152 #endif
1153
1154 #ifndef OS_TASK_STAT_EN
1155 #error "OS_CFG.H, Missing OS_TASK_STAT_EN: Enable (1) or Disable(0) the statistics task"
1156 #endif
1157
1158 #ifndef OS_TASK_STAT_STK_SIZE
1159 #error "OS_CFG.H, Missing OS_TASK_STAT_STK_SIZE: Statistics task stack size"
1160 #endif
1161
1162 #ifndef OS_TASK_CHANGE_PRIO_EN
1163 #error "OS_CFG.H, Missing OS_TASK_CHANGE_PRIO_EN: Include code for OSTaskChangePrio()"
1164 #endif
1165
1166 #ifndef OS_TASK_CREATE_EN
1167 #error "OS_CFG.H, Missing OS_TASK_CREATE_EN: Include code for OSTaskCreate()"
1168 #endif
1169
1170 #ifndef OS_TASK_CREATE_EXT_EN
1171 #error "OS_CFG.H, Missing OS_TASK_CREATE_EXT_EN: Include code for OSTaskCreateExt()"
1172 #endif
1173
1174 #ifndef OS_TASK_DEL_EN
1175 #error "OS_CFG.H, Missing OS_TASK_DEL_EN: Include code for OSTaskDel()"
1176 #endif
1177
1178 #ifndef OS_TASK_SUSPEND_EN
1179 #error "OS_CFG.H, Missing OS_TASK_SUSPEND_EN: Include code for OSTaskSuspend() and OSTaskResume()"
1180 #endif
1181
1182 #ifndef OS_TASK_QUERY_EN
1183 #error "OS_CFG.H, Missing OS_TASK_QUERY_EN: Include code for OSTaskQuery()"
1184 #endif
1185
1186 /***********************************************************************************************
1187 * 时间管理条件编译
1188 ***********************************************************************************************/
1189
1190 #ifndef OS_TICKS_PER_SEC
1191 #error "OS_CFG.H, Missing OS_TICKS_PER_SEC: Sets the number of ticks in one second"
1192 #endif
1193
1194 #ifndef OS_TIME_DLY_HMSM_EN
1195 #error "OS_CFG.H, Missing OS_TIME_DLY_HMSM_EN: Include code for OSTimeDlyHMSM()"
1196 #endif
1197
1198 #ifndef OS_TIME_DLY_RESUME_EN
1199 #error "OS_CFG.H, Missing OS_TIME_DLY_RESUME_EN: Include code for OSTimeDlyResume()"
1200 #endif
1201
1202 #ifndef OS_TIME_GET_SET_EN
1203 #error "OS_CFG.H, Missing OS_TIME_GET_SET_EN: Include code for OSTimeGet() and OSTimeSet()"
1204 #endif
1205
1206 /***********************************************************************************************
1207 * 混合管理条件编译
1208 ************************************************************************************************/