]> git.sur5r.net Git - freertos/blobdiff - Demo/RX600_RX62N-RSK_GNURX/RTOSDemo/IntQueueTimer.c
Update the RX GCC port - optimised build is working, unoptimised not.
[freertos] / Demo / RX600_RX62N-RSK_GNURX / RTOSDemo / IntQueueTimer.c
index 963e3623d42a4f194896a6fb1d344866a2ed22d4..31538a17cf4fe2b87dfe9148fae9b12ec758918f 100644 (file)
 #define tmrTIMER_0_1_FREQUENCY ( 2000UL )\r
 #define tmrTIMER_2_3_FREQUENCY ( 2001UL )\r
 \r
-/* Handlers for the two timers used. */\r
-void vT0_1InterruptHandler( void ) __attribute((naked));\r
-void vT2_3InterruptHandler( void ) __attribute((naked));\r
+/* Wrappers and handlers for the two timers used.  See the documentation page\r
+for this port on http://www.FreeRTOS.org for more information on writing\r
+interrupt handlers. */\r
+void vT0_1_ISR_Wrapper( void ) __attribute((naked));\r
+void vT2_3_ISR_Wrapper( void ) __attribute((naked));\r
 \r
 void vInitialiseTimerForIntQueueTest( void )\r
 {\r
@@ -129,30 +131,39 @@ void vInitialiseTimerForIntQueueTest( void )
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-void vT0_1InterruptHandler( void )\r
+void vT0_1_ISR_Wrapper( void )\r
 {\r
        /* This is a naked function.  This macro saves registers then re-enables\r
-       interrupts. */\r
+       interrupts.  See the documentation for htis port on http://www.FreeRTOS.org\r
+       for more information on writing interrupts. */\r
        portENTER_INTERRUPT();\r
-       \r
-       portYIELD_FROM_ISR( xFirstTimerHandler() );\r
-       \r
+\r
+       /* Call the handler that is part of the common code - this is where the\r
+       non-portable code ends and the actual test is performed. */\r
+       portYIELD_FROM_ISR( xFirstTimerHandler() );     \r
+\r
        /* Restore registers, then return. */\r
        portEXIT_INTERRUPT();\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-void vT2_3InterruptHandler( void )\r
+void vT2_3_ISR_Wrapper( void )\r
 {\r
        /* This is a naked function.  This macro saves registers then re-enables\r
-       interrupts. */\r
+       interrupts.  See the documentation for htis port on http://www.FreeRTOS.org\r
+       for more information on writing interrupts. */\r
        portENTER_INTERRUPT();\r
-       \r
-       portYIELD_FROM_ISR( xSecondTimerHandler() );\r
-       \r
+\r
+       /* Call the handler that is part of the common code - this is where the\r
+       non-portable code ends and the actual test is performed. */\r
+       portYIELD_FROM_ISR( xSecondTimerHandler() );    \r
+\r
        /* Restore registers, then return. */\r
        portEXIT_INTERRUPT();\r
 }\r
+/*-----------------------------------------------------------*/\r
+\r
+\r
 \r
 \r
 \r