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 2011 Threads] Increase the tick resolution?Posted by kuku2010 on August 24, 2011 My understanding is that vTaskDelay( 1 ) is based on the resolution of tick (1ms).
Can I increase the resolution to 0.1ms?
If so, how?
I'd like to have a small/critical task at 0.1ms resolution, but all the others at 1ms or higher
Thanks for any input!
RE: Increase the tick resolution?Posted by MEdwards on August 24, 2011 The tick frequency is set by configTICK_RATE_HZ in FreeRTOSConfig.h. If you set it faster than 1KHz then the portTICK_RATE_MS constant will not work, so the demo applications will also not work. The demo applications are separate to the kernel though. It will not prevent the kernel working, but will be extremely inefficient as you will spend a large amount of time in the tick interrupt and pointlessly switching tasks. You are better configuring a separate timer to generate an interrupt at that frequency if you need it.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|