i2s: support i2s on esp32h2

This commit is contained in:
laokaiyao
2023-01-09 14:39:24 +08:00
parent 43f5f3d56d
commit c79187fdeb
36 changed files with 1315 additions and 63 deletions

View File

@@ -936,6 +936,8 @@ static inline uint32_t i2s_ll_tx_get_pdm_fs(i2s_dev_t *hw)
*/
static inline void i2s_ll_rx_enable_pdm(i2s_dev_t *hw, bool pdm_enable)
{
// Due to the lack of `PDM to PCM` module on ESP32-C3, PDM RX is not available
HAL_ASSERT(!pdm_enable);
hw->rx_conf.rx_pdm_en = 0;
hw->rx_conf.rx_tdm_en = 1;
}