2017-06-15 10:31:06 +02:00
|
|
|
/**
|
|
|
|
* @file dummy.c
|
|
|
|
* Static compilation checks.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Nordic Semiconductor ASA
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <zephyr.h>
|
|
|
|
|
2018-10-04 13:44:33 +02:00
|
|
|
#if defined(CONFIG_BT_HCI_HOST)
|
2017-07-11 09:47:08 +02:00
|
|
|
/* The Bluetooth subsystem requires the Tx thread to execute at higher priority
|
|
|
|
* than the Rx thread as the Tx thread needs to process the acknowledgements
|
|
|
|
* before new Rx data is processed. This is a necessity to correctly detect
|
|
|
|
* transaction violations in ATT and SMP protocols.
|
|
|
|
*/
|
2017-08-09 09:21:11 +03:00
|
|
|
BUILD_ASSERT(CONFIG_BT_HCI_TX_PRIO < CONFIG_BT_RX_PRIO);
|
2017-07-11 09:47:08 +02:00
|
|
|
|
2020-08-19 17:16:01 +02:00
|
|
|
/* The Bluetooth subsystem requires that higher priority events shall be given
|
|
|
|
* in a priority higher than the Bluetooth Host's Tx and the Controller's
|
|
|
|
* receive thread priority.
|
2017-07-11 09:47:08 +02:00
|
|
|
* This is required in order to dispatch Number of Completed Packets event
|
|
|
|
* before any new data arrives on a connection to the Host threads.
|
|
|
|
*/
|
2020-08-19 17:16:01 +02:00
|
|
|
BUILD_ASSERT(CONFIG_BT_DRIVER_RX_HIGH_PRIO < CONFIG_BT_HCI_TX_PRIO);
|
|
|
|
#endif /* defined(CONFIG_BT_HCI_HOST) */
|
2019-10-01 14:21:27 +02:00
|
|
|
|
|
|
|
/* 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) && \
|
2020-05-06 10:53:05 +02:00
|
|
|
defined(CONFIG_BT_LL_SW_SPLIT)
|
2020-03-12 17:16:00 +02:00
|
|
|
BUILD_ASSERT(!IS_ENABLED(CONFIG_LOG_IMMEDIATE), "Immediate logging not "
|
|
|
|
"supported with the software Link Layer");
|
2019-10-01 14:21:27 +02:00
|
|
|
#endif
|