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] [August 2010 Threads] PIC32 - vApplicationTickHookPosted by j-b on August 9, 2010 (I am a new user) vApplicationtickHook is executed from within an ISR. If i need to send a message to a task I can use a queue for that. I should call "xQueueSendToBackFromISR". If a context switch is needed after the ISR, what should I do ? Is is safe to call "portEND_SWITCHING_ISR", even if I am "in the middle" of the timer ISR ?
Same question if I want to call xTaskResumeFromISR from vApplicationTickHook.
RE: PIC32 - vApplicationTickHookPosted by MEdwards on August 9, 2010 vApplicationTickHook is called before the tick interrupt chooses the next task to run, so it is not necessary to call portEND_SWITCHING_ISR. If vApplicationTickHook unblocks a task and that task has high priority then it will get chosen to run anyway.
RE: PIC32 - vApplicationTickHookPosted by j-b on August 9, 2010 Thanks
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|