mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
Remove compiler warning in CCS MSP430X port.
This commit is contained in:
parent
3b4771e1a9
commit
ab1aa67b08
|
@ -98,7 +98,7 @@ void vPortSetupTimerInterrupt( void );
|
||||||
portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters )
|
portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters )
|
||||||
{
|
{
|
||||||
unsigned short *pusTopOfStack;
|
unsigned short *pusTopOfStack;
|
||||||
unsigned long *pulTopOfStack;
|
unsigned long *pulTopOfStack, ulTemp;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Place a few bytes of known values on the bottom of the stack.
|
Place a few bytes of known values on the bottom of the stack.
|
||||||
|
@ -117,7 +117,8 @@ unsigned long *pulTopOfStack;
|
||||||
if( sizeof( pxCode ) == sizeof( unsigned short ) )
|
if( sizeof( pxCode ) == sizeof( unsigned short ) )
|
||||||
{
|
{
|
||||||
pusTopOfStack = ( unsigned short * ) pxTopOfStack;
|
pusTopOfStack = ( unsigned short * ) pxTopOfStack;
|
||||||
*pusTopOfStack = ( unsigned short ) pxCode;
|
ulTemp = ( unsigned long ) pxCode;
|
||||||
|
*pusTopOfStack = ( unsigned short ) ulTemp;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue