dummy.c 1.3 KB

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