mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-21 16:55:33 +00:00
feat(i2s): supported external clock source input
This commit is contained in:

committed by
Kevin (Lao Kaiyao)

parent
080087a9a0
commit
4b6d71447c
@@ -207,6 +207,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:
|
||||
hw->tx_clkm_conf.tx_clk_sel = 2;
|
||||
break;
|
||||
case I2S_CLK_SRC_EXTERNAL:
|
||||
hw->tx_clkm_conf.tx_clk_sel = 3;
|
||||
break;
|
||||
default:
|
||||
HAL_ASSERT(false && "unsupported clock source");
|
||||
break;
|
||||
@@ -229,6 +232,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:
|
||||
hw->rx_clkm_conf.rx_clk_sel = 2;
|
||||
break;
|
||||
case I2S_CLK_SRC_EXTERNAL:
|
||||
hw->rx_clkm_conf.rx_clk_sel = 3;
|
||||
break;
|
||||
default:
|
||||
HAL_ASSERT(false && "unsupported clock source");
|
||||
break;
|
||||
|
Reference in New Issue
Block a user