support hci log for nimble

This commit is contained in:
zhiweijian
2024-05-24 14:46:50 +08:00
parent 4e63dba9c3
commit 040b56ba3b
5 changed files with 88 additions and 0 deletions
+12
View File
@@ -44,6 +44,10 @@
#if !CONFIG_BT_CONTROLLER_ENABLED
#include "nimble/transport.h"
#endif
#if (BT_HCI_LOG_INCLUDED == TRUE)
#include "hci_log/bt_hci_log.h"
#endif // (BT_HCI_LOG_INCLUDED == TRUE)
#include "bt_common.h"
#define NIMBLE_PORT_LOG_TAG "BLE_INIT"
@@ -209,6 +213,10 @@ nimble_port_init(void)
return ret;
}
#if (BT_HCI_LOG_INCLUDED == TRUE)
bt_hci_log_init();
#endif // (BT_HCI_LOG_INCLUDED == TRUE)
return ESP_OK;
}
@@ -243,6 +251,10 @@ nimble_port_deinit(void)
}
#endif
#if (BT_HCI_LOG_INCLUDED == TRUE)
bt_hci_log_deinit();
#endif // (BT_HCI_LOG_INCLUDED == TRUE)
return ESP_OK;
}