Reverse order of projdefs.h and FreeRTOSConfig.h includes in FreeRTOS.h to allow addition of pdMS_TO_TICKS() macro.

Update RXv2 GCC port to match RXv2 Renesas port.
This commit is contained in:
Richard Barry 2014-06-04 09:17:14 +00:00
parent 5cd0b1e5ef
commit 1130a53ec8
4 changed files with 76 additions and 31 deletions

View file

@ -72,6 +72,9 @@
*/
typedef void (*TaskFunction_t)( void * );
/* Converts a time in miliseconds to a time in ticks. */
#define pdMS_TO_TICKS( xTimeInMs ) ( ( ( TickType_t ) xTimeInMs * configTICK_RATE_HZ ) / ( TickType_t ) 1000 )
#define pdFALSE ( ( BaseType_t ) 0 )
#define pdTRUE ( ( BaseType_t ) 1 )