编译SDF工程编译报错未定义

cylnpy
Posts: 9
Joined: Mon Mar 25, 2024 2:26 am

编译SDF工程编译报错未定义

Postby cylnpy » Thu Mar 28, 2024 3:41 am

调用例程头文件中xSemaphoreHandle audio_hal_lock和timer_callback编译报错未定义,这是什么问题
F:/embedded/esp-idf/esp-adf/components/audio_hal/include/audio_hal.h:150:5: error: unknown type name 'xSemaphoreHandle'
150 | xSemaphoreHandle audio_hal_lock;
/*!< semaphore of codec */
| ^~~~~~~~~~~~~~~~
In file included from F:/embedded/esp-idf/esp-adf/components/audio_board/lyrat_mini_v1_1/board.h:31:
F:/embedded/esp-idf/esp-adf/components/esp_peripherals/include/esp_peripherals.h:78:32: error:
unknown type name 'xTimerHandle'; did you mean 'TimerHandle_t'?
78 | typedef void (*timer_callback)(xTimerHandle tmr);
| ^~~~~~~~~~~~
| TimerHandle_t
F:/embedded/esp-idf/esp-adf/components/esp_peripherals/include/esp_peripherals.h:371:88: error: unknown type name 'timer_callback'
371 | esp_err_t esp_periph_start_timer(esp_periph_handle_t periph, TickType_t interval_tick,
timer_callback callback);

Who is online

Users browsing this forum: No registered users and 74 guests