Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
e0381424
Commit
e0381424
authored
Jan 31, 2017
by
Damien George
Browse files
stmhal/modmachine: Add machine.Signal type.
parent
e24e03b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/modmachine.c
View file @
e0381424
...
...
@@ -32,6 +32,7 @@
#include
"py/runtime.h"
#include
"py/mphal.h"
#include
"extmod/machine_mem.h"
#include
"extmod/machine_signal.h"
#include
"extmod/machine_pulse.h"
#include
"extmod/machine_i2c.h"
#include
"lib/utils/pyexec.h"
...
...
@@ -541,6 +542,7 @@ STATIC const mp_map_elem_t machine_module_globals_table[] = {
{
MP_ROM_QSTR
(
MP_QSTR_mem32
),
(
mp_obj_t
)
&
machine_mem32_obj
},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_Pin
),
(
mp_obj_t
)
&
pin_type
},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_Signal
),
(
mp_obj_t
)
&
machine_signal_type
},
#if 0
{ MP_OBJ_NEW_QSTR(MP_QSTR_RTC), (mp_obj_t)&pyb_rtc_type },
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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