2016-08-15 18:01:06 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Nordic Semiconductor ASA
|
|
|
|
* Copyright (c) 2016 Vinayak Kariappa Chettimada
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-08-15 18:01:06 +08:00
|
|
|
*/
|
|
|
|
|
2017-08-14 19:45:13 +08:00
|
|
|
#ifdef CONFIG_BT_CTLR_ASSERT_HANDLER
|
|
|
|
void bt_ctlr_assert_handle(char *file, u32_t line);
|
2016-10-31 18:39:12 +08:00
|
|
|
#define LL_ASSERT(cond) if (!(cond)) { \
|
2017-08-14 19:45:13 +08:00
|
|
|
bt_ctlr_assert_handle(__FILE__, \
|
|
|
|
__LINE__); \
|
2016-10-31 18:39:12 +08:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
#define LL_ASSERT(cond) BT_ASSERT(cond)
|
|
|
|
#endif
|
|
|
|
|
2017-04-03 16:00:32 +08:00
|
|
|
#include "nrf5/debug.h"
|