Page 1 of 1

how to change freerots tick period?

Posted: Fri Apr 22, 2016 8:10 pm
by karlno
I working by ESP8266_RTOS_SDK, and I try to modify "configTICK_RATE_HZ" value in the file "FreeRTOSConfig.h",and rebuild the libfreerots.a, but the app not change of task ticks. so, how to change os tick in code ?

我用ESP8266_RTOS_SDK进行代码编译,可以正常工作,但是感觉os的tick太长,默认是10ms调度一次。我尝试修改宏定义configTICK_RATE_HZ,并且重新编译了库文件libfreerots.a,但是程序运行后,tick并没有改变,请问我该怎么做?

Re: how to change freerots tick period?

Posted: Wed Jul 11, 2018 6:05 pm
by donghengqaz
你只是改了FreeRTOS 的tick周期,并没有修改硬件定时器的周期,所以你只要修改硬件定时器的tick就可以了。