]> begriffs open source - cmsis-freertos/blob - Demo/ARM7_AT91SAM7S64_IAR/serial/serialISR.s79
Update cmsis_os2.c
[cmsis-freertos] / Demo / ARM7_AT91SAM7S64_IAR / serial / serialISR.s79
1                 RSEG ICODE:CODE
2                 CODE32
3
4                 EXTERN vSerialISR
5                 PUBLIC vSerialISREntry
6
7 ; Wrapper for the serial port 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 vSerialISREntry:
14
15         portSAVE_CONTEXT                        ; Save the context of the current task.
16
17         bl      vSerialISR                              ; 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