Move the nRF5 specific GPIO debug pin macro definitions to hal/nrf5/debug.h. The Controller's hal folder contains prototypes and hal/<soc> shall contain SoC specific implementation to realize a software-based Link Layer. Change-id: Ic7bf283f926bbc3069e7d15c047fe93a6daa894f Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no>
24 lines
523 B
C
24 lines
523 B
C
/*
|
|
* Copyright (c) 2016 Nordic Semiconductor ASA
|
|
* Copyright (c) 2016 Vinayak Kariappa Chettimada
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef _HAL_DEBUG_H_
|
|
#define _HAL_DEBUG_H_
|
|
|
|
#ifdef CONFIG_BLUETOOTH_CONTROLLER_ASSERT_HANDLER
|
|
void bt_controller_assert_handle(char *file, uint32_t line);
|
|
#define LL_ASSERT(cond) if (!(cond)) { \
|
|
bt_controller_assert_handle(__FILE__, \
|
|
__LINE__); \
|
|
}
|
|
#else
|
|
#define LL_ASSERT(cond) BT_ASSERT(cond)
|
|
#endif
|
|
|
|
#include "nrf5/debug.h"
|
|
|
|
#endif /* _HAL_DEBUG_H_ */
|