]> git.sur5r.net Git - freertos/blob - Demo/NEC_V850ES_IAR/serial/serialISR.s85
Renamed to remove the Fx3 from the directory name.
[freertos] / Demo / NEC_V850ES_IAR / serial / serialISR.s85
1                 RSEG ICODE:CODE\r
2 \r
3                 EXTERN vUARTRxISRHandler\r
4                 EXTERN vUARTTxISRHandler                \r
5                 \r
6                 PUBLIC vUARTRxISRWrapper\r
7                 PUBLIC vUARTTxISRWrapper                \r
8 \r
9 ; Wrappers for the serial port interrupt service routines.  These can cause a\r
10 ; context switch so requires an assembly wrapper.\r
11 \r
12 ; Defines the portSAVE_CONTEXT and portRESTORE_CONTEXT macros.\r
13 #include "ISR_Support.h"\r
14 \r
15 vUARTRxISRWrapper:\r
16 \r
17         portSAVE_CONTEXT                                ; Save the context of the current task.\r
18 \r
19         jarl    vUARTRxISRHandler, lp   ; Call the ISR routine.\r
20 \r
21         portRESTORE_CONTEXT                             ; Restore the context of the current task -\r
22                                                                         ; which may be different to the task that\r
23                                                                         ; was interrupted.\r
24 \r
25 vUARTTxISRWrapper:\r
26 \r
27         portSAVE_CONTEXT                                ; Save the context of the current task.\r
28 \r
29         jarl    vUARTTxISRHandler, lp   ; Call the ISR routine.\r
30 \r
31         portRESTORE_CONTEXT                             ; Restore the context of the current task -\r
32                                                                         ; which may be different to the task that\r
33                                                                         ; was interrupted.\r
34 \r
35 \r
36       COMMON INTVEC:CODE:ROOT(2)\r
37       ORG 2c0H\r
38 `??vUARTRxISRWrapper??INTVEC 2c0`:\r
39         JR vUARTRxISRWrapper\r
40 \r
41       COMMON INTVEC:CODE:ROOT(2)\r
42       ORG 2d0H\r
43 `??vUARTTxISRWrapper??INTVEC 2d0`:\r
44         JR vUARTTxISRWrapper\r
45 \r
46         END\r
47 \r