Skip to content

Commit acadc0a

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ports/rp2/modmachine.c

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

2727
#include "py/runtime.h"
2828
#include "py/mphal.h"
29+
#include "drivers/dht/dht.h"
2930
#include "shared/runtime/pyexec.h"
3031
#include "extmod/machine_bitstream.h"
3132
#include "extmod/machine_i2c.h"
@@ -233,6 +234,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = {
233234
{ MP_ROM_QSTR(MP_QSTR_bitstream), MP_ROM_PTR(&machine_bitstream_obj) },
234235
#endif
235236
{ MP_ROM_QSTR(MP_QSTR_time_pulse_us), MP_ROM_PTR(&machine_time_pulse_us_obj) },
237+
{ MP_ROM_QSTR(MP_QSTR_dht_readinto), MP_ROM_PTR(&dht_readinto_obj) },
236238

237239
{ MP_ROM_QSTR(MP_QSTR_mem8), MP_ROM_PTR(&machine_mem8_obj) },
238240
{ MP_ROM_QSTR(MP_QSTR_mem16), MP_ROM_PTR(&machine_mem16_obj) },

ports/rp2/modrp2.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ STATIC const mp_rom_map_elem_t rp2_module_globals_table[] = {
5656
{ MP_ROM_QSTR(MP_QSTR_PIO), MP_ROM_PTR(&rp2_pio_type) },
5757
{ MP_ROM_QSTR(MP_QSTR_StateMachine), MP_ROM_PTR(&rp2_state_machine_type) },
5858

59-
{ MP_ROM_QSTR(MP_QSTR_dht_readinto), MP_ROM_PTR(&dht_readinto_obj) },
60-
6159
#if MICROPY_PY_NETWORK_CYW43
6260
{ MP_ROM_QSTR(MP_QSTR_country), MP_ROM_PTR(&rp2_country_obj) },
6361
#endif

0 commit comments

Comments
 (0)