diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-01-01 19:17:00 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-01-29 18:57:37 +0300 |
commit | 287180a0a8efc46c5b788236504880ebae96b5d7 (patch) | |
tree | 6f99c72c8dfe6ce6d38b37e514c041d264c5c644 /esp8266 | |
parent | 7a7516d40ddc00b051dd8dcf8ab38b5f845dcec4 (diff) | |
download | micropython-287180a0a8efc46c5b788236504880ebae96b5d7.tar.gz micropython-287180a0a8efc46c5b788236504880ebae96b5d7.zip |
esp8266/modmachine: Add Signal class.
Diffstat (limited to 'esp8266')
-rw-r--r-- | esp8266/modmachine.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/esp8266/modmachine.c b/esp8266/modmachine.c index a5073d96c0..222ed004d8 100644 --- a/esp8266/modmachine.c +++ b/esp8266/modmachine.c @@ -31,6 +31,7 @@ #include "py/obj.h" #include "py/runtime.h" #include "extmod/machine_mem.h" +#include "extmod/machine_signal.h" #include "extmod/machine_pulse.h" #include "extmod/machine_i2c.h" #include "modmachine.h" @@ -251,6 +252,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = { { MP_ROM_QSTR(MP_QSTR_Timer), MP_ROM_PTR(&esp_timer_type) }, { MP_ROM_QSTR(MP_QSTR_WDT), MP_ROM_PTR(&esp_wdt_type) }, { MP_ROM_QSTR(MP_QSTR_Pin), MP_ROM_PTR(&pyb_pin_type) }, + { MP_ROM_QSTR(MP_QSTR_Signal), MP_ROM_PTR(&machine_signal_type) }, { MP_ROM_QSTR(MP_QSTR_PWM), MP_ROM_PTR(&pyb_pwm_type) }, { MP_ROM_QSTR(MP_QSTR_ADC), MP_ROM_PTR(&pyb_adc_type) }, { MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&pyb_uart_type) }, |