Skip to content

Commit

Permalink
samples: openthread: Add configuration for ipc_radio
Browse files Browse the repository at this point in the history
This commit ads missing configs for ipc_radio image for thread.

Signed-off-by: Przemyslaw Bida <[email protected]>
  • Loading branch information
canisLupus1313 committed Jun 3, 2024
1 parent 76fcc4b commit da0fb39
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# Disable serial and UART interface.
CONFIG_SERIAL=n
CONFIG_UART_CONSOLE=n
CONFIG_LOG=n

# RAM usage configuration
CONFIG_HEAP_MEM_POOL_SIZE=8192
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048

# BT configuration
CONFIG_BT=y
CONFIG_BT_HCI_RAW=y
CONFIG_BT_MAX_CONN=1
CONFIG_BT_CTLR_ASSERT_HANDLER=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_CENTRAL=n
CONFIG_BT_BUF_ACL_RX_SIZE=502
CONFIG_BT_BUF_ACL_TX_SIZE=251
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
CONFIG_BT_CTLR_PHY_2M=n

# 802.15.4 configuration
CONFIG_NRF_802154_SER_RADIO=y
CONFIG_NRF_802154_ENCRYPTION=y
CONFIG_NRF_RTC_TIMER_USER_CHAN_COUNT=2

# Debug and assert configuration
CONFIG_ASSERT=y
CONFIG_DEBUG_INFO=y
CONFIG_EXCEPTION_STACK_TRACE=y
CONFIG_RESET_ON_FATAL_ERROR=n
CONFIG_REBOOT=n

# IPC
CONFIG_MBOX=y
CONFIG_IPC_SERVICE=y

# ipc_radio
CONFIG_IPC_RADIO_BT=y
CONFIG_IPC_RADIO_BT_HCI_IPC=y
CONFIG_IPC_RADIO_802154=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

&dppic130 {
owned-channels = <0 1 2 3>;
sink-channels = <0 1 2>;
source-channels = <3>;
nonsecure-channels = <0 1 2 3>;
status = "okay";
};

&dppic132 {
owned-channels = <0 1 2 3>;
owned-channel-groups = <0 1>;
source-channels = <0 1 2>;
sink-channels = <3>;
nonsecure-channels = <0 1 2 3>;
status = "okay";
};

&cpurad_ipct {
source-channel-links = <0 13 0>;
sink-channel-links = <0 13 0
1 13 1
2 13 2>;
};

&ipct130 {
status = "okay";
owned-channels = <0 1 2>;
source-channel-links = <0 3 0
1 3 1
2 3 2>;
sink-channel-links = <0 3 0>;
};

0 comments on commit da0fb39

Please sign in to comment.