mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-07-15 08:32:42 +08:00

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.
README esp-idf compile and 'AR' user program as target library 'libmain.a', so we should not use library which is named 'libmain.a'. We use 'libcore.a' instead of it. As I konwn, you can do following: 1. rename libmain.a to libcore.a 2. change text "*libmain.a:spi_flash.o(.literal .text .literal.* .text.*)" to "*libcore.a:spi_flash.o(.literal .text .literal.* .text.*)" in file 'eagle.app.v6.common.ld'