Skip to content

Commit df56b85

Browse files
committed
unix:port:mpconfigport: follow the standard mechanism for inclusion in a build for hwio module
1 parent 83907a4 commit df56b85

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ports/unix/mpconfigport.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,11 @@ extern const struct _mp_obj_module_t mp_module_iyo_hwio;
242242
#else
243243
#define MICROPY_PY_USELECT_DEF
244244
#endif
245+
#if MICROPY_PY_ASI_HWIO
246+
#define MICROPY_PY_ASI_HWIO_DEF { MP_ROM_QSTR(MP_QSTR_iyo_hwio), MP_ROM_PTR(&mp_module_iyo_hwio) },
247+
#else
248+
#define MICROPY_PY_ASI_HWIO_DEF
249+
#endif
245250

246251
#define MICROPY_PORT_BUILTIN_MODULES \
247252
MICROPY_PY_FFI_DEF \
@@ -252,7 +257,7 @@ extern const struct _mp_obj_module_t mp_module_iyo_hwio;
252257
MICROPY_PY_UOS_DEF \
253258
MICROPY_PY_USELECT_DEF \
254259
MICROPY_PY_TERMIOS_DEF \
255-
{ MP_ROM_QSTR(MP_QSTR_iyo_hwio), MP_ROM_PTR(&mp_module_iyo_hwio) }, \
260+
MICROPY_PY_ASI_HWIO_DEF \
256261

257262
// type definitions for the specific machine
258263

0 commit comments

Comments
 (0)