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] [December 2009 Threads] Context Switch HookPosted by jdabbs003 on December 8, 2009 I am trying to adapt a vendor printf/sprintf/sscanf library, which is not reentrant. I am looking for a way to set a global pointer to a task specific context value each time a task is switched in. So far, I've thought of extending the port context structure with another pointer (messy) or using a callback hook to set a global pointer everytime a task switch happens (better). Is there an official way or best way to do something like this? Thanks.
RE: Context Switch HookPosted by jdabbs003 on December 8, 2009 Actually, to be clear, what I want is a user global variable that changes with each task switch to a task-specific value, exactly like how pxCurrentTCB works.
Is there a way to do this with FreeRTOS?
RE: Context Switch HookPosted by MEdwards on December 8, 2009 Search through the forum for threads that mention newlib as there is a link to a neat way of doing this with the newlib context pointer.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|