mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-29 22:48:37 -04:00
A few additional casts to keep the Renesas RX compiler happy.
This commit is contained in:
parent
74ffdb0b89
commit
ef254df85f
3 changed files with 6 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue