Hi,
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)
Timer callback
Re: Timer callback
Postby eriksl » Sun Sep 13, 2015 6:05 pm
Anyway this has nothing to with timer callback, in the end.
Your code should never run more than a few milliseconds before returning to the SDK code, anyway, regardless. It's not specific for timers.
Your code should never run more than a few milliseconds before returning to the SDK code, anyway, regardless. It's not specific for timers.
Who is online
Users browsing this forum: No registered users and 2 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.