extmod/modbluetooth: Add low-level Python BLE API.

This commit is contained in:
Jim Mussared
2019-07-24 00:49:06 +10:00
parent f67fd95f8d
commit 16f8ceeaaa
5 changed files with 1224 additions and 0 deletions

View File

@@ -131,6 +131,10 @@ void mp_init(void) {
MP_STATE_THREAD(current_code_state) = NULL;
#endif
#if MICROPY_PY_BLUETOOTH
MP_STATE_VM(bluetooth) = MP_OBJ_NULL;
#endif
#if MICROPY_PY_THREAD_GIL
mp_thread_mutex_init(&MP_STATE_VM(gil_mutex));
#endif