#
# Copyright (c) 2020 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# Set OpenThread NCP architecture
CONFIG_OPENTHREAD_COPROCESSOR=y
CONFIG_OPENTHREAD_COPROCESSOR_RCP=y

# Nordic feature set
CONFIG_OPENTHREAD_NORDIC_LIBRARY_RCP=y

CONFIG_NET_L2_OPENTHREAD=y

# Generic networking options
CONFIG_NETWORKING=y

# Increase Settings storage size
CONFIG_PM_PARTITION_SIZE_SETTINGS_STORAGE=0x8000

# Disable RTT
CONFIG_USE_SEGGER_RTT=n

# Disable GPIO
CONFIG_GPIO=n

CONFIG_UART_CONSOLE=n
CONFIG_CONSOLE=n

CONFIG_UART_ASYNC_API=y
#CONFIG_UART_0_NRF_HW_ASYNC=y
#CONFIG_UART_0_INTERRUPT_DRIVEN=n
CONFIG_NRFX_UARTE0=y

CONFIG_OPENTHREAD_THREAD_VERSION_1_3_1=y
CONFIG_OPENTHREAD_BORDER_ROUTER=y
CONFIG_OPENTHREAD_BORDER_ROUTING=y
CONFIG_OPENTHREAD_BORDER_ROUTING_DHCP6_PD=y

#CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
#CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH=y
#CONFIG_CLOCK_CONTROL_NRF_K32SRC_20PPM=y

#CONFIG_MAIN_STACK_SIZE=4096
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=640
CONFIG_OPENTHREAD_THREAD_STACK_SIZE=2048
CONFIG_OPENTHREAD_COPROCESSOR_UART_RING_BUFFER_SIZE=3092
#CONFIG_MPSL_WORK_STACK_SIZE=1024

CONFIG_UART_0_NRF_TX_BUFFER_SIZE=128
#CONFIG_OPENTHREAD_CSL_RECEIVER=n
#CONFIG_MPSL_ASSERT_HANDLER=y
#CONFIG_MPSL_TIMESLOT_SESSION_COUNT=1

#CONFIG_THREAD_MONITOR=y

#CONFIG_NRF_802154_SL_OPENSOURCE=y
#CONFIG_MPSL=n
#CONFIG_NET_PKT_TXTIME=n
#CONFIG_IEEE802154_CSL_ENDPOINT=n