Re: rom_i2c funcs?
Posted: Wed Sep 08, 2021 12:32 pm
Looks like this is the setting that doubles the CPU clock.
Code: Select all
DPORT_BASEADDR[0x14/4] |= 0x01; //Overclock bit.
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
DPORT_BASEADDR[0x14/4] |= 0x01; //Overclock bit.
eriksl wrote:Looks like this is the setting that doubles the CPU clock.Code: Select allDPORT_BASEADDR[0x14/4] |= 0x01; //Overclock bit.
uint32_t i = 0;
for (i = 0; i <= 0xff; i++) {
rom_i2c_writeReg(103, 4, 2, i);
int j = 0;
for (j = 0; j < 5; j++) {
int j = 0;
for (j = 0; j < 200; j++) {
uart_div_modify(0, (j * 1000000) / 115200);
printf("cpuworkingreg: 0x%x, pllworkingfreq: %d \n", i, j);
}
}
call_delay_us(100000);
}
uart_div_modify(0, (184 * 1000000) / 115200);
while (1) {
printf("CPU+PLL working!\n");
}
Cache_Read_Enable