Bluetooth: common: Statically check for immediate logging
Immediate logging is not compatible with the software-based controller due to the additional ISR latency that it introduces. Ensure that deferred logging is in use whenever using the software-based LL. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
f8da57a93e
commit
cd9b940756
1 changed files with 10 additions and 0 deletions
|
@ -28,3 +28,13 @@ BUILD_ASSERT(CONFIG_BT_HCI_TX_PRIO < CONFIG_BT_RX_PRIO);
|
|||
*/
|
||||
BUILD_ASSERT(CONFIG_BT_CTLR_RX_PRIO < CONFIG_BT_HCI_TX_PRIO);
|
||||
#endif /* CONFIG_BT_CTLR */
|
||||
|
||||
/* Immediate logging is not supported with the software-based Link Layer
|
||||
* since it introduces ISR latency due to outputting log messages with
|
||||
* interrupts disabled.
|
||||
*/
|
||||
#if !defined(CONFIG_TEST) && !defined(CONFIG_ARCH_POSIX) && \
|
||||
(defined(CONFIG_BT_LL_SW_SPLIT) || defined(CONFIG_BT_LL_SW_LEGACY))
|
||||
BUILD_ASSERT_MSG(!IS_ENABLED(CONFIG_LOG_IMMEDIATE), "Immediate logging not "
|
||||
"supported with the software Link Layer");
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue