Map portTICK_RATE_MS to portTICK_PERIOD_MS.

This commit is contained in:
Richard Barry 2014-01-05 20:40:55 +00:00
parent a56d4b998c
commit 1aaa80fba6
86 changed files with 114 additions and 113 deletions

View file

@ -184,13 +184,13 @@ TIMECAPS xTimeCaps;
time, not the time that Sleep() is called. It is done this way to
prevent overruns in this very non real time simulated/emulated
environment. */
if( portTICK_RATE_MS < xMinimumWindowsBlockTime )
if( portTICK_PERIOD_MS < xMinimumWindowsBlockTime )
{
Sleep( xMinimumWindowsBlockTime );
}
else
{
Sleep( portTICK_RATE_MS );
Sleep( portTICK_PERIOD_MS );
}
configASSERT( xPortRunning );

View file

@ -95,7 +95,7 @@ typedef unsigned long UBaseType_t;
/* Hardware specifics. */
#define portSTACK_GROWTH ( -1 )
#define portTICK_RATE_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
#define portBYTE_ALIGNMENT 4
#define portYIELD() vPortGenerateSimulatedInterrupt( portINTERRUPT_YIELD )