From: rtel Date: Thu, 29 May 2014 13:39:48 +0000 (+0000) Subject: A few additional casts to keep the Renesas RX compiler happy. X-Git-Tag: V8.1.0~47 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=09c179b21f93fd5993c7eda04a2d759e0300d20c;p=freertos A few additional casts to keep the Renesas RX compiler happy. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2245 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/FreeRTOS/Demo/Common/Minimal/IntQueue.c b/FreeRTOS/Demo/Common/Minimal/IntQueue.c index 2a36c48cd..b58c05f3b 100644 --- a/FreeRTOS/Demo/Common/Minimal/IntQueue.c +++ b/FreeRTOS/Demo/Common/Minimal/IntQueue.c @@ -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 diff --git a/FreeRTOS/Demo/Common/Minimal/QPeek.c b/FreeRTOS/Demo/Common/Minimal/QPeek.c index fee1f63aa..aa473e5cf 100644 --- a/FreeRTOS/Demo/Common/Minimal/QPeek.c +++ b/FreeRTOS/Demo/Common/Minimal/QPeek.c @@ -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; } diff --git a/FreeRTOS/Demo/Common/Minimal/TimerDemo.c b/FreeRTOS/Demo/Common/Minimal/TimerDemo.c index 0b9aadf61..9a8e52510 100644 --- a/FreeRTOS/Demo/Common/Minimal/TimerDemo.c +++ b/FreeRTOS/Demo/Common/Minimal/TimerDemo.c @@ -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 )