Update to use the latest Yagarto and change the C handler part of the interrupt routines to use the noinline attribute.

This commit is contained in:
Richard Barry 2009-09-18 14:04:40 +00:00
parent 9a76bc39cb
commit 6bdf14c33f
5 changed files with 174 additions and 5 deletions

View 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
* is used.
*/
void vUSB_ISR_Handler( void );
void vUSB_ISR_Handler( void ) __attribute__((noinline));
/*-----------------------------------------------------------*/
@ -182,7 +182,7 @@ void vUSB_ISR_Wrapper( void )
/* Call the handler itself. This must be a separate function as it uses
the stack. */
vUSB_ISR_Handler();
__asm volatile ("bl vUSB_ISR_Handler");
/* Restore the context of the task that is going to
execute next. This might not be the same as the originally