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

@@ -1517,6 +1517,11 @@ typedef double mp_float_t;
#define MICROPY_PY_BTREE (0)
#endif
// Whether to provide the low-level "_onewire" module
#ifndef MICROPY_PY_ONEWIRE
#define MICROPY_PY_ONEWIRE (0)
#endif
/*****************************************************************************/
/* Hooks for a port to add builtins */