This commit makes the Radio workqueue priority configurable by the application. Additionally, the default priority has been adjusted to allow transmit operations to occur before the entire RX queue is processed. Signed-off-by: Łukasz Duda <lukasz.duda@nordicsemi.no>
31 lines
876 B
C
31 lines
876 B
C
/*
|
|
* Copyright (c) 2020 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
|
|
/* Disable syscall tracing to avoid a conflict with the device_get_binding
|
|
* macro defined below
|
|
*/
|
|
#define DISABLE_SYSCALL_TRACING
|
|
|
|
/* needed here so the static device_get_binding does not get renamed */
|
|
#include <zephyr/device.h>
|
|
|
|
/* OpenThread not enabled here */
|
|
#define CONFIG_OPENTHREAD_PLATFORM_LOG_LEVEL LOG_LEVEL_DBG
|
|
#ifdef CONFIG_NET_PKT_TXTIME
|
|
#define CONFIG_OPENTHREAD_PLATFORM_PKT_TXTIME 1
|
|
#endif
|
|
|
|
#define CONFIG_OPENTHREAD_RADIO_WORKQUEUE_PRIORITY 5
|
|
#define OT_WORKER_PRIORITY K_PRIO_COOP(CONFIG_OPENTHREAD_RADIO_WORKQUEUE_PRIORITY)
|
|
#define CONFIG_NET_L2_OPENTHREAD 1
|
|
#define CONFIG_OPENTHREAD_RADIO_WORKQUEUE_STACK_SIZE 512
|
|
#define CONFIG_OPENTHREAD_DEFAULT_RX_SENSITIVITY -100
|
|
#define CONFIG_OPENTHREAD_DEFAULT_TX_POWER 0
|
|
|
|
/* file itself */
|
|
#include "radio.c"
|