]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/ARM7_LPC2129_IAR/serial/serialISR.s79
Add FreeRTOS-Plus directory.
[freertos] / FreeRTOS / Demo / ARM7_LPC2129_IAR / serial / serialISR.s79
1                 RSEG ICODE:CODE\r
2                 CODE32\r
3 \r
4                 EXTERN vSerialISR\r
5                 PUBLIC vSerialISREntry\r
6 \r
7 ; Wrapper for the serial port 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 vSerialISREntry:\r
14 \r
15         portSAVE_CONTEXT                        ; Save the context of the current task.\r
16 \r
17         bl      vSerialISR                              ; 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