forked from nrfconnect/sdk-nrf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
applications: nrf5340_audio: Split generic applications into separate…
… mains - Create samples folder containing: - broadcast_sink - broadcast_source - unicast_client - unicast_server - Move relevant configs to respective folders - Move common init functions into separate file Signed-off-by: Alexander Svensen <[email protected]>
- Loading branch information
Showing
32 changed files
with
510 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,9 +72,6 @@ config NRFX_I2S0 | |
config PCM_MIX | ||
default y | ||
|
||
config TONE | ||
default y | ||
|
||
config PSCM | ||
default y | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# Copyright (c) 2023 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
target_sources(app PRIVATE | ||
${CMAKE_CURRENT_SOURCE_DIR}/main.c) |
64 changes: 64 additions & 0 deletions
64
applications/nrf5340_audio/broadcast_sink/Kconfig.defaults
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# | ||
# Copyright (c) 2023 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
## ACL related configs ## | ||
config BT_OBSERVER | ||
default y | ||
|
||
config BT_PERIPHERAL | ||
default y | ||
|
||
# Generic Audio Sink - 0x0840 | ||
config BT_DEVICE_APPEARANCE | ||
default 2112 | ||
|
||
config BT_PER_ADV_SYNC_MAX | ||
default 2 | ||
|
||
config BT_SMP | ||
default y | ||
|
||
|
||
## ISO related configs ## | ||
config BT_ISO_SYNC_RECEIVER | ||
default y | ||
|
||
config BT_BAP_BROADCAST_SINK | ||
default y | ||
|
||
config BT_BAP_SCAN_DELEGATOR | ||
default y | ||
|
||
config BT_BAP_BROADCAST_SNK_STREAM_COUNT | ||
default 2 | ||
|
||
config BT_BAP_BROADCAST_SNK_COUNT | ||
default 2 | ||
|
||
config BT_ISO_MAX_CHAN | ||
default 2 | ||
|
||
config BT_ISO_MAX_BIG | ||
default 2 | ||
|
||
config BT_PAC_SNK | ||
default y | ||
|
||
config BT_AUDIO_RX | ||
default y | ||
|
||
|
||
## Audio related configs ## | ||
config AUDIO_MUTE | ||
default n | ||
|
||
config AUDIO_TEST_TONE | ||
default n | ||
|
||
|
||
## LC3 related configs ## | ||
config LC3_DEC_CHAN_MAX | ||
default 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# Copyright (c) 2023 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
target_sources(app PRIVATE | ||
${CMAKE_CURRENT_SOURCE_DIR}/main.c) |
39 changes: 39 additions & 0 deletions
39
applications/nrf5340_audio/broadcast_source/Kconfig.defaults
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# | ||
# Copyright (c) 2023 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
## ISO related configs ## | ||
config BT_CAP_INITIATOR | ||
default y | ||
|
||
# Broadcasting Device - 0x0885 | ||
config BT_DEVICE_APPEARANCE | ||
default 2181 | ||
|
||
config BT_ISO_BROADCASTER | ||
default y | ||
|
||
config BT_BAP_BROADCAST_SOURCE | ||
default y | ||
|
||
config BT_ISO_TX_BUF_COUNT | ||
default 2 | ||
|
||
config BT_BAP_BROADCAST_SRC_STREAM_COUNT | ||
default 2 | ||
|
||
config BT_ISO_MAX_CHAN | ||
default 2 | ||
|
||
config BT_AUDIO_TX | ||
default y | ||
|
||
|
||
## LC3 related configs ## | ||
config LC3_BITRATE | ||
default BT_AUDIO_BITRATE_BROADCAST_SRC | ||
|
||
config LC3_ENC_CHAN_MAX | ||
default 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.