]> git.sur5r.net Git - freertos/blobdiff - Demo/ARM7_AT91SAM7X256_Eclipse/RTOSDemo/USB/USB_ISR.c
Update to use the latest Yagarto and change the C handler part of the interrupt routi...
[freertos] / Demo / ARM7_AT91SAM7X256_Eclipse / RTOSDemo / USB / USB_ISR.c
index 1f64aec6377a6c3095f7d3f48e24b71332f460e8..f2df80edaf8d1dedc733103347a795f5681b4a9d 100644 (file)
@@ -83,7 +83,7 @@ void vUSB_ISR_Wrapper( void ) __attribute__((naked));
  * Actual ISR handler.  This must be separate from the entry point as the stack\r
  * is used.\r
  */\r
-void vUSB_ISR_Handler( void );\r
+void vUSB_ISR_Handler( void ) __attribute__((noinline));\r
 \r
 /*-----------------------------------------------------------*/\r
 \r
@@ -182,7 +182,7 @@ void vUSB_ISR_Wrapper( void )
 \r
        /* Call the handler itself.  This must be a separate function as it uses\r
        the stack. */\r
-       vUSB_ISR_Handler();\r
+       __asm volatile ("bl vUSB_ISR_Handler");\r
 \r
        /* Restore the context of the task that is going to \r
        execute next. This might not be the same as the originally \r