mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-03 20:54:18 +00:00
hci: support de-init
This commit is contained in:
parent
3a2e210743
commit
4688f21608
10
src/hci.c
10
src/hci.c
@ -3124,6 +3124,16 @@ void hci_init(const hci_transport_t *transport, const void *config){
|
||||
hci_state_reset();
|
||||
}
|
||||
|
||||
void hci_deinit(void){
|
||||
#ifdef HAVE_MALLOC
|
||||
if (hci_stack) {
|
||||
free(hci_stack);
|
||||
}
|
||||
#endif
|
||||
hci_stack = NULL;
|
||||
disable_l2cap_timeouts = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Configure Bluetooth chipset driver. Has to be called before power on, or right after receiving the local version information
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user