]> git.sur5r.net Git - freertos/blob - Demo/ARM7_AT91SAM7S64_IAR/USB/USB_ISR.s79
Start to re-arrange files to include FreeRTOS+ in main download.
[freertos] / Demo / ARM7_AT91SAM7S64_IAR / USB / USB_ISR.s79
1                 RSEG ICODE:CODE\r
2                 CODE32\r
3 \r
4                 EXTERN vUSB_ISR\r
5                 PUBLIC vUSBISREntry\r
6 \r
7 ; Wrapper for the USB interrupt service routine.  This can cause a\r
8 ; context switch so requires an assembly wrapper.\r
9 \r
10 ; Defines the portSAVE_CONTEXT and portRESTORE_CONTEXT macros.\r
11 #include "ISR_Support.h"\r
12 \r
13 vUSBISREntry:\r
14 \r
15         portSAVE_CONTEXT                        ; Save the context of the current task.\r
16 \r
17         bl      vUSB_ISR                                ; Call the ISR routine.\r
18 \r
19         portRESTORE_CONTEXT                     ; Restore the context of the current task -\r
20                                                                 ; which may be different to the task that\r
21                                                                 ; was interrupted.\r
22 \r
23                 END\r
24 \r