00001 /** 00002 * @file error_code.h 00003 * 00004 * @brief Error messages returned in OS_Abort(). 00005 * 00006 * CSC 460/560 Real Time Operating Systems - Mantis Cheng 00007 * 00008 * @author Scott Craig 00009 * @author Justin Tanner 00010 */ 00011 #ifndef __ERROR_CODE_H__ 00012 #define __ERROR_CODE_H__ 00013 00014 enum { 00015 00016 /** Initialize time errors. */ 00017 /** PPP invalid -- Names must be in range [0 .. MAXPROCESS] */ 00018 ERR_1_PPP_NAME_OUT_OF_RANGE, 00019 00020 /** PERIODIC name is out of range [1 .. MAXNAME] */ 00021 ERR_2_CREATE_NAME_OUT_OF_RANGE, 00022 00023 /** PERIODIC task assigned name IDLE */ 00024 ERR_3_PERIODIC_NAMED_IDLE, 00025 00026 /** PERIODIC name already used */ 00027 ERR_4_PERIODIC_NAME_IN_USE, 00028 00029 /** PERIODIC name not in PPP array */ 00030 ERR_5_NAME_NOT_IN_PPP, 00031 00032 /** Time interval 0 in PPP array */ 00033 ERR_6_TIME_INTERVAL_IN_PPP_0, 00034 00035 00036 /** Run time errors. */ 00037 /** User called OS_Abort() */ 00038 ERR_RUN_1_USER_CALLED_OS_ABORT, 00039 00040 /** Too many tasks created. Only allowed MAXPROCESS at any time.*/ 00041 ERR_RUN_2_TOO_MANY_TASKS, 00042 00043 /** PERIODIC task still running at end of time slot. */ 00044 ERR_RUN_3_PERIODIC_TOOK_TOO_LONG, 00045 00046 /** Signalling on a non-initialized event. */ 00047 ERR_RUN_4_SIGNAL_ON_BAD_EVENT, 00048 00049 /** Event_wait() on unitialized EVENT */ 00050 ERR_RUN_5_WAIT_ON_BAD_EVENT, 00051 00052 /** ISR made a request that only tasks are allowed. */ 00053 ERR_RUN_6_ILLEGAL_ISR_KERNEL_REQUEST, 00054 00055 /** PERIODIC tasks cannot wait. */ 00056 ERR_RUN_7_PERIODIC_CALLED_WAIT, 00057 00058 /** RTOS Internal error in handling request. */ 00059 ERR_RUN_8_RTOS_INTERNAL_ERROR, 00060 00061 }; 00062 00063 00064 #endif