-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Hook function after xTaskResumeAll in IDLE task #349
Comments
Hi Judd, Could the application developer use |
Hi Jeff, In my case, The idea is to split It's possible to move the post processing to |
Typically, after waking from tickless idle, another task is ready to execute. In that case, Can you give an example of what might be done in |
Let's consider a TDD communication system, which requires accurate timing control. Assume that radio operation is started by hardware timer running at tens of mega hertz. When wakeup, typically only radio activity is started, and after
|
In the case you describe, where only the idle task is ready to execute upon wakeup, and if the idle task is where you want to put this work, then the existing idle hook seems to be the best fit. If you still want to propose this new feature, you can leave the feature request active so over time others from the community can comment or perhaps somebody from FreeRTOS. |
It's possible to use the existing idle hook, but not the the best solution in my opinion: post processing after OS resumed is called before suspending both visually and actually.
|
* Break from potentially infinite loops in connection sharing demo * Use QoS1 subscription for resilience against network disconnect Co-authored-by: Oscar Michael Abrina <[email protected]>
Is your feature request related to a problem? Please describe.
On ARM Cortex-M SoC (not sure for other systems),
for tickless idle feature, developers can define generally one hook and three functions:
In
PostSleepProcessing
, the whole system continues its processing, and some OS APIs are quite likely to be called here. But, at this moment, OS is suspended, only a small portion ofAPIs are allowed.
Describe the solution you'd like
Suggest to add a hook after
xTaskResumeAll()
inprvIdleTask
:FreeRTOS-Kernel/tasks.c
Line 3537 in bad8f01
Describe alternatives you've considered
Use
xSemaphoreGiveFromISR
inPostSleepProcessing
to notify a another task.This is not convenient.
The text was updated successfully, but these errors were encountered: