FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [January 2014 Threads]
Hi,
I found that on Cortex M0 or on Cortex M3 GCC ports,
there is no api for portSAVECONTEXT or port RESTORECONTEXT.
I guess the task can handle context switching
without those api's in arm architecture, but what about ISR?
Don't I need to wrap my ISR functions with portSAVECONTEXT
and portRESTROECONTEXT,
if a context switch will occur inside my ISR function?
If so, how should I define my own portSAVECONTEXT
and portRESTORECONTEXT for cortex m series?
Thanks,
GI
No they are not needed. Please read the "Interrupt Service Routines" section of any of the Cortex M0 or M3 documentation pages, and refer to the many examples provided.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.