mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
A few additional casts to keep the Renesas RX compiler happy.
This commit is contained in:
parent
74ffdb0b89
commit
ef254df85f
|
@ -264,7 +264,7 @@ static void prvRecordValue_NormallyFull( unsigned portBASE_TYPE uxValue, unsigne
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Log that this value has been received. */
|
/* Log that this value has been received. */
|
||||||
ucNormallyFullReceivedValues[ uxValue ] = uxSource;
|
ucNormallyFullReceivedValues[ uxValue ] = ( unsigned char ) uxSource;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
@ -281,7 +281,7 @@ static void prvRecordValue_NormallyEmpty( unsigned portBASE_TYPE uxValue, unsign
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Log that this value has been received. */
|
/* Log that this value has been received. */
|
||||||
ucNormallyEmptyReceivedValues[ uxValue ] = uxSource;
|
ucNormallyEmptyReceivedValues[ uxValue ] = ( unsigned char ) uxSource;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
@ -657,7 +657,8 @@ unsigned portBASE_TYPE uxValue, uxTxed = 9999;
|
||||||
|
|
||||||
portBASE_TYPE xFirstTimerHandler( void )
|
portBASE_TYPE xFirstTimerHandler( void )
|
||||||
{
|
{
|
||||||
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE, uxRxedValue;
|
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
|
||||||
|
unsigned portBASE_TYPE uxRxedValue;
|
||||||
static unsigned portBASE_TYPE uxNextOperation = 0;
|
static unsigned portBASE_TYPE uxNextOperation = 0;
|
||||||
|
|
||||||
/* Called from a timer interrupt. Perform various read and write
|
/* Called from a timer interrupt. Perform various read and write
|
||||||
|
|
|
@ -469,6 +469,6 @@ static unsigned long ulLastLoopCounter = 0;
|
||||||
/* Errors detected in the task itself will have latched xErrorDetected
|
/* Errors detected in the task itself will have latched xErrorDetected
|
||||||
to true. */
|
to true. */
|
||||||
|
|
||||||
return !xErrorDetected;
|
return ( portBASE_TYPE ) !xErrorDetected;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -410,7 +410,7 @@ TickType_t xBlockPeriod, xTimerPeriod, xExpectedNumber;
|
||||||
xExpectedNumber = xBlockPeriod / xTimerPeriod;
|
xExpectedNumber = xBlockPeriod / xTimerPeriod;
|
||||||
|
|
||||||
ucMaxAllowableValue = ( ( unsigned char ) xExpectedNumber ) ;
|
ucMaxAllowableValue = ( ( unsigned char ) xExpectedNumber ) ;
|
||||||
ucMinAllowableValue = ( ( unsigned char ) xExpectedNumber - ( unsigned char ) 1 );
|
ucMinAllowableValue = ( unsigned char ) ( ( unsigned char ) xExpectedNumber - ( unsigned char ) 1 ); /* Weird casting to try and please all compilers. */
|
||||||
|
|
||||||
if( ( ucAutoReloadTimerCounters[ ucTimer ] < ucMinAllowableValue ) ||
|
if( ( ucAutoReloadTimerCounters[ ucTimer ] < ucMinAllowableValue ) ||
|
||||||
( ucAutoReloadTimerCounters[ ucTimer ] > ucMaxAllowableValue )
|
( ucAutoReloadTimerCounters[ ucTimer ] > ucMaxAllowableValue )
|
||||||
|
|
Loading…
Reference in a new issue