astroboy astroboy
/
CoOS_LWIP
Quick and dirty CoOS + LWIP ( Webserver )
CoOS/kernel/OsError.h@0:94897d537b31, 2011-09-10 (annotated)
- Committer:
- astroboy
- Date:
- Sat Sep 10 22:41:10 2011 +0000
- Revision:
- 0:94897d537b31
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
astroboy | 0:94897d537b31 | 1 | /** |
astroboy | 0:94897d537b31 | 2 | ******************************************************************************* |
astroboy | 0:94897d537b31 | 3 | * @file OsError.h |
astroboy | 0:94897d537b31 | 4 | * @version V1.1.4 |
astroboy | 0:94897d537b31 | 5 | * @date 2011.04.20 |
astroboy | 0:94897d537b31 | 6 | * @brief rror dispose header file |
astroboy | 0:94897d537b31 | 7 | * @details This file use to dispose error which from error configure for OS. |
astroboy | 0:94897d537b31 | 8 | ******************************************************************************* |
astroboy | 0:94897d537b31 | 9 | * @copy |
astroboy | 0:94897d537b31 | 10 | * |
astroboy | 0:94897d537b31 | 11 | * INTERNAL FILE,DON'T PUBLIC. |
astroboy | 0:94897d537b31 | 12 | * |
astroboy | 0:94897d537b31 | 13 | * <h2><center>© COPYRIGHT 2009 CooCox </center></h2> |
astroboy | 0:94897d537b31 | 14 | ******************************************************************************* |
astroboy | 0:94897d537b31 | 15 | */ |
astroboy | 0:94897d537b31 | 16 | |
astroboy | 0:94897d537b31 | 17 | |
astroboy | 0:94897d537b31 | 18 | #ifndef _ERROR_H |
astroboy | 0:94897d537b31 | 19 | #define _ERROR_H |
astroboy | 0:94897d537b31 | 20 | |
astroboy | 0:94897d537b31 | 21 | #if (CFG_SYSTICK_FREQ > 1000) ||(CFG_SYSTICK_FREQ < 1) |
astroboy | 0:94897d537b31 | 22 | #error " OsConfig.h System Tick time must between 1ms and 1s!" |
astroboy | 0:94897d537b31 | 23 | #endif |
astroboy | 0:94897d537b31 | 24 | |
astroboy | 0:94897d537b31 | 25 | #if CFG_MAX_USER_TASKS > 253 |
astroboy | 0:94897d537b31 | 26 | #error " OsConfig.h, CFG_MAX_USER_TASKS must be <= 253! " |
astroboy | 0:94897d537b31 | 27 | #endif |
astroboy | 0:94897d537b31 | 28 | |
astroboy | 0:94897d537b31 | 29 | #if CFG_LOWEST_PRIO > 254 |
astroboy | 0:94897d537b31 | 30 | #error " OsConfig.h, CFG_LOWEST_PRIO must be <= 254! " |
astroboy | 0:94897d537b31 | 31 | #endif |
astroboy | 0:94897d537b31 | 32 | |
astroboy | 0:94897d537b31 | 33 | #if CFG_IDLE_STACK_SIZE <25 |
astroboy | 0:94897d537b31 | 34 | #error " OsConfig.h, CFG_IDLE_STACK_SIZE must be >= 25! " |
astroboy | 0:94897d537b31 | 35 | #endif |
astroboy | 0:94897d537b31 | 36 | |
astroboy | 0:94897d537b31 | 37 | |
astroboy | 0:94897d537b31 | 38 | #if CFG_ROBIN_EN > 0 |
astroboy | 0:94897d537b31 | 39 | #if CFG_TIME_SLICE > 4095 |
astroboy | 0:94897d537b31 | 40 | #error " OsConfig.h, CFG_TIME_SLICE must be <= 4095! " |
astroboy | 0:94897d537b31 | 41 | #endif |
astroboy | 0:94897d537b31 | 42 | #endif |
astroboy | 0:94897d537b31 | 43 | |
astroboy | 0:94897d537b31 | 44 | #if CFG_TMR_EN > 0 |
astroboy | 0:94897d537b31 | 45 | #if CFG_MAX_TMR > 32 |
astroboy | 0:94897d537b31 | 46 | #error " OsConfig.h, CFG_MAX_TMR must be <= 32! " |
astroboy | 0:94897d537b31 | 47 | #endif |
astroboy | 0:94897d537b31 | 48 | #endif |
astroboy | 0:94897d537b31 | 49 | |
astroboy | 0:94897d537b31 | 50 | |
astroboy | 0:94897d537b31 | 51 | #if CFG_MM_EN > 0 |
astroboy | 0:94897d537b31 | 52 | #if CFG_MAX_MM > 32 |
astroboy | 0:94897d537b31 | 53 | #error " config.h, CFG_MAX_MM must be <= 32! " |
astroboy | 0:94897d537b31 | 54 | #endif |
astroboy | 0:94897d537b31 | 55 | #endif |
astroboy | 0:94897d537b31 | 56 | |
astroboy | 0:94897d537b31 | 57 | |
astroboy | 0:94897d537b31 | 58 | #if CFG_KHEAP_EN > 0 |
astroboy | 0:94897d537b31 | 59 | #if KHEAP_SIZE < 0x20 |
astroboy | 0:94897d537b31 | 60 | #error " config.h, CFG_MAX_MM must be >= 0x20! " |
astroboy | 0:94897d537b31 | 61 | #endif |
astroboy | 0:94897d537b31 | 62 | #endif |
astroboy | 0:94897d537b31 | 63 | |
astroboy | 0:94897d537b31 | 64 | #if CFG_MUTEX_EN > 0 |
astroboy | 0:94897d537b31 | 65 | #if CFG_MAX_MUTEX > 254 |
astroboy | 0:94897d537b31 | 66 | #error " config.h, CFG_MAX_MUTEX must be <= 254! " |
astroboy | 0:94897d537b31 | 67 | #endif |
astroboy | 0:94897d537b31 | 68 | #endif |
astroboy | 0:94897d537b31 | 69 | |
astroboy | 0:94897d537b31 | 70 | |
astroboy | 0:94897d537b31 | 71 | #if CFG_EVENT_EN > 0 |
astroboy | 0:94897d537b31 | 72 | #if (CFG_MAX_EVENT > 254 || CFG_MAX_EVENT <= 0) |
astroboy | 0:94897d537b31 | 73 | #error " config.h, CFG_MAX_EVENT must be <= 254 && > 0! " |
astroboy | 0:94897d537b31 | 74 | #endif |
astroboy | 0:94897d537b31 | 75 | |
astroboy | 0:94897d537b31 | 76 | |
astroboy | 0:94897d537b31 | 77 | #if CFG_QUEUE_EN > 0 |
astroboy | 0:94897d537b31 | 78 | #if CFG_MAX_QUEUE > CFG_MAX_EVENT |
astroboy | 0:94897d537b31 | 79 | #error " config.h, CFG_MAX_QUEUE must be <= CFG_MAX_EVENT! " |
astroboy | 0:94897d537b31 | 80 | #endif |
astroboy | 0:94897d537b31 | 81 | #endif |
astroboy | 0:94897d537b31 | 82 | #endif /* CFG_EVENT_EN */ |
astroboy | 0:94897d537b31 | 83 | |
astroboy | 0:94897d537b31 | 84 | #endif /* _ERROR_H */ |