ESP8266 Developer Zone The Official ESP8266 Forum 2015-09-18T10:47:52+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=1051 2015-09-18T10:47:52+08:00 2015-09-18T10:47:52+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1051&p=3742#p3742 <![CDATA[Re: Timer callback]]>
Yes, it should not take longer than 10 ms..

Statistics: Posted by ESP_Faye — Fri Sep 18, 2015 10:47 am


]]>
2015-09-13T18:05:21+08:00 2015-09-13T18:05:21+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1051&p=3679#p3679 <![CDATA[Re: Timer callback]]>
Your code should never run more than a few milliseconds before returning to the SDK code, anyway, regardless. It's not specific for timers.

Statistics: Posted by eriksl — Sun Sep 13, 2015 6:05 pm


]]>
2015-09-05T23:40:00+08:00 2015-09-05T23:40:00+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1051&p=3576#p3576 <![CDATA[Re: Timer callback]]>
Neil

Statistics: Posted by kolban — Sat Sep 05, 2015 11:40 pm


]]>
2015-09-02T17:04:36+08:00 2015-09-02T17:04:36+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1051&p=3533#p3533 <![CDATA[Timer callback]]>
Can you explain this in more detail ??
Last SDK info:
"Please do not call "os_delay_us" or "while" or "for" to occupy CPU more than 10 ms in timer callback."


Does it mean:
1. That the whole function can not be longer than 10 milliseconds?
2. while (counter--); this is wrong (I suppose that the function is uninterruptible) ?
...........and while (counter--) { func, (plece for interupt??) func etc} is also wrong ???

Most of the examples on the Web, eg. sample DS1820 uses the delay (even to 1 second ) , all in timer callback.
I noticed that it has a tremendous impact on the sending TCP (err -8 abort)

Statistics: Posted by mariuszb — Wed Sep 02, 2015 5:04 pm


]]>