You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ry...@apache.org on 2024/02/28 07:36:15 UTC
(mynewt-nimble) 06/08: nimble/audio: Add LE Audio btshell target
This is an automated email from the ASF dual-hosted git repository.
rymek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit 2e368caab2c7d910922f3b281adb5f5f98267014
Author: Mariusz Skamra <ma...@codecoup.pl>
AuthorDate: Thu Jan 25 14:04:22 2024 +0100
nimble/audio: Add LE Audio btshell target
This adds btshell for native target build with the LE Audio
functionality enabled.
---
nimble/host/audio/targets/btshell_native/pkg.yml | 26 ++++++++
.../host/audio/targets/btshell_native/syscfg.yml | 74 ++++++++++++++++++++++
.../host/audio/targets/btshell_native/target.yml | 22 +++++++
3 files changed, 122 insertions(+)
diff --git a/nimble/host/audio/targets/btshell_native/pkg.yml b/nimble/host/audio/targets/btshell_native/pkg.yml
new file mode 100644
index 000000000..67eb2d6fe
--- /dev/null
+++ b/nimble/host/audio/targets/btshell_native/pkg.yml
@@ -0,0 +1,26 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+pkg.name: audio/targets/btshell_native
+pkg.type: target
+pkg.description: Target for native btshell application with LE Audio
+ functionality enabled
+pkg.author: "Apache Mynewt <de...@mynewt.apache.org>"
+pkg.homepage: "http://mynewt.apache.org/"
+pkg.deps:
diff --git a/nimble/host/audio/targets/btshell_native/syscfg.yml b/nimble/host/audio/targets/btshell_native/syscfg.yml
new file mode 100644
index 000000000..d631ea798
--- /dev/null
+++ b/nimble/host/audio/targets/btshell_native/syscfg.yml
@@ -0,0 +1,74 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+syscfg.vals:
+ CONSOLE_IMPLEMENTATION: full
+ LOG_IMPLEMENTATION: full
+ STATS_IMPLEMENTATION: full
+
+ # Enable the shell task.
+ SHELL_TASK: 1
+
+ # Set log level to info (disable debug logging).
+ LOG_LEVEL: 1
+
+ # Disable security manager (pairing and bonding).
+ BLE_SM_LEGACY: 0
+ BLE_SM_SC: 0
+
+ # Default task settings
+ OS_MAIN_STACK_SIZE: 512
+
+ # SMP is not supported in this app, so disable smp-over-shell.
+ SHELL_MGMT: 0
+
+ # Whether to save data to sys/config, or just keep it in RAM.
+ BLE_STORE_CONFIG_PERSIST: 0
+
+ # Enable Extended Advertising
+ BLE_EXT_ADV: 1
+ BLE_EXT_ADV_MAX_SIZE: 261
+
+ BLE_MULTI_ADV_INSTANCES: 1
+
+ # Enable Periodic Advertising
+ BLE_PERIODIC_ADV: 1
+ BLE_PERIODIC_ADV_SYNC_TRANSFER: 1
+ BLE_PERIODIC_ADV_SYNC_BIGINFO_REPORTS: 1
+
+ BLE_SOCK_USE_TCP: 0
+ BLE_SOCK_USE_LINUX_BLUE: 1
+ BLE_SOCK_LINUX_DEV: 1
+ BLE_TRANSPORT_HS: native
+ BLE_TRANSPORT_LL: socket
+
+ BLE_VERSION: 54
+ BLE_ISO_BROADCAST_SINK: 1
+ BLE_ISO_BROADCAST_SOURCE: 1
+ BLE_MAX_BIG: 1
+ BLE_MAX_BIS: 2
+
+ CONSOLE_UART: 1
+ CONSOLE_UART_BAUD: 1000000
+ CONSOLE_STICKY_PROMPT: 1
+ CONSOLE_UART_TX_BUF_SIZE: 256
+ STATS_CLI: 1
+ STATS_NAMES: 1
+
+ MSYS_1_BLOCK_COUNT: 100
diff --git a/nimble/host/audio/targets/btshell_native/target.yml b/nimble/host/audio/targets/btshell_native/target.yml
new file mode 100644
index 000000000..30b7d5b74
--- /dev/null
+++ b/nimble/host/audio/targets/btshell_native/target.yml
@@ -0,0 +1,22 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+target.app: "@apache-mynewt-nimble/apps/btshell"
+target.bsp: "@apache-mynewt-core/hw/bsp/native"
+target.build_profile: debug