fix(ble): disabled get lc ts for ESP32-C3 and ESP32-S3

(cherry picked from commit c17bf63874)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
This commit is contained in:
Zhou Xiao
2025-08-14 11:14:08 +08:00
parent 1191f4c4f9
commit 1b48a697c4

View File

@@ -242,9 +242,9 @@ extern uint32_t r_ble_lll_timer_current_tick_get(void);
#elif defined(CONFIG_IDF_TARGET_ESP32C2) #elif defined(CONFIG_IDF_TARGET_ESP32C2)
extern uint32_t r_os_cputime_get32(void); extern uint32_t r_os_cputime_get32(void);
#define SPI_OUT_GET_LC_TIME r_os_cputime_get32() #define SPI_OUT_GET_LC_TIME r_os_cputime_get32()
#elif defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S3) // #elif defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S3)
extern uint32_t lld_read_clock_us(void); // extern uint32_t lld_read_clock_us(void);
#define SPI_OUT_GET_LC_TIME lld_read_clock_us() // #define SPI_OUT_GET_LC_TIME lld_read_clock_us()
#else #else
#define SPI_OUT_GET_LC_TIME esp_timer_get_time() #define SPI_OUT_GET_LC_TIME esp_timer_get_time()
#endif #endif