]> begriffs open source - cmsis-freertos/blob - Demo/ARM7_AT91SAM7S64_IAR/USB/USB_ISR.s79
Update README.md - branch main is now the base branch
[cmsis-freertos] / Demo / ARM7_AT91SAM7S64_IAR / USB / USB_ISR.s79
1                 RSEG ICODE:CODE
2                 CODE32
3
4                 EXTERN vUSB_ISR
5                 PUBLIC vUSBISREntry
6
7 ; Wrapper for the USB interrupt service routine.  This can cause a
8 ; context switch so requires an assembly wrapper.
9
10 ; Defines the portSAVE_CONTEXT and portRESTORE_CONTEXT macros.
11 #include "ISR_Support.h"
12
13 vUSBISREntry:
14
15         portSAVE_CONTEXT                        ; Save the context of the current task.
16
17         bl      vUSB_ISR                                ; Call the ISR routine.
18
19         portRESTORE_CONTEXT                     ; Restore the context of the current task -
20                                                                 ; which may be different to the task that
21                                                                 ; was interrupted.
22
23                 END
24