diff options
| author | robert-hh <robert@hammelrath.com> | 2022-10-27 17:04:29 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-11-09 15:58:10 +1100 |
| commit | a495eb432feb09d14fca02b49ff3f9ccd504a12b (patch) | |
| tree | af451377060e925064428e3a51305c3a544658dc | |
| parent | 2426ddb57502dc80248d1f8a9c8264eaab6d9a0b (diff) | |
esp8266/modmachine: Move dht_readinto() to the machine module.
| -rw-r--r-- | ports/esp8266/modesp.c | 2 | ||||
| -rw-r--r-- | ports/esp8266/modmachine.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ports/esp8266/modesp.c b/ports/esp8266/modesp.c index 645de7fe9..878d9392a 100644 --- a/ports/esp8266/modesp.c +++ b/ports/esp8266/modesp.c @@ -31,7 +31,6 @@ #include "py/persistentcode.h" #include "py/mperrno.h" #include "py/mphal.h" -#include "drivers/dht/dht.h" #include "uart.h" #include "user_interface.h" #include "mem.h" @@ -355,7 +354,6 @@ STATIC const mp_rom_map_elem_t esp_module_globals_table[] = { #if MICROPY_ESP8266_APA102 { MP_ROM_QSTR(MP_QSTR_apa102_write), MP_ROM_PTR(&esp_apa102_write_obj) }, #endif - { MP_ROM_QSTR(MP_QSTR_dht_readinto), MP_ROM_PTR(&dht_readinto_obj) }, { MP_ROM_QSTR(MP_QSTR_freemem), MP_ROM_PTR(&esp_freemem_obj) }, { MP_ROM_QSTR(MP_QSTR_meminfo), MP_ROM_PTR(&esp_meminfo_obj) }, { MP_ROM_QSTR(MP_QSTR_check_fw), MP_ROM_PTR(&esp_check_fw_obj) }, diff --git a/ports/esp8266/modmachine.c b/ports/esp8266/modmachine.c index af46cbbfe..3c75a2d7f 100644 --- a/ports/esp8266/modmachine.c +++ b/ports/esp8266/modmachine.c @@ -31,6 +31,7 @@ #include "py/obj.h" #include "py/runtime.h" #include "shared/runtime/pyexec.h" +#include "drivers/dht/dht.h" // This needs to be set before we include the RTOS headers #define USE_US_TIMER 1 @@ -418,6 +419,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = { #endif { MP_ROM_QSTR(MP_QSTR_time_pulse_us), MP_ROM_PTR(&machine_time_pulse_us_obj) }, + { MP_ROM_QSTR(MP_QSTR_dht_readinto), MP_ROM_PTR(&dht_readinto_obj) }, { MP_ROM_QSTR(MP_QSTR_RTC), MP_ROM_PTR(&pyb_rtc_type) }, { MP_ROM_QSTR(MP_QSTR_Timer), MP_ROM_PTR(&esp_timer_type) }, |
