123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- #ifndef PROJDEFS_H
- #define PROJDEFS_H
- typedef void (*TaskFunction_t)( void * );
- #define pdMS_TO_TICKS( xTimeInMs ) ( ( ( TickType_t ) ( xTimeInMs ) * configTICK_RATE_HZ ) / ( TickType_t ) 1000 )
- #define pdFALSE ( ( BaseType_t ) 0 )
- #define pdTRUE ( ( BaseType_t ) 1 )
- #define pdPASS ( pdTRUE )
- #define pdFAIL ( pdFALSE )
- #define errQUEUE_EMPTY ( ( BaseType_t ) 0 )
- #define errQUEUE_FULL ( ( BaseType_t ) 0 )
- #define errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY ( -1 )
- #define errQUEUE_BLOCKED ( -4 )
- #define errQUEUE_YIELD ( -5 )
- #ifndef configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES
- #define configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES 0
- #endif
- #if( configUSE_16_BIT_TICKS == 1 )
- #define pdINTEGRITY_CHECK_VALUE 0x5a5a
- #else
- #define pdINTEGRITY_CHECK_VALUE 0x5a5a5a5aUL
- #endif
- #endif
|