esp32 音频版编译出错
Posted: Wed Dec 28, 2022 5:08 am
'BOARD_PA_GAIN' undeclared (first use in this function)
D:/Espressif/esp/esp-adf/components/audio_hal/driver/zl38063/zl38063.c:43:22: error: 'BOARD_PA_GAIN' undeclared (first use in this function)
.board_pa_gain = BOARD_PA_GAIN, \
^~~~~~~~~~~~~
D:/Espressif/esp/esp-adf/components/audio_hal/driver/zl38063/zl38063.c:96:41: note: in expansion of macro 'ZL38063_DAC_VOL_CFG_DEFAULT'
codec_dac_volume_config_t vol_cfg = ZL38063_DAC_VOL_CFG_DEFAULT();
^~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Espressif/esp/esp-adf/components/audio_hal/driver/zl38063/zl38063.c:43:22: note: each undeclared identifier is reported only once for each function it appears in
.board_pa_gain = BOARD_PA_GAIN, \
^~~~~~~~~~~~~
D:/Espressif/esp/esp-adf/components/audio_hal/driver/zl38063/zl38063.c:96:41: note: in expansion of macro 'ZL38063_DAC_VOL_CFG_DEFAULT'
codec_dac_volume_config_t vol_cfg = ZL38063_DAC_VOL_CFG_DEFAULT();
^~~~~~~~~~~~~~~~~~~~~~~~~~~
[1317/1494] Building C object esp-idf/wifi_provisioning/CMakeFiles/__idf_wifi_provisioning.dir/src/scheme_ble.c.obj
ninja: build stopped: subcommand
请问这个问题怎么解决?
D:/Espressif/esp/esp-adf/components/audio_hal/driver/zl38063/zl38063.c:43:22: error: 'BOARD_PA_GAIN' undeclared (first use in this function)
.board_pa_gain = BOARD_PA_GAIN, \
^~~~~~~~~~~~~
D:/Espressif/esp/esp-adf/components/audio_hal/driver/zl38063/zl38063.c:96:41: note: in expansion of macro 'ZL38063_DAC_VOL_CFG_DEFAULT'
codec_dac_volume_config_t vol_cfg = ZL38063_DAC_VOL_CFG_DEFAULT();
^~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Espressif/esp/esp-adf/components/audio_hal/driver/zl38063/zl38063.c:43:22: note: each undeclared identifier is reported only once for each function it appears in
.board_pa_gain = BOARD_PA_GAIN, \
^~~~~~~~~~~~~
D:/Espressif/esp/esp-adf/components/audio_hal/driver/zl38063/zl38063.c:96:41: note: in expansion of macro 'ZL38063_DAC_VOL_CFG_DEFAULT'
codec_dac_volume_config_t vol_cfg = ZL38063_DAC_VOL_CFG_DEFAULT();
^~~~~~~~~~~~~~~~~~~~~~~~~~~
[1317/1494] Building C object esp-idf/wifi_provisioning/CMakeFiles/__idf_wifi_provisioning.dir/src/scheme_ble.c.obj
ninja: build stopped: subcommand
请问这个问题怎么解决?