summaryrefslogtreecommitdiffstatshomepage
path: root/ports/unix/variants/mpconfigvariant_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'ports/unix/variants/mpconfigvariant_common.h')
-rw-r--r--ports/unix/variants/mpconfigvariant_common.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/ports/unix/variants/mpconfigvariant_common.h b/ports/unix/variants/mpconfigvariant_common.h
index 9a8a524a22..cc50d426ce 100644
--- a/ports/unix/variants/mpconfigvariant_common.h
+++ b/ports/unix/variants/mpconfigvariant_common.h
@@ -58,7 +58,7 @@
#endif
// Seed random on import.
-#define MICROPY_PY_URANDOM_SEED_INIT_FUNC (mp_random_seed_init())
+#define MICROPY_PY_RANDOM_SEED_INIT_FUNC (mp_random_seed_init())
// Allow exception details in low-memory conditions.
#define MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF (1)
@@ -87,39 +87,39 @@
#define MICROPY_PY_SYS_EXC_INFO (1)
// Configure the "os" module with extra unix features.
-#define MICROPY_PY_UOS_INCLUDEFILE "ports/unix/moduos.c"
-#define MICROPY_PY_UOS_ERRNO (1)
-#define MICROPY_PY_UOS_GETENV_PUTENV_UNSETENV (1)
-#define MICROPY_PY_UOS_SEP (1)
-#define MICROPY_PY_UOS_SYSTEM (1)
-#define MICROPY_PY_UOS_URANDOM (1)
+#define MICROPY_PY_OS_INCLUDEFILE "ports/unix/moduos.c"
+#define MICROPY_PY_OS_ERRNO (1)
+#define MICROPY_PY_OS_GETENV_PUTENV_UNSETENV (1)
+#define MICROPY_PY_OS_SEP (1)
+#define MICROPY_PY_OS_SYSTEM (1)
+#define MICROPY_PY_OS_URANDOM (1)
// Enable the unix-specific "time" module.
-#define MICROPY_PY_UTIME (1)
-#define MICROPY_PY_UTIME_TIME_TIME_NS (1)
-#define MICROPY_PY_UTIME_CUSTOM_SLEEP (1)
-#define MICROPY_PY_UTIME_INCLUDEFILE "ports/unix/modutime.c"
+#define MICROPY_PY_TIME (1)
+#define MICROPY_PY_TIME_TIME_TIME_NS (1)
+#define MICROPY_PY_TIME_CUSTOM_SLEEP (1)
+#define MICROPY_PY_TIME_INCLUDEFILE "ports/unix/modutime.c"
// Enable the utimeq module used by the previous (v2) version of uasyncio.
-#define MICROPY_PY_UTIMEQ (1)
+#define MICROPY_PY_TIMEQ (1)
-#if MICROPY_PY_USSL
-#define MICROPY_PY_UHASHLIB_MD5 (1)
-#define MICROPY_PY_UHASHLIB_SHA1 (1)
-#define MICROPY_PY_UCRYPTOLIB (1)
+#if MICROPY_PY_SSL
+#define MICROPY_PY_HASHLIB_MD5 (1)
+#define MICROPY_PY_HASHLIB_SHA1 (1)
+#define MICROPY_PY_CRYPTOLIB (1)
#endif
// Use the posix implementation of the "select" module (unless the variant
// specifically asks for the MicroPython version).
-#ifndef MICROPY_PY_USELECT
-#define MICROPY_PY_USELECT (0)
+#ifndef MICROPY_PY_SELECT
+#define MICROPY_PY_SELECT (0)
#endif
-#ifndef MICROPY_PY_USELECT_POSIX
-#define MICROPY_PY_USELECT_POSIX (!MICROPY_PY_USELECT)
+#ifndef MICROPY_PY_SELECT_POSIX
+#define MICROPY_PY_SELECT_POSIX (!MICROPY_PY_SELECT)
#endif
// Enable the "websocket" module.
-#define MICROPY_PY_UWEBSOCKET (1)
+#define MICROPY_PY_WEBSOCKET (1)
// Enable the "machine" module, mostly for machine.mem*.
#define MICROPY_PY_MACHINE (1)