You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2022/03/17 10:50:27 UTC

[mynewt-nimble] 17/22: apps/blehci: Update configuration for new transport

This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit 1118fe21fe2f79d1116aaeb38d873855054205be
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Thu Mar 3 18:08:26 2022 +0100

    apps/blehci: Update configuration for new transport
    
    Dependency to nimble/controller is not needed since blehci can now run
    on both app (as a bridge to net core) and net core.
    
    For non-netcore build we select UART by default, otherwise keep whatever
    default was set by BSP.
---
 apps/blehci/pkg.yml    | 1 -
 apps/blehci/syscfg.yml | 6 ++++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/apps/blehci/pkg.yml b/apps/blehci/pkg.yml
index 2c63a04..e385d7d 100644
--- a/apps/blehci/pkg.yml
+++ b/apps/blehci/pkg.yml
@@ -27,7 +27,6 @@ pkg.deps:
     - "@apache-mynewt-core/sys/log/stub"
     - "@apache-mynewt-core/sys/stats/full"
     - "@apache-mynewt-core/kernel/os"
-    - nimble/controller
     - nimble/transport
 
 pkg.req_apis:
diff --git a/apps/blehci/syscfg.yml b/apps/blehci/syscfg.yml
index ee80623..ec20e68 100644
--- a/apps/blehci/syscfg.yml
+++ b/apps/blehci/syscfg.yml
@@ -19,7 +19,9 @@
 syscfg.vals:
     # Default task settings
     OS_MAIN_STACK_SIZE: 64
-    # Use UART transport by default
-    BLE_HCI_TRANSPORT: uart
     # Stub console
     CONSOLE_MODE: stub
+
+syscfg.vals.'!BLE_TRANSPORT_NETCORE':
+    # Use UART by default if not built on netcore
+    BLE_TRANSPORT_HS: uart