diff options
Diffstat (limited to 'ports/mimxrt/main.c')
| -rw-r--r-- | ports/mimxrt/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ports/mimxrt/main.c b/ports/mimxrt/main.c index 8deaa5427..993e59818 100644 --- a/ports/mimxrt/main.c +++ b/ports/mimxrt/main.c @@ -47,6 +47,12 @@ #include "lib/cyw43-driver/src/cyw43.h" #endif #endif + +#if MICROPY_PY_BLUETOOTH +#include "mpbthciport.h" +#include "extmod/modbluetooth.h" +#endif + #include "systick.h" #include "extmod/modnetwork.h" @@ -71,6 +77,9 @@ int main(void) { systick_enable_dispatch(SYSTICK_DISPATCH_LWIP, mod_network_lwip_poll_wrapper); #endif + #if MICROPY_PY_BLUETOOTH + mp_bluetooth_hci_init(); + #endif #if MICROPY_PY_NETWORK_CYW43 { @@ -135,6 +144,9 @@ int main(void) { #if MICROPY_PY_MACHINE_I2S machine_i2s_deinit_all(); #endif + #if MICROPY_PY_BLUETOOTH + mp_bluetooth_deinit(); + #endif #if MICROPY_PY_NETWORK mod_network_deinit(); #endif |
