]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/GCC/PPC440_Xilinx/port.c
Update version number ready for release.
[freertos] / FreeRTOS / Source / portable / GCC / PPC440_Xilinx / port.c
index 0fbcc54c5237e86d4e378481e01100a7e2a63825..88635d5cea48d07541eca13b9ac7b89102a507af 100644 (file)
@@ -1,5 +1,6 @@
 /*\r
-    FreeRTOS V7.5.1 - Copyright (C) 2013 Real Time Engineers Ltd.\r
+    FreeRTOS V8.0.1 - Copyright (C) 2014 Real Time Engineers Ltd. \r
+    All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
 \r
     the terms of the GNU General Public License (version 2) as published by the\r
     Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.\r
 \r
-    >>! NOTE: The modification to the GPL is included to allow you to distribute\r
-    >>! a combined work that includes FreeRTOS without being obliged to provide\r
-    >>! the source code for proprietary components outside of the FreeRTOS\r
-    >>! kernel.\r
+    >>!   NOTE: The modification to the GPL is included to allow you to     !<<\r
+    >>!   distribute a combined work that includes FreeRTOS without being   !<<\r
+    >>!   obliged to provide the source code for proprietary components     !<<\r
+    >>!   outside of the FreeRTOS kernel.                                   !<<\r
 \r
     FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
     WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
@@ -133,7 +134,7 @@ static XIntc xInterruptController;
  *\r
  * See the header file portable.h.\r
  */\r
-portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters )\r
+StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )\r
 {\r
        /* Place a known value at the bottom of the stack for debugging. */\r
        *pxTopOfStack = 0xDEADBEEF;\r
@@ -143,15 +144,15 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE
        pxTopOfStack -= 20;     /* Previous backchain and LR, R31 to R4 inclusive. */\r
 \r
        /* Parameters in R13. */\r
-       *pxTopOfStack = ( portSTACK_TYPE ) &_SDA_BASE_; /* address of the first small data area */\r
+       *pxTopOfStack = ( StackType_t ) &_SDA_BASE_; /* address of the first small data area */\r
        pxTopOfStack -= 10;\r
 \r
        /* Parameters in R3. */\r
-       *pxTopOfStack = ( portSTACK_TYPE ) pvParameters;\r
+       *pxTopOfStack = ( StackType_t ) pvParameters;\r
        pxTopOfStack--;\r
 \r
        /* Parameters in R2. */\r
-       *pxTopOfStack = ( portSTACK_TYPE ) &_SDA2_BASE_;        /* address of the second small data area */\r
+       *pxTopOfStack = ( StackType_t ) &_SDA2_BASE_;   /* address of the second small data area */\r
        pxTopOfStack--;\r
 \r
        /* R1 is the stack pointer so is omitted. */\r
@@ -166,13 +167,13 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE
        pxTopOfStack--;\r
        *pxTopOfStack = 0x00000000UL;   /* CTR. */\r
        pxTopOfStack--;\r
-       *pxTopOfStack = ( portSTACK_TYPE ) vPortEndScheduler;   /* LR. */\r
+       *pxTopOfStack = ( StackType_t ) vPortEndScheduler;      /* LR. */\r
        pxTopOfStack--;\r
-       *pxTopOfStack = ( portSTACK_TYPE ) pxCode; /* SRR0. */\r
+       *pxTopOfStack = ( StackType_t ) pxCode; /* SRR0. */\r
        pxTopOfStack--;\r
        *pxTopOfStack = portINITIAL_MSR;/* SRR1. */\r
        pxTopOfStack--;\r
-       *pxTopOfStack = ( portSTACK_TYPE ) vPortEndScheduler;/* Next LR. */\r
+       *pxTopOfStack = ( StackType_t ) vPortEndScheduler;/* Next LR. */\r
        pxTopOfStack--;\r
        *pxTopOfStack = 0x00000000UL;/* Backchain. */\r
 \r
@@ -180,7 +181,7 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-portBASE_TYPE xPortStartScheduler( void )\r
+BaseType_t xPortStartScheduler( void )\r
 {\r
        prvSetupTimerInterrupt();\r
        XExc_RegisterHandler( XEXC_ID_SYSTEM_CALL, ( XExceptionHandler ) vPortYield, ( void * ) 0 );\r
@@ -203,7 +204,7 @@ void vPortEndScheduler( void )
  */\r
 static void prvSetupTimerInterrupt( void )\r
 {\r
-const unsigned long ulInterval = ( ( configCPU_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL );\r
+const uint32_t ulInterval = ( ( configCPU_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL );\r
 \r
        XTime_DECClearInterrupt();\r
        XTime_FITClearInterrupt();\r
@@ -221,8 +222,8 @@ const unsigned long ulInterval = ( ( configCPU_CLOCK_HZ / configTICK_RATE_HZ ) -
 \r
 void vPortISRHandler( void *pvNullDoNotUse )\r
 {\r
-unsigned long ulInterruptStatus, ulInterruptMask = 1UL;\r
-portBASE_TYPE xInterruptNumber;\r
+uint32_t ulInterruptStatus, ulInterruptMask = 1UL;\r
+BaseType_t xInterruptNumber;\r
 XIntc_Config *pxInterruptController;\r
 XIntc_VectorTableEntry *pxTable;\r
 \r
@@ -280,9 +281,9 @@ extern void vPortISRWrapper( void );
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-portBASE_TYPE xPortInstallInterruptHandler( unsigned char ucInterruptID, XInterruptHandler pxHandler, void *pvCallBackRef )\r
+BaseType_t xPortInstallInterruptHandler( uint8_t ucInterruptID, XInterruptHandler pxHandler, void *pvCallBackRef )\r
 {\r
-portBASE_TYPE xReturn = pdFAIL;\r
+BaseType_t xReturn = pdFAIL;\r
 \r
        /* This function is defined here so the scope of xInterruptController can\r
        remain within this file. */\r