-
Notifications
You must be signed in to change notification settings - Fork 1.6k
os_timer_arm_us alternative (GIT8266O-548) #971
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
Comments
Hi, The us resolution is a bit hard due the continuous (heavy) interference from the wifi driver, but a solution could exist. Could you describe better your needs ? Regards. |
I'm trying to port freemodbus for ESP8266_RTOS_SDK. This need a timer with a granularity of 50 uS. |
I think that you are experiencing two kind of "non timer related issues". The first issue is that the wifi driver takes possession of the cpu by disabling interrupts for a very long time. See this two issues for info: The only workaround I found is to use the NMI by setting the wdev counter (see the the pwm driver for reference) and avoid the use of any freertos API from the handler. The second issue is that you need to leave enough cpu time to allow the work of the wifi driver. I've no precise data about that. I hope this information will be useful to you EDIT: The info related to the WPS is rather old and it is no longer true. I think that the update 62cc505 changed it at all (I'm facing again the situation in these days). |
I need a timer call at uS resolution.
Software timer not allow this resolution and hardware timer makes crazy things with FreeRTOS.
os_timer_arm_us is not supported by ESP8266_RTOS_SDK .
There is an alternative?
The text was updated successfully, but these errors were encountered: