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