@@ -145,14 +145,14 @@ class AnalogDriverESP32 : public AnalogDriverBase {
145
145
active = false ;
146
146
}
147
147
148
- // / Overides the sample rate and uses the max value which is around ~13MHz. Call this methd after begin();
149
- void setMaxSampleRate () {
150
- // this is the hack that enables the highest sampling rate possible ~13MHz, have fun
151
- SET_PERI_REG_BITS (I2S_CLKM_CONF_REG (0 ), I2S_CLKM_DIV_A_V, 1 , I2S_CLKM_DIV_A_S);
152
- SET_PERI_REG_BITS (I2S_CLKM_CONF_REG (0 ), I2S_CLKM_DIV_B_V, 1 , I2S_CLKM_DIV_B_S);
153
- SET_PERI_REG_BITS (I2S_CLKM_CONF_REG (0 ), I2S_CLKM_DIV_NUM_V, 1 , I2S_CLKM_DIV_NUM_S);
154
- SET_PERI_REG_BITS (I2S_SAMPLE_RATE_CONF_REG (0 ), I2S_TX_BCK_DIV_NUM_V, 1 , I2S_TX_BCK_DIV_NUM_S);
155
- }
148
+ // // / Overides the sample rate and uses the max value which is around ~13MHz. Call this methd after begin();
149
+ // void setMaxSampleRate() {
150
+ // //this is the hack that enables the highest sampling rate possible ~13MHz, have fun
151
+ // SET_PERI_REG_BITS(I2S_CLKM_CONF_REG(0), I2S_CLKM_DIV_A_V, 1, I2S_CLKM_DIV_A_S);
152
+ // SET_PERI_REG_BITS(I2S_CLKM_CONF_REG(0), I2S_CLKM_DIV_B_V, 1, I2S_CLKM_DIV_B_S);
153
+ // SET_PERI_REG_BITS(I2S_CLKM_CONF_REG(0), I2S_CLKM_DIV_NUM_V, 1, I2S_CLKM_DIV_NUM_S);
154
+ // SET_PERI_REG_BITS(I2S_SAMPLE_RATE_CONF_REG(0), I2S_TX_BCK_DIV_NUM_V, 1, I2S_TX_BCK_DIV_NUM_S);
155
+ // }
156
156
157
157
// / writes the data to the I2S interface
158
158
size_t write (const uint8_t *src, size_t size_bytes) override {
0 commit comments