mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-21 21:22:31 +03:00
Update I2S base frequency and frequency dividers to real ones (#4031)
* Fix I2S base frequency * Update frequency dividers for I2S Reference: https://github.com/espressif/ESP8266_MP3_DECODER/blob/master/mp3/driver/i2s_freertos.c * fixed i2s_set_rate, added i2s_get_real_rate() and i2s_set_dividers * Minimise float calculations
This commit is contained in:
committed by
Earle F. Philhower, III
parent
38fe6fc488
commit
0fe725909e
@ -754,7 +754,7 @@ extern uint8_t esp8266_gpioToFn[16];
|
||||
#define i2c_bbpll_en_audio_clock_out_msb 7
|
||||
#define i2c_bbpll_en_audio_clock_out_lsb 7
|
||||
#define I2S_CLK_ENABLE() i2c_writeReg_Mask_def(i2c_bbpll, i2c_bbpll_en_audio_clock_out, 1)
|
||||
#define I2SBASEFREQ (12000000L)
|
||||
#define I2SBASEFREQ (160000000L)
|
||||
|
||||
#define I2STXF ESP8266_REG(0xe00) //I2STXFIFO (32bit)
|
||||
#define I2SRXF ESP8266_REG(0xe04) //I2SRXFIFO (32bit)
|
||||
|
Reference in New Issue
Block a user