2017-06-15 16:31:06 +08:00
|
|
|
/**
|
|
|
|
* @file dummy.c
|
|
|
|
* Static compilation checks.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Nordic Semiconductor ASA
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <zephyr.h>
|
|
|
|
|
|
|
|
/* The Bluetooth subsystem requires the system workqueue to execute at a
|
|
|
|
* cooperative priority to function correctly. If this build assert triggers
|
|
|
|
* verify your configuration to ensure that cooperative threads are enabled
|
|
|
|
* and that the system workqueue priority is negative (cooperative).
|
|
|
|
*/
|
|
|
|
BUILD_ASSERT(CONFIG_SYSTEM_WORKQUEUE_PRIORITY < 0);
|
2017-07-11 15:47:08 +08: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 14:21:11 +08:00
|
|
|
BUILD_ASSERT(CONFIG_BT_HCI_TX_PRIO < CONFIG_BT_RX_PRIO);
|
2017-07-11 15:47:08 +08:00
|
|
|
|
2017-08-14 19:45:13 +08:00
|
|
|
#if defined(CONFIG_BT_CTLR)
|
2017-07-11 15:47:08 +08:00
|
|
|
/* The Bluetooth Controller's priority receive thread priority shall be higher
|
|
|
|
* than the Bluetooth Host's Tx and the Controller's receive thread priority.
|
|
|
|
* This is required in order to dispatch Number of Completed Packets event
|
|
|
|
* before any new data arrives on a connection to the Host threads.
|
|
|
|
*/
|
2017-08-14 19:45:13 +08:00
|
|
|
BUILD_ASSERT(CONFIG_BT_CTLR_RX_PRIO < CONFIG_BT_HCI_TX_PRIO);
|
|
|
|
#endif /* CONFIG_BT_CTLR */
|