Skip to content

apps/blehci: Enable HCI vs event on assert for all asserts #1930

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions apps/blehci/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@
*/

#include "os/mynewt.h"
#if MYNEWT_VAL(BLE_CONTROLLER)
#include "controller/ble_ll.h"
#endif

#if MYNEWT_VAL(OS_ASSERT_CB)
void
os_assert_cb(const char *file, int line, const char *func, const char *e)
{
ble_ll_assert(file, line);
}
#endif

int
mynewt_main(int argc, char **argv)
Expand Down
3 changes: 3 additions & 0 deletions apps/blehci/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ syscfg.vals:
LOG_IMPLEMENTATION: stub
STATS_IMPLEMENTATION: full

syscfg.vals.BLE_LL_HCI_VS_EVENT_ON_ASSERT:
OS_ASSERT_CB: 1

syscfg.vals.'!BLE_TRANSPORT_NETCORE':
# Use UART by default if not built on netcore
BLE_TRANSPORT_HS: uart
Loading