all: Rename UMODULE to MODULE in preprocessor/Makefile vars.
This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
*/
|
||||
|
||||
#include "py/mpconfig.h"
|
||||
#ifdef MICROPY_PY_USOCKET
|
||||
#ifdef MICROPY_PY_SOCKET
|
||||
|
||||
#include "py/runtime.h"
|
||||
#include "py/stream.h"
|
||||
@@ -190,7 +190,7 @@ STATIC mp_obj_t socket_listen(size_t n_args, const mp_obj_t *args) {
|
||||
socket_obj_t *socket = args[0];
|
||||
socket_check_closed(socket);
|
||||
|
||||
mp_int_t backlog = MICROPY_PY_USOCKET_LISTEN_BACKLOG_DEFAULT;
|
||||
mp_int_t backlog = MICROPY_PY_SOCKET_LISTEN_BACKLOG_DEFAULT;
|
||||
if (n_args > 1) {
|
||||
backlog = mp_obj_get_int(args[1]);
|
||||
backlog = (backlog < 0) ? 0 : backlog;
|
||||
@@ -475,4 +475,4 @@ const mp_obj_module_t mp_module_socket = {
|
||||
|
||||
MP_REGISTER_MODULE(MP_QSTR_socket, mp_module_socket);
|
||||
|
||||
#endif // MICROPY_PY_USOCKET
|
||||
#endif // MICROPY_PY_SOCKET
|
||||
|
||||
@@ -145,4 +145,4 @@ const mp_obj_module_t mp_module_zsensor = {
|
||||
|
||||
MP_REGISTER_MODULE(MP_QSTR_zsensor, mp_module_zsensor);
|
||||
|
||||
#endif // MICROPY_PY_UHASHLIB
|
||||
#endif // MICROPY_PY_HASHLIB
|
||||
|
||||
@@ -72,8 +72,8 @@
|
||||
#define MICROPY_PY_STRUCT (0)
|
||||
#ifdef CONFIG_NETWORKING
|
||||
// If we have networking, we likely want errno comfort
|
||||
#define MICROPY_PY_UERRNO (1)
|
||||
#define MICROPY_PY_USOCKET (1)
|
||||
#define MICROPY_PY_ERRNO (1)
|
||||
#define MICROPY_PY_SOCKET (1)
|
||||
#endif
|
||||
#ifdef CONFIG_BT
|
||||
#define MICROPY_PY_BLUETOOTH (1)
|
||||
@@ -82,12 +82,12 @@
|
||||
#endif
|
||||
#define MICROPY_PY_BLUETOOTH_ENABLE_GATT_CLIENT (0)
|
||||
#endif
|
||||
#define MICROPY_PY_UBINASCII (1)
|
||||
#define MICROPY_PY_UHASHLIB (1)
|
||||
#define MICROPY_PY_UOS (1)
|
||||
#define MICROPY_PY_UTIME (1)
|
||||
#define MICROPY_PY_UTIME_TIME_TIME_NS (1)
|
||||
#define MICROPY_PY_UTIME_INCLUDEFILE "ports/zephyr/modutime.c"
|
||||
#define MICROPY_PY_BINASCII (1)
|
||||
#define MICROPY_PY_HASHLIB (1)
|
||||
#define MICROPY_PY_OS (1)
|
||||
#define MICROPY_PY_TIME (1)
|
||||
#define MICROPY_PY_TIME_TIME_TIME_NS (1)
|
||||
#define MICROPY_PY_TIME_INCLUDEFILE "ports/zephyr/modutime.c"
|
||||
#define MICROPY_PY_ZEPHYR (1)
|
||||
#define MICROPY_PY_ZSENSOR (1)
|
||||
#define MICROPY_PY_SYS_MODULES (0)
|
||||
|
||||
@@ -57,7 +57,7 @@ CONFIG_THREAD_ANALYZER=y
|
||||
CONFIG_THREAD_ANALYZER_USE_PRINTK=y
|
||||
CONFIG_THREAD_NAME=y
|
||||
|
||||
# Required for usocket.pkt_get_info()
|
||||
# Required for socket.pkt_get_info()
|
||||
CONFIG_NET_BUF_POOL_USAGE=y
|
||||
|
||||
# Required for zephyr.shell_exec()
|
||||
|
||||
Reference in New Issue
Block a user