]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_A9_Zynq_ZC702/RTOSDemo/src/FreeRTOS_tick_config.c
Prepare for V9.0.0 release:
[freertos] / FreeRTOS / Demo / CORTEX_A9_Zynq_ZC702 / RTOSDemo / src / FreeRTOS_tick_config.c
index e1f3b49f923e8a88737a9a1025b6422837a0ebcc..66fed90bbefac4132d025091a66cc66db645b47b 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V8.2.3 - Copyright (C) 2015 Real Time Engineers Ltd.\r
+    FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -78,6 +78,7 @@
 #define XSCUTIMER_CLOCK_HZ ( XPAR_CPU_CORTEXA9_0_CPU_CLK_FREQ_HZ / 2UL )\r
 \r
 static XScuTimer xTimer;\r
+XScuGic xInterruptController;  /* Interrupt controller instance */\r
 \r
 /*\r
  * The application must provide a function that configures a peripheral to\r
@@ -87,7 +88,6 @@ static XScuTimer xTimer;
  */\r
 void vConfigureTickInterrupt( void )\r
 {\r
-static XScuGic xInterruptController;   /* Interrupt controller instance */\r
 BaseType_t xStatus;\r
 extern void FreeRTOS_Tick_Handler( void );\r
 XScuTimer_Config *pxTimerConfig;\r
@@ -147,7 +147,14 @@ void vClearTickInterrupt( void )
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-void vApplicationIRQHandler( uint32_t ulICCIAR )\r
+/* This is the callback function which is called by the FreeRTOS Cortex-A port\r
+layer in response to an interrupt.  If the function is called\r
+vApplicationFPUSafeIRQHandler() then it is called after the floating point\r
+registers have been saved.  If the function is called vApplicationIRQHandler()\r
+then it will be called without first having saved the FPU registers.  See\r
+http://www.freertos.org/Using-FreeRTOS-on-Cortex-A-Embedded-Processors.html for\r
+more information */\r
+void vApplicationFPUSafeIRQHandler( uint32_t ulICCIAR )\r
 {\r
 extern const XScuGic_Config XScuGic_ConfigTable[];\r
 static const XScuGic_VectorTableEntry *pxVectorTable = XScuGic_ConfigTable[ XPAR_SCUGIC_SINGLE_DEVICE_ID ].HandlerTable;\r
@@ -155,7 +162,7 @@ uint32_t ulInterruptID;
 const XScuGic_VectorTableEntry *pxVectorEntry;\r
 \r
        /* Re-enable interrupts. */\r
-    __asm ( "cpsie i" );\r
+       __asm ( "cpsie i" );\r
 \r
        /* The ID of the interrupt is obtained by bitwise anding the ICCIAR value\r
        with 0x3FF. */\r