mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-18 07:47:18 +00:00
fix(i2s): add check for the minimum sample rate
Closes https://github.com/espressif/esp-idf/issues/15659
This commit is contained in:
@@ -30,6 +30,8 @@ extern "C" {
|
||||
|
||||
#define I2S_LL_BCK_MAX_PRESCALE (64)
|
||||
|
||||
#define I2S_LL_CLK_FRAC_DIV_N_MAX 256 // I2S_MCLK = I2S_SRC_CLK / (N + b/a), the N register is 8 bit-width
|
||||
|
||||
#define I2S_LL_MCLK_DIVIDER_BIT_WIDTH (6)
|
||||
#define I2S_LL_MCLK_DIVIDER_MAX ((1 << I2S_LL_MCLK_DIVIDER_BIT_WIDTH) - 1)
|
||||
|
||||
|
Reference in New Issue
Block a user