1 /** 2 * @file dummy.c 3 * Static compilation checks. 4 */ 5 6 /* 7 * Copyright (c) 2017 Nordic Semiconductor ASA 8 * 9 * SPDX-License-Identifier: Apache-2.0 10 */ 11 12 #include <ble_os.h> 13 14 #if defined(CONFIG_BT_HCI_HOST) 15 /* The Bluetooth subsystem requires the Tx thread to execute at higher priority 16 * than the Rx thread as the Tx thread needs to process the acknowledgements 17 * before new Rx data is processed. This is a necessity to correctly detect 18 * transaction violations in ATT and SMP protocols. 19 */ 20 BUILD_ASSERT(CONFIG_BT_HCI_TX_PRIO < CONFIG_BT_RX_PRIO); 21 #endif 22 23 #if defined(CONFIG_BT_CTLR) 24 /* The Bluetooth Controller's priority receive thread priority shall be higher 25 * than the Bluetooth Host's Tx and the Controller's receive thread priority. 26 * This is required in order to dispatch Number of Completed Packets event 27 * before any new data arrives on a connection to the Host threads. 28 */ 29 BUILD_ASSERT(CONFIG_BT_CTLR_RX_PRIO < CONFIG_BT_HCI_TX_PRIO); 30 #endif /* CONFIG_BT_CTLR */ 31 32 /* Immediate logging is not supported with the software-based Link Layer 33 * since it introduces ISR latency due to outputting log messages with 34 * interrupts disabled. 35 */ 36 #if !defined(CONFIG_TEST) && !defined(CONFIG_ARCH_POSIX) && \ 37 defined(CONFIG_BT_LL_SW_SPLIT) 38 BUILD_ASSERT(!IS_ENABLED(CONFIG_LOG_IMMEDIATE), "Immediate logging not " 39 "supported with the software Link Layer"); 40 #endif 41