feat(i2s): support to lazy constitute full-duplex mode

This commit is contained in:
laokaiyao
2025-10-13 17:59:58 +08:00
committed by Kevin (Lao Kaiyao)
parent 42e7e40f2f
commit 8d17bf99c6
9 changed files with 388 additions and 86 deletions
@@ -299,6 +299,8 @@ typedef struct {
* @brief Initialize I2S channel to standard mode
* @note Only allowed to be called when the channel state is REGISTERED, (i.e., channel has been allocated, but not initialized)
* and the state will be updated to READY if initialization success, otherwise the state will return to REGISTERED.
* @note When initialize the STD mode with a same configuration as another channel on a same port,
* these two channels can constitude as full-duplex mode automatically
*
* @param[in] handle I2S channel handler
* @param[in] std_cfg Configurations for standard mode, including clock, slot and GPIO