zaltora wrote:
Well i have many tasks:
Read buttons
Refresh SPI screen
Read i2c sensor
Read one_wire sensor
Wifi transmittion
Control a motor (pwm)
I use already FRC1and FRC2 timer for little periodic task.
I want reduce task time to read sensors more often. FreeRTOS is based on a timer to manage interruptions of these tick. I doubt that you can not configure it.
And maybe why not configure it for a 100 ms tick for a future project. I do not know what performance we lose or we win when we change these ticks.
For buttons you can use I/O interruption, besides you can switch task manually by calling taskYIELD() and some other ways. Even in Linux the HZ is often set to 100, to make the OS response more quickly, they use interrupts and some other ways (hrtimer is a good way, but may not supported by RTOS). I mean you may reach your demand by designing a proper architecture, not only by increasing the HZ(this will cost more CPU to do task switching).
If you really want to config HZ, you may need to rebuilt the libfreertos.a, party of the source is localed in RTOS_SDK/third_party.
becuase 8266_RTOS is not fully open-source, maybe it is not possible to configure the HZ.Statistics: Posted by tobewinner — Tue Jun 14, 2016 4:38 pm
]]>