From 3313d03ba8e4ee377646b5fd7ecb2b891664ecd9 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Wed, 2 Sep 2020 15:00:19 +0200 Subject: [PATCH] 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(+) create mode 100644 targets/dialog_cmac/pkg.yml create mode 100644 targets/dialog_cmac/syscfg.yml create mode 100644 targets/dialog_cmac/target.yml diff --git a/targets/dialog_cmac/pkg.yml b/targets/dialog_cmac/pkg.yml new file mode 100644 index 000000000..31242b200 --- /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 " +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 000000000..2f4d3348e --- /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 000000000..e3ca85cdb --- /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