summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2020-03-28 13:46:35 +1100
committerDamien George <damien.p.george@gmail.com>2020-03-28 13:46:35 +1100
commit09154f585f13160ade9d9c106f302d2f7d593444 (patch)
tree9a7cfe3ed1fc51b5b413fdba07ce8599670d2216
parent6c77d5c7cd1ddfd35fe5932e91c09881ac49d79b (diff)
stm32/mpconfigport.h: Make most extended modules configurable by board.
-rw-r--r--ports/stm32/mpconfigport.h24
1 files changed, 24 insertions, 0 deletions
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)