Skip to content

Commit 8afa6df

Browse files
robert-hhdpgeorge
authored andcommitted
mimxrt/modmachine: Move dht_readinto() to the machine module.
1 parent 3bb371c commit 8afa6df

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ports/mimxrt/modmachine.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
*/
2727

2828
#include "py/runtime.h"
29+
#include "drivers/dht/dht.h"
2930
#include "extmod/machine_bitstream.h"
3031
#include "extmod/machine_mem.h"
3132
#include "extmod/machine_i2c.h"
@@ -149,6 +150,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = {
149150
{ MP_ROM_QSTR(MP_QSTR_bitstream), MP_ROM_PTR(&machine_bitstream_obj) },
150151
#endif
151152
{ MP_ROM_QSTR(MP_QSTR_time_pulse_us), MP_ROM_PTR(&machine_time_pulse_us_obj) },
153+
{ MP_ROM_QSTR(MP_QSTR_dht_readinto), MP_ROM_PTR(&dht_readinto_obj) },
152154

153155
// Reset reasons
154156
{ MP_ROM_QSTR(MP_QSTR_PWRON_RESET), MP_ROM_INT(MP_PWRON_RESET) },

ports/mimxrt/modmimxrt.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,11 @@
2626

2727
#include "py/mperrno.h"
2828
#include "py/runtime.h"
29-
#include "drivers/dht/dht.h"
3029
#include "modmimxrt.h"
3130

3231
STATIC const mp_rom_map_elem_t mimxrt_module_globals_table[] = {
3332
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_mimxrt) },
3433
{ MP_ROM_QSTR(MP_QSTR_Flash), MP_ROM_PTR(&mimxrt_flash_type) },
35-
36-
{ MP_ROM_QSTR(MP_QSTR_dht_readinto), MP_ROM_PTR(&dht_readinto_obj) },
3734
};
3835
STATIC MP_DEFINE_CONST_DICT(mimxrt_module_globals, mimxrt_module_globals_table);
3936

0 commit comments

Comments
 (0)