espressif / ESP8266_MP3_DECODER

A demo that should be run with ESP8266 Non-OS SDK
Other
745 stars 190 forks source link

The range of I2S_CLKM_DIV_NUM and I2S_BCK_DIV_NUM #22

Closed Simpleyyt closed 8 years ago

Simpleyyt commented 8 years ago

in file i2s_freertos.c function i2sSetRate writes the range of I2S_CLKM_DIV_NUM and I2S_BCK_DIV_NUM:

I2S_CLKM_DIV_NUM - 5-127
I2S_BCK_DIV_NUM - 2-127

However, when I look into the document and found that the bit size of them is both 6, which means the correct range is:

I2S_CLKM_DIV_NUM - 5-63
I2S_BCK_DIV_NUM - 2-63

right?

Spritetm commented 8 years ago

Huh, seems you're right. Fixed in 7552a62d425598d64ebc255d32fa4f20220e92f6