Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
55314379
Commit
55314379
authored
Apr 01, 2016
by
Paul Sokolovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
esp8266: Move PHY mode constants from modesp to modnetwork.
parent
4b597a1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
esp8266/modesp.c
esp8266/modesp.c
+0
-7
esp8266/modnetwork.c
esp8266/modnetwork.c
+7
-0
No files found.
esp8266/modesp.c
View file @
55314379
...
...
@@ -621,13 +621,6 @@ STATIC const mp_map_elem_t esp_module_globals_table[] = {
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_neopixel_write
),
(
mp_obj_t
)
&
esp_neopixel_write_obj
},
#if MODESP_INCLUDE_CONSTANTS
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_MODE_11B
),
MP_OBJ_NEW_SMALL_INT
(
PHY_MODE_11B
)
},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_MODE_11G
),
MP_OBJ_NEW_SMALL_INT
(
PHY_MODE_11G
)
},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_MODE_11N
),
MP_OBJ_NEW_SMALL_INT
(
PHY_MODE_11N
)
},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_SLEEP_NONE
),
MP_OBJ_NEW_SMALL_INT
(
NONE_SLEEP_T
)
},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_SLEEP_LIGHT
),
...
...
esp8266/modnetwork.c
View file @
55314379
...
...
@@ -356,6 +356,13 @@ STATIC const mp_map_elem_t mp_module_network_globals_table[] = {
MP_OBJ_NEW_SMALL_INT
(
STATION_CONNECT_FAIL
)},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_STAT_GOT_IP
),
MP_OBJ_NEW_SMALL_INT
(
STATION_GOT_IP
)},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_MODE_11B
),
MP_OBJ_NEW_SMALL_INT
(
PHY_MODE_11B
)
},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_MODE_11G
),
MP_OBJ_NEW_SMALL_INT
(
PHY_MODE_11G
)
},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_MODE_11N
),
MP_OBJ_NEW_SMALL_INT
(
PHY_MODE_11N
)
},
#endif
};
...
...
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