Change os_update_cpu_freq... to ets_update_cpu_freq...
Again, the os_xxx version has been removed from the SDK.
This commit is contained in:
parent
d2ac5f1712
commit
f1552605d9
|
@ -410,10 +410,10 @@ static int node_setcpufreq(lua_State* L)
|
|||
uint32_t new_freq = luaL_checkinteger(L, 1);
|
||||
if (new_freq == CPU160MHZ){
|
||||
REG_SET_BIT(0x3ff00014, BIT(0));
|
||||
os_update_cpu_frequency(CPU160MHZ);
|
||||
ets_update_cpu_frequency(CPU160MHZ);
|
||||
} else {
|
||||
REG_CLR_BIT(0x3ff00014, BIT(0));
|
||||
os_update_cpu_frequency(CPU80MHZ);
|
||||
ets_update_cpu_frequency(CPU80MHZ);
|
||||
}
|
||||
new_freq = ets_get_cpu_frequency();
|
||||
lua_pushinteger(L, new_freq);
|
||||
|
|
|
@ -440,7 +440,7 @@ espconn_ssl_crecv(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err)
|
|||
pssl->quiet = true;
|
||||
os_printf("client handshake ok!\n");
|
||||
REG_CLR_BIT(0x3ff00014, BIT(0));
|
||||
os_update_cpu_frequency(80);
|
||||
ets_update_cpu_frequency(80);
|
||||
precv->pespconn->state = ESPCONN_CONNECT;
|
||||
precv->pcommon.pcb = pcb;
|
||||
pbuf_free(p);
|
||||
|
@ -613,7 +613,7 @@ espconn_ssl_connect(void *arg, struct tcp_pcb *tpcb, err_t err)
|
|||
}
|
||||
|
||||
REG_SET_BIT(0x3ff00014, BIT(0));
|
||||
os_update_cpu_frequency(160);
|
||||
ets_update_cpu_frequency(160);
|
||||
os_printf("client handshake start.\n");
|
||||
pssl->quiet = false;
|
||||
pssl->ssl_ctx = ssl_ctx_new(options, SSL_DEFAULT_CLNT_SESS);
|
||||
|
@ -794,7 +794,7 @@ espconn_ssl_ssent(void *arg, struct tcp_pcb *pcb, u16_t len)
|
|||
pssl->quiet = true;
|
||||
os_printf("server handshake ok!\n");
|
||||
REG_CLR_BIT(0x3ff00014, BIT(0));
|
||||
os_update_cpu_frequency(80);
|
||||
ets_update_cpu_frequency(80);
|
||||
psent->pespconn->state = ESPCONN_CONNECT;
|
||||
|
||||
if (psent->pespconn->proto.tcp->connect_callback != NULL) {
|
||||
|
@ -1043,7 +1043,7 @@ espconn_ssl_accept(void *arg, struct tcp_pcb *pcb, err_t err)
|
|||
}
|
||||
|
||||
REG_SET_BIT(0x3ff00014, BIT(0));
|
||||
os_update_cpu_frequency(160);
|
||||
ets_update_cpu_frequency(160);
|
||||
os_printf("server handshake start.\n");
|
||||
pssl->quiet = false;
|
||||
pssl->ssl_ctx = ssl_ctx_new(SSL_DISPLAY_CERTS, SSL_DEFAULT_SVR_SESS);
|
||||
|
|
Loading…
Reference in New Issue