extmod/modonewire: Make _onewire module configurable via macro option.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2021-09-02 12:39:50 +10:00
parent afe0634c98
commit d41f6dde56
6 changed files with 13 additions and 0 deletions

View File

@@ -30,6 +30,8 @@
#include "py/obj.h"
#include "py/mphal.h"
#if MICROPY_PY_ONEWIRE
/******************************************************************************/
// Low-level 1-Wire routines
@@ -160,3 +162,5 @@ const mp_obj_module_t mp_module_onewire = {
.base = { &mp_type_module },
.globals = (mp_obj_dict_t *)&onewire_module_globals,
};
#endif // MICROPY_PY_ONEWIRE