mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-13 00:38:54 +00:00
On riscv core, core cycle counter counts the clock cycles only when core is active (not sleeping).
In spi_slave/sender example, it uses ccount (core cycle counter) to do a simple debounce.
Therefore, when using spi_slave/sender and spi_slave/receiver, program will be stuck.
This commit fix this issue by using esp_timer
(cherry picked from commit afe3bfe19f)