electronix79
/
CoOS_mbed
CooCox 1.1.4 on mbed with simple blinky example
Embed:
(wiki syntax)
Show/hide line numbers
OsError.h
Go to the documentation of this file.
00001 /** 00002 ******************************************************************************* 00003 * @file OsError.h 00004 * @version V1.1.4 00005 * @date 2011.04.20 00006 * @brief rror dispose header file 00007 * @details This file use to dispose error which from error configure for OS. 00008 ******************************************************************************* 00009 * @copy 00010 * 00011 * INTERNAL FILE,DON'T PUBLIC. 00012 * 00013 * <h2><center>© COPYRIGHT 2009 CooCox </center></h2> 00014 ******************************************************************************* 00015 */ 00016 00017 00018 #ifndef _ERROR_H 00019 #define _ERROR_H 00020 00021 #if (CFG_SYSTICK_FREQ > 1000) ||(CFG_SYSTICK_FREQ < 1) 00022 #error " OsConfig.h System Tick time must between 1ms and 1s!" 00023 #endif 00024 00025 #if CFG_MAX_USER_TASKS > 253 00026 #error " OsConfig.h, CFG_MAX_USER_TASKS must be <= 253! " 00027 #endif 00028 00029 #if CFG_LOWEST_PRIO > 254 00030 #error " OsConfig.h, CFG_LOWEST_PRIO must be <= 254! " 00031 #endif 00032 00033 #if CFG_IDLE_STACK_SIZE <25 00034 #error " OsConfig.h, CFG_IDLE_STACK_SIZE must be >= 25! " 00035 #endif 00036 00037 00038 #if CFG_ROBIN_EN > 0 00039 #if CFG_TIME_SLICE > 4095 00040 #error " OsConfig.h, CFG_TIME_SLICE must be <= 4095! " 00041 #endif 00042 #endif 00043 00044 #if CFG_TMR_EN > 0 00045 #if CFG_MAX_TMR > 32 00046 #error " OsConfig.h, CFG_MAX_TMR must be <= 32! " 00047 #endif 00048 #endif 00049 00050 00051 #if CFG_MM_EN > 0 00052 #if CFG_MAX_MM > 32 00053 #error " config.h, CFG_MAX_MM must be <= 32! " 00054 #endif 00055 #endif 00056 00057 00058 #if CFG_KHEAP_EN > 0 00059 #if KHEAP_SIZE < 0x20 00060 #error " config.h, CFG_MAX_MM must be >= 0x20! " 00061 #endif 00062 #endif 00063 00064 #if CFG_MUTEX_EN > 0 00065 #if CFG_MAX_MUTEX > 254 00066 #error " config.h, CFG_MAX_MUTEX must be <= 254! " 00067 #endif 00068 #endif 00069 00070 00071 #if CFG_EVENT_EN > 0 00072 #if (CFG_MAX_EVENT > 254 || CFG_MAX_EVENT <= 0) 00073 #error " config.h, CFG_MAX_EVENT must be <= 254 && > 0! " 00074 #endif 00075 00076 00077 #if CFG_QUEUE_EN > 0 00078 #if CFG_MAX_QUEUE > CFG_MAX_EVENT 00079 #error " config.h, CFG_MAX_QUEUE must be <= CFG_MAX_EVENT! " 00080 #endif 00081 #endif 00082 #endif /* CFG_EVENT_EN */ 00083 00084 #endif /* _ERROR_H */
Generated on Tue Jul 12 2022 18:19:10 by 1.7.2