]> 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 d1193a90f6b8aebe1d88a8676f0e30085cb6762b..66fed90bbefac4132d025091a66cc66db645b47b 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V9.0.0rc1 - Copyright (C) 2016 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
@@ -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