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 2020/09/21 11:54:08 UTC

[mynewt-nimble] 03/05: targets: Add sample target for controller on Dialog CMAC

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 3313d03ba8e4ee377646b5fd7ecb2b891664ecd9
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Wed Sep 2 15:00:19 2020 +0200

    targets: Add sample target for controller on Dialog CMAC
    
    This adds sample target for building NimBLE controller (blehci app)
    for Dialog CMAC. It is used by default when "dialog_cmac" transport
    is selected on host side.
    
    Sample target should be used as a base for creating customized targets.
    The default settings for timigs are recommended values and should not
    be changed unless required.
---
 targets/dialog_cmac/pkg.yml    |  5 +++++
 targets/dialog_cmac/syscfg.yml | 16 ++++++++++++++++
 targets/dialog_cmac/target.yml |  3 +++
 3 files changed, 24 insertions(+)

diff --git a/targets/dialog_cmac/pkg.yml b/targets/dialog_cmac/pkg.yml
new file mode 100644
index 0000000..31242b2
--- /dev/null
+++ b/targets/dialog_cmac/pkg.yml
@@ -0,0 +1,5 @@
+pkg.name: targets/dialog_cmac
+pkg.type: target
+pkg.description: Sample target for BLE controller on Dialog CMAC
+pkg.author: "Apache Mynewt <de...@mynewt.apache.org>"
+pkg.homepage: "http://mynewt.apache.org/"
diff --git a/targets/dialog_cmac/syscfg.yml b/targets/dialog_cmac/syscfg.yml
new file mode 100644
index 0000000..2f4d334
--- /dev/null
+++ b/targets/dialog_cmac/syscfg.yml
@@ -0,0 +1,16 @@
+syscfg.vals:
+    MCU_DEEP_SLEEP: 1
+    MCU_SLP_TIMER: 1
+    MCU_SLP_TIMER_32K_ONLY: 1
+
+    BLE_HCI_TRANSPORT: dialog_cmac
+
+    # LL recommended settings (decreasing timing values is not recommended)
+    BLE_LL_CFG_FEAT_CTRL_TO_HOST_FLOW_CONTROL: 1
+    BLE_LL_CONN_INIT_MIN_WIN_OFFSET: 2
+    BLE_LL_RFMGMT_ENABLE_TIME: 20
+    BLE_LL_SCHED_AUX_MAFS_DELAY: 150
+    BLE_LL_SCHED_AUX_CHAIN_MAFS_DELAY: 150
+
+    # NOTE: set public address in target settings
+    # BLE_PUBLIC_DEV_ADDR: "(uint8_t[6]){0xff, 0xff, 0xff, 0xff, 0xff, 0xff}"
diff --git a/targets/dialog_cmac/target.yml b/targets/dialog_cmac/target.yml
new file mode 100644
index 0000000..e3ca85c
--- /dev/null
+++ b/targets/dialog_cmac/target.yml
@@ -0,0 +1,3 @@
+target.app: "@apache-mynewt-nimble/apps/blehci"
+target.bsp: "@apache-mynewt-core/hw/bsp/dialog_cmac"
+target.build_profile: speed