how to change freerots tick period?

karlno
Posts: 5
Joined: Mon Dec 21, 2015 9:26 pm

how to change freerots tick period?

Postby karlno » Fri Apr 22, 2016 8:10 pm

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并没有改变,请问我该怎么做?

donghengqaz
Posts: 5
Joined: Tue Jun 13, 2017 11:40 am

Re: how to change freerots tick period?

Postby donghengqaz » Wed Jul 11, 2018 6:05 pm

你只是改了FreeRTOS 的tick周期,并没有修改硬件定时器的周期,所以你只要修改硬件定时器的tick就可以了。

Who is online

Users browsing this forum: No registered users and 11 guests