summaryrefslogtreecommitdiff
path: root/src/libs/mynewt-nimble/targets
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2021-02-04 16:36:34 (GMT)
committerGitea <gitea@fake.local>2021-02-04 16:36:34 (GMT)
commit3f7360ca186933b600d362c12e7c62d9df509aa4 (patch)
tree9e7bff44e541526ae50b183a64cfe1d22a13cc56 /src/libs/mynewt-nimble/targets
parent76ab14fa5f7979dd764b449396dc5835a286ec6d (diff)
parent6259b816287f8f74dadf50334a445cd9fe16d415 (diff)
Merge branch 'develop' of JF/PineTime into master
Diffstat (limited to 'src/libs/mynewt-nimble/targets')
-rw-r--r--src/libs/mynewt-nimble/targets/dialog_cmac/pkg.yml5
-rw-r--r--src/libs/mynewt-nimble/targets/dialog_cmac/syscfg.yml16
-rw-r--r--src/libs/mynewt-nimble/targets/dialog_cmac/target.yml3
3 files changed, 24 insertions, 0 deletions
diff --git a/src/libs/mynewt-nimble/targets/dialog_cmac/pkg.yml b/src/libs/mynewt-nimble/targets/dialog_cmac/pkg.yml
new file mode 100644
index 0000000..31242b2
--- /dev/null
+++ b/src/libs/mynewt-nimble/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 <dev@mynewt.apache.org>"
+pkg.homepage: "http://mynewt.apache.org/"
diff --git a/src/libs/mynewt-nimble/targets/dialog_cmac/syscfg.yml b/src/libs/mynewt-nimble/targets/dialog_cmac/syscfg.yml
new file mode 100644
index 0000000..2f4d334
--- /dev/null
+++ b/src/libs/mynewt-nimble/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/src/libs/mynewt-nimble/targets/dialog_cmac/target.yml b/src/libs/mynewt-nimble/targets/dialog_cmac/target.yml
new file mode 100644
index 0000000..e3ca85c
--- /dev/null
+++ b/src/libs/mynewt-nimble/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