Merge branch 'feat/parlio_tx_support_psram_buffer_v5.1' into 'release/v5.1'

fix(parlio_tx): fixed errors in the first transfer (v5.1)

See merge request espressif/esp-idf!33359
This commit is contained in:
morris
2024-09-12 09:43:19 +08:00

View File

@@ -250,7 +250,8 @@ static esp_err_t parlio_select_periph_clock(parlio_tx_unit_t *tx_unit, const par
ESP_RETURN_ON_ERROR(ret, TAG, "create NO_LIGHT_SLEEP lock failed"); ESP_RETURN_ON_ERROR(ret, TAG, "create NO_LIGHT_SLEEP lock failed");
} }
#endif #endif
// turn on the tx module clock to sync the register configuration to the module
parlio_ll_tx_enable_clock(hal->regs, true);
parlio_ll_tx_set_clock_source(hal->regs, clk_src); parlio_ll_tx_set_clock_source(hal->regs, clk_src);
// set clock division, round up // set clock division, round up
uint32_t div = (periph_src_clk_hz + config->output_clk_freq_hz - 1) / config->output_clk_freq_hz; uint32_t div = (periph_src_clk_hz + config->output_clk_freq_hz - 1) / config->output_clk_freq_hz;