The Bluetooth subsystem assumes execution of its system threads in cooperative priority, including the system workqueue and the thread that interact with the controller (i.e. calling bt_send). This commit adds a compile-time check for the system workqueue priority and documentation for the bt_send API call. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
20 lines
525 B
C
20 lines
525 B
C
/**
|
|
* @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);
|