From 09154f585f13160ade9d9c106f302d2f7d593444 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 28 Mar 2020 13:46:35 +1100 Subject: [PATCH] stm32/mpconfigport.h: Make most extended modules configurable by board. --- ports/stm32/mpconfigport.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/ports/stm32/mpconfigport.h b/ports/stm32/mpconfigport.h index 480aa6f30..aa9e04f76 100644 --- a/ports/stm32/mpconfigport.h +++ b/ports/stm32/mpconfigport.h @@ -134,22 +134,46 @@ #endif // extended modules +#ifndef MICROPY_PY_UASYNCIO #define MICROPY_PY_UASYNCIO (1) +#endif +#ifndef MICROPY_PY_UCTYPES #define MICROPY_PY_UCTYPES (1) +#endif +#ifndef MICROPY_PY_UZLIB #define MICROPY_PY_UZLIB (1) +#endif +#ifndef MICROPY_PY_UJSON #define MICROPY_PY_UJSON (1) +#endif +#ifndef MICROPY_PY_URE #define MICROPY_PY_URE (1) +#endif +#ifndef MICROPY_PY_URE_SUB #define MICROPY_PY_URE_SUB (1) +#endif +#ifndef MICROPY_PY_UHEAPQ #define MICROPY_PY_UHEAPQ (1) +#endif +#ifndef MICROPY_PY_UHASHLIB #define MICROPY_PY_UHASHLIB (1) +#endif #define MICROPY_PY_UHASHLIB_MD5 (MICROPY_PY_USSL) #define MICROPY_PY_UHASHLIB_SHA1 (MICROPY_PY_USSL) #define MICROPY_PY_UCRYPTOLIB (MICROPY_PY_USSL) +#ifndef MICROPY_PY_UBINASCII #define MICROPY_PY_UBINASCII (1) +#endif +#ifndef MICROPY_PY_URANDOM #define MICROPY_PY_URANDOM (1) +#endif +#ifndef MICROPY_PY_URANDOM_EXTRA_FUNCS #define MICROPY_PY_URANDOM_EXTRA_FUNCS (1) +#endif #define MICROPY_PY_USELECT (1) +#ifndef MICROPY_PY_UTIMEQ #define MICROPY_PY_UTIMEQ (1) +#endif #define MICROPY_PY_UTIME_MP_HAL (1) #define MICROPY_PY_OS_DUPTERM (3) #define MICROPY_PY_UOS_DUPTERM_BUILTIN_STREAM (1)