A few additional casts to keep the Renesas RX compiler happy.

pull/1/head
Richard Barry 11 years ago
parent 74ffdb0b89
commit ef254df85f

@ -264,7 +264,7 @@ static void prvRecordValue_NormallyFull( unsigned portBASE_TYPE uxValue, unsigne
}
/* 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. */
ucNormallyEmptyReceivedValues[ uxValue ] = uxSource;
ucNormallyEmptyReceivedValues[ uxValue ] = ( unsigned char ) uxSource;
}
}
/*-----------------------------------------------------------*/
@ -657,7 +657,8 @@ unsigned portBASE_TYPE uxValue, uxTxed = 9999;
portBASE_TYPE xFirstTimerHandler( void )
{
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE, uxRxedValue;
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
unsigned portBASE_TYPE uxRxedValue;
static unsigned portBASE_TYPE uxNextOperation = 0;
/* 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
to true. */
return !xErrorDetected;
return ( portBASE_TYPE ) !xErrorDetected;
}

@ -410,7 +410,7 @@ TickType_t xBlockPeriod, xTimerPeriod, xExpectedNumber;
xExpectedNumber = xBlockPeriod / xTimerPeriod;
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 ) ||
( ucAutoReloadTimerCounters[ ucTimer ] > ucMaxAllowableValue )

Loading…
Cancel
Save