5 Commits

Author SHA1 Message Date
205817ea2e fix(esp_timer): fix delete timer and timer processs later
Make sure that FreeRTOS deletes timer firstly and then API "esp_timer_delete" free the source.
2019-09-16 16:25:45 +08:00
aa965627d1 feat(esp8266): add new power management method 2019-08-30 20:58:32 +08:00
b061230056 feat(esp8266): refactor CCOMPARE timer and system time by microseconds
old: CCOMPARE timer triggers when CCOUNT increase to equal to CCOMPARE, then ISR will increase integer of "_xt_tick_divisor"
     to CCOMPARE and wait for next interrupt triggering

now: CCOMPARE timer triggers when CCOUNT increase to equal to CCOMPARE, then ISR will reset CCOUNT to be 0 and reset CCOMPARE
     to be integer of "_xt_tick_divisor", then wait for next interrupt triggering

Using the new method, we may get the CCOUNT value without considing if it has overflowed.
System running microseconds = g_os_ticks * microseconds per tick + CCOUNT.
2019-08-19 14:03:20 +08:00
7fbb68f4ea feat(esp8266): Add API to get microseconds 2019-03-12 09:39:07 +08:00
f537808a9a feat(esp8266): Add esp_timer function
This function is based on FreeRTOS timer not real time hard timer.
Adding this just for some user passing compiling.
2018-09-25 20:20:00 +08:00