summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/modmachine.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-01-31 12:36:20 +1100
committerDamien George <damien.p.george@gmail.com>2017-01-31 12:36:20 +1100
commite0381424ccfb445c72cebd24acd1c4a22974a3e8 (patch)
treeecc35379a41ab697884fb14ca14e7edfc5381dd8 /stmhal/modmachine.c
parente24e03b41591bdfac832d60f77b1ad63e5c0c2c6 (diff)
downloadmicropython-e0381424ccfb445c72cebd24acd1c4a22974a3e8.tar.gz
micropython-e0381424ccfb445c72cebd24acd1c4a22974a3e8.zip
stmhal/modmachine: Add machine.Signal type.
Diffstat (limited to 'stmhal/modmachine.c')
-rw-r--r--stmhal/modmachine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stmhal/modmachine.c b/stmhal/modmachine.c
index b10bca8197..4a3fe1ec9a 100644
--- a/stmhal/modmachine.c
+++ b/stmhal/modmachine.c
@@ -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 },