Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ports/zephyr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ set(MICROPY_SOURCE_PORT
machine_pin.c
machine_timer.c
modbluetooth_zephyr.c
modnetwork.c
modsocket.c
modzephyr.c
modzsensor.c
Expand All @@ -61,6 +62,7 @@ list(TRANSFORM MICROPY_SOURCE_PORT PREPEND ${MICROPY_PORT_DIR}/)

set(MICROPY_SOURCE_SHARED
libc/printf.c
netutils/netutils.c
readline/readline.c
runtime/gchelper_generic.c
runtime/interrupt_char.c
Expand Down
5 changes: 5 additions & 0 deletions ports/zephyr/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ int real_main(void) {
vfs_init();
#endif

#if MICROPY_PY_ZEPHYR_NETWORK
extern void mod_network_init(void);
mod_network_init();
#endif

#if MICROPY_MODULE_FROZEN || MICROPY_VFS
// Execute user scripts.
int ret = pyexec_file_if_exists("boot.py");
Expand Down
Loading
Loading