Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
26f0616e
Commit
26f0616e
authored
Feb 03, 2016
by
Paul Sokolovsky
Browse files
esp8266/modmachine: Add Pin class from modpyb.
parent
eb247eac
Changes
1
Hide whitespace changes
Inline
Side-by-side
esp8266/modmachine.c
View file @
26f0616e
...
...
@@ -31,6 +31,7 @@
#include
"py/runtime.h"
#include
"extmod/machine_mem.h"
#include
"utils.h"
#include
"modpyb.h"
#include
"os_type.h"
#include
"osapi.h"
...
...
@@ -120,6 +121,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = {
{
MP_ROM_QSTR
(
MP_QSTR_mem32
),
MP_ROM_PTR
(
&
machine_mem32_obj
)
},
{
MP_ROM_QSTR
(
MP_QSTR_Timer
),
MP_ROM_PTR
(
&
esp_timer_type
)
},
{
MP_ROM_QSTR
(
MP_QSTR_Pin
),
MP_ROM_PTR
(
&
pyb_pin_type
)
},
};
STATIC
MP_DEFINE_CONST_DICT
(
machine_module_globals
,
machine_module_globals_table
);
...
...
Write
Preview
Supports
Markdown
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