Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
f1552605
Commit
f1552605
authored
Oct 01, 2015
by
Johny Mattsson
Browse files
Change os_update_cpu_freq... to ets_update_cpu_freq...
Again, the os_xxx version has been removed from the SDK.
parent
d2ac5f17
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/modules/node.c
View file @
f1552605
...
...
@@ -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
));
o
s_update_cpu_frequency
(
CPU160MHZ
);
et
s_update_cpu_frequency
(
CPU160MHZ
);
}
else
{
REG_CLR_BIT
(
0x3ff00014
,
BIT
(
0
));
o
s_update_cpu_frequency
(
CPU80MHZ
);
et
s_update_cpu_frequency
(
CPU80MHZ
);
}
new_freq
=
ets_get_cpu_frequency
();
lua_pushinteger
(
L
,
new_freq
);
...
...
app/ssl/app/espconn_ssl.c
View file @
f1552605
...
...
@@ -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
));
o
s_update_cpu_frequency
(
80
);
et
s_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
));
o
s_update_cpu_frequency
(
160
);
et
s_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
));
o
s_update_cpu_frequency
(
80
);
et
s_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
));
o
s_update_cpu_frequency
(
160
);
et
s_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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment