mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
extmod/modbluetooth: Add low-level Python BLE API.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user