mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-27 02:16:51 +00:00
Merge branch 'feature/i2s_support_mclk_input' into 'master'
feat(i2s): supported external clock source input Closes IDF-7889 See merge request espressif/esp-idf!24942
This commit is contained in:
@@ -217,6 +217,9 @@ static inline void i2s_ll_tx_clk_set_src(i2s_dev_t *hw, i2s_clock_src_t src)
|
||||
case I2S_CLK_SRC_PLL_160M:
|
||||
PCR.i2s_tx_clkm_conf.i2s_tx_clkm_sel = 2;
|
||||
break;
|
||||
case I2S_CLK_SRC_EXTERNAL:
|
||||
PCR.i2s_tx_clkm_conf.i2s_tx_clkm_sel = 3;
|
||||
break;
|
||||
default:
|
||||
HAL_ASSERT(false && "unsupported clock source");
|
||||
break;
|
||||
@@ -240,6 +243,9 @@ static inline void i2s_ll_rx_clk_set_src(i2s_dev_t *hw, i2s_clock_src_t src)
|
||||
case I2S_CLK_SRC_PLL_160M:
|
||||
PCR.i2s_rx_clkm_conf.i2s_rx_clkm_sel = 2;
|
||||
break;
|
||||
case I2S_CLK_SRC_EXTERNAL:
|
||||
PCR.i2s_rx_clkm_conf.i2s_rx_clkm_sel = 3;
|
||||
break;
|
||||
default:
|
||||
HAL_ASSERT(false && "unsupported clock source");
|
||||
break;
|
||||
|
Reference in New Issue
Block a user