summaryrefslogtreecommitdiff
path: root/FreeRTOS/Source/portable/Renesas/RX600/port.c
diff options
context:
space:
mode:
authorRichard Barry <ribarry@amazon.com>2013-12-29 14:06:04 +0000
committerRichard Barry <ribarry@amazon.com>2013-12-29 14:06:04 +0000
commit3e20aa7d60bdbaffa3a02c068d6ed11a3d49a7bd (patch)
treeb2dae31afc1db02da75f3acc8b442438b4182d59 /FreeRTOS/Source/portable/Renesas/RX600/port.c
parentf292243dcffb6927855645015ec3d88af326431b (diff)
downloadfreertos-git-3e20aa7d60bdbaffa3a02c068d6ed11a3d49a7bd.tar.gz
Replace standard types with stdint.h types.
Replace #define types with typedefs. Rename all typedefs to have a _t extension. Add #defines to automatically convert old FreeRTOS specific types to their new names (with the _t).
Diffstat (limited to 'FreeRTOS/Source/portable/Renesas/RX600/port.c')
-rw-r--r--FreeRTOS/Source/portable/Renesas/RX600/port.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/FreeRTOS/Source/portable/Renesas/RX600/port.c b/FreeRTOS/Source/portable/Renesas/RX600/port.c
index 636c8e62f..9ec2931ed 100644
--- a/FreeRTOS/Source/portable/Renesas/RX600/port.c
+++ b/FreeRTOS/Source/portable/Renesas/RX600/port.c
@@ -81,16 +81,16 @@
/* Tasks should start with interrupts enabled and in Supervisor mode, therefore
PSW is set with U and I set, and PM and IPL clear. */
-#define portINITIAL_PSW ( ( portSTACK_TYPE ) 0x00030000 )
-#define portINITIAL_FPSW ( ( portSTACK_TYPE ) 0x00000100 )
+#define portINITIAL_PSW ( ( StackType_t ) 0x00030000 )
+#define portINITIAL_FPSW ( ( StackType_t ) 0x00000100 )
/*-----------------------------------------------------------*/
/* The following lines are to ensure vSoftwareInterruptEntry can be referenced,
and therefore installed in the vector table, when the FreeRTOS code is built
as a library. */
-extern portBASE_TYPE vSoftwareInterruptEntry;
-const portBASE_TYPE * p_vSoftwareInterruptEntry = &vSoftwareInterruptEntry;
+extern BaseType_t vSoftwareInterruptEntry;
+const BaseType_t * p_vSoftwareInterruptEntry = &vSoftwareInterruptEntry;
/*-----------------------------------------------------------*/
@@ -127,7 +127,7 @@ extern void vTaskSwitchContext( void );
/*
* See header file for description.
*/
-portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters )
+StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters )
{
/* R0 is not included as it is the stack pointer. */
@@ -135,7 +135,7 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE
pxTopOfStack--;
*pxTopOfStack = portINITIAL_PSW;
pxTopOfStack--;
- *pxTopOfStack = ( portSTACK_TYPE ) pxCode;
+ *pxTopOfStack = ( StackType_t ) pxCode;
/* When debugging it can be useful if every register is set to a known
value. Otherwise code space can be saved by just setting the registers
@@ -178,7 +178,7 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE
}
#endif
- *pxTopOfStack = ( portSTACK_TYPE ) pvParameters; /* R1 */
+ *pxTopOfStack = ( StackType_t ) pvParameters; /* R1 */
pxTopOfStack--;
*pxTopOfStack = portINITIAL_FPSW;
pxTopOfStack--;
@@ -190,7 +190,7 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE
}
/*-----------------------------------------------------------*/
-portBASE_TYPE xPortStartScheduler( void )
+BaseType_t xPortStartScheduler( void )
{
extern void vApplicationSetupTimerInterrupt( void );