mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-23 06:51:58 -04:00
25 lines
587 B
Plaintext
25 lines
587 B
Plaintext
RSEG ICODE:CODE
|
|
CODE32
|
|
|
|
EXTERN vSerialISR
|
|
PUBLIC vSerialISREntry
|
|
|
|
; Wrapper for the serial port interrupt service routine. This can cause a
|
|
; context switch so requires an assembly wrapper.
|
|
|
|
; Defines the portSAVE_CONTEXT and portRESTORE_CONTEXT macros.
|
|
#include "ISR_Support.h"
|
|
|
|
vSerialISREntry:
|
|
|
|
portSAVE_CONTEXT ; Save the context of the current task.
|
|
|
|
bl vSerialISR ; Call the ISR routine.
|
|
|
|
portRESTORE_CONTEXT ; Restore the context of the current task -
|
|
; which may be different to the task that
|
|
; was interrupted.
|
|
|
|
END
|
|
|