-
Notifications
You must be signed in to change notification settings - Fork 877
Closed
Description
Hi,
pwm_audio component is no longer compatible with esp-idf master. There are few changes in timg_dev_t
structure that need to be updated.
/home/chegewara/demos/esp-iot-solution/components/audio/pwm_audio/pwm_audio.c: In function 'timer_group_isr':
/home/chegewara/demos/esp-iot-solution/components/audio/pwm_audio/pwm_audio.c:267:27: error: 'timg_dev_t' {aka 'struct <anonymous>'} has no member named 'int_st'
if ((handle->timg_dev)->int_st.val & BIT(handle->config.timer_num)) {
^~
/home/chegewara/demos/esp-iot-solution/components/audio/pwm_audio/pwm_audio.c:268:27: error: 'timg_dev_t' {aka 'struct <anonymous>'} has no member named 'int_clr'
(handle->timg_dev)->int_clr.val |= (1UL << handle->config.timer_num);
^~
/home/chegewara/demos/esp-iot-solution/components/audio/pwm_audio/pwm_audio.c:273:65: error: 'timg_txconfig_reg_t' {aka 'volatile union <anonymous>'} has no member named 'alarm_en'; did you mean 'tx_alarm_en'?
handle->timg_dev->hw_timer[handle->config.timer_num].config.alarm_en = TIMER_ALARM_EN;
^~~~~~~~
tx_alarm_en
/home/chegewara/demos/esp-iot-solution/components/audio/pwm_audio/pwm_audio.c: In function 'pwm_audio_set_param':
/home/chegewara/demos/esp-iot-solution/components/audio/pwm_audio/pwm_audio.c:560:84: error: 'timg_txconfig_reg_t' {aka 'volatile union <anonymous>'} has no member named 'divider'; did you mean 'tx_divider'?
uint32_t divider = handle->timg_dev->hw_timer[handle->config.timer_num].config.divider;
^~~~~~~
tx_divider
/home/chegewara/demos/esp-iot-solution/components/audio/pwm_audio/pwm_audio.c: In function 'pwm_audio_set_sample_rate':
/home/chegewara/demos/esp-iot-solution/components/audio/pwm_audio/pwm_audio.c:575:84: error: 'timg_txconfig_reg_t' {aka 'volatile union <anonymous>'} has no member named 'divider'; did you mean 'tx_divider'?
uint32_t divider = handle->timg_dev->hw_timer[handle->config.timer_num].config.divider;
^~~~~~~
tx_divider
/home/chegewara/demos/esp-iot-solution/components/audio/pwm_audio/pwm_audio.c: In function 'pwm_audio_start':
/home/chegewara/demos/esp-iot-solution/components/audio/pwm_audio/pwm_audio.c:754:21: error: 'timg_dev_t' {aka 'struct <anonymous>'} has no member named 'int_ena'
handle->timg_dev->int_ena.val |= BIT(handle->config.timer_num);
^~
/home/chegewara/demos/esp-iot-solution/components/audio/pwm_audio/pwm_audio.c:755:64: error: 'timg_txconfig_reg_t' {aka 'volatile union <anonymous>'} has no member named 'enable'
handle->timg_dev->hw_timer[handle->config.timer_num].config.enable = 1;
^
/home/chegewara/demos/esp-iot-solution/components/audio/pwm_audio/pwm_audio.c:756:65: error: 'timg_txconfig_reg_t' {aka 'volatile union <anonymous>'} has no member named 'alarm_en'; did you mean 'tx_alarm_en'?
handle->timg_dev->hw_timer[handle->config.timer_num].config.alarm_en = TIMER_ALARM_EN; /** Make sure the interrupt is enabled*/
^~~~~~~~
tx_alarm_en
/home/chegewara/demos/esp-iot-solution/components/audio/pwm_audio/pwm_audio.c:757:65: error: 'timg_txconfig_reg_t' {aka 'volatile union <anonymous>'} has no member named 'level_int_en'; did you mean 'tx_level_int_en'?
handle->timg_dev->hw_timer[handle->config.timer_num].config.level_int_en = 1;
^~~~~~~~~~~~
tx_level_int_en
/home/chegewara/demos/esp-iot-solution/components/audio/pwm_audio/pwm_audio.c: In function 'pwm_audio_stop':
/home/chegewara/demos/esp-iot-solution/components/audio/pwm_audio/pwm_audio.c:773:64: error: 'timg_txconfig_reg_t' {aka 'volatile union <anonymous>'} has no member named 'enable'
handle->timg_dev->hw_timer[handle->config.timer_num].config.enable = 0;
^
/home/chegewara/demos/esp-iot-solution/components/audio/pwm_audio/pwm_audio.c:774:21: error: 'timg_dev_t' {aka 'struct <anonymous>'} has no member named 'int_ena'
handle->timg_dev->int_ena.val &= (~BIT(handle->config.timer_num));
^~
/home/chegewara/demos/esp-iot-solution/components/audio/pwm_audio/pwm_audio.c:775:65: error: 'timg_txconfig_reg_t' {aka 'volatile union <anonymous>'} has no member named 'level_int_en'; did you mean 'tx_level_int_en'?
handle->timg_dev->hw_timer[handle->config.timer_num].config.level_int_en = 0;
^~~~~~~~~~~~
tx_level_int_en
Metadata
Metadata
Assignees
Labels
No labels