Skip to content

Commit

Permalink
Merge a0eca21 into b15e1ef
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed Jun 5, 2021
2 parents b15e1ef + a0eca21 commit 301d5ce
Show file tree
Hide file tree
Showing 8 changed files with 438 additions and 4 deletions.
1 change: 1 addition & 0 deletions ports/zephyr/CMakeLists.txt
Expand Up @@ -40,6 +40,7 @@ set(MICROPY_SOURCE_PORT
machine_i2c.c
machine_pin.c
machine_uart.c
modbluetooth_zephyr.c
modmachine.c
moduos.c
modusocket.c
Expand Down
4 changes: 4 additions & 0 deletions ports/zephyr/boards/nucleo_wb55rg.conf
@@ -1,2 +1,6 @@
CONFIG_CONSOLE_SUBSYS=n
CONFIG_NETWORKING=n
CONFIG_BT=y
CONFIG_BT_DEVICE_NAME_DYNAMIC=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_CENTRAL=y
4 changes: 4 additions & 0 deletions ports/zephyr/main.c
Expand Up @@ -49,6 +49,7 @@
#include "py/stackctrl.h"
#include "lib/utils/pyexec.h"
#include "lib/mp-readline/readline.h"
#include "extmod/modbluetooth.h"

#if MICROPY_VFS
#include "extmod/vfs.h"
Expand Down Expand Up @@ -168,6 +169,9 @@ int real_main(void) {

printf("soft reboot\n");

#if MICROPY_PY_BLUETOOTH
mp_bluetooth_deinit();
#endif
#if MICROPY_PY_MACHINE
machine_pin_deinit();
#endif
Expand Down

0 comments on commit 301d5ce

Please sign in to comment.