You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2021/04/27 12:37:01 UTC

[mynewt-nimble] branch master updated: targets: Add sample target for controller on NRF5340 bsp

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 7823a64  targets: Add sample target for controller on NRF5340 bsp
7823a64 is described below

commit 7823a64caf2bcf4c291c5c8b5ed698ada6e1b51b
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Fri Apr 9 09:52:49 2021 +0200

    targets: Add sample target for controller on NRF5340 bsp
    
    This adds sample target for building NimBLE controller (blehci app)
    for Nordic NRF5340. It is used by default when combine image build
    is used for nordic_pca10095 bsp.
    
    Sample target should be used as a base for creating customized targets.
    This targets nordic_pca10095_net bsp, custom targets should point to
    appropriate BSP.
---
 targets/nordic_pca10095-blehci/pkg.yml    | 24 ++++++++++++++++++
 targets/nordic_pca10095-blehci/syscfg.yml | 42 +++++++++++++++++++++++++++++++
 targets/nordic_pca10095-blehci/target.yml | 22 ++++++++++++++++
 3 files changed, 88 insertions(+)

diff --git a/targets/nordic_pca10095-blehci/pkg.yml b/targets/nordic_pca10095-blehci/pkg.yml
new file mode 100644
index 0000000..3b72abe
--- /dev/null
+++ b/targets/nordic_pca10095-blehci/pkg.yml
@@ -0,0 +1,24 @@
+#
+# 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: targets/nordic_pca10095-blehci
+pkg.type: target
+pkg.description: Sample target for BLE controller on NRF5340
+pkg.author: "Apache Mynewt <de...@mynewt.apache.org>"
+pkg.homepage: "http://mynewt.apache.org/"
diff --git a/targets/nordic_pca10095-blehci/syscfg.yml b/targets/nordic_pca10095-blehci/syscfg.yml
new file mode 100644
index 0000000..4a4a1ba
--- /dev/null
+++ b/targets/nordic_pca10095-blehci/syscfg.yml
@@ -0,0 +1,42 @@
+#
+# 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:
+    BLE_HCI_TRANSPORT: nrf5340
+
+    MSYS_1_BLOCK_COUNT: 12
+    MSYS_1_BLOCK_SIZE: 292
+    BLE_LL_CFG_FEAT_DATA_LEN_EXT: 1
+    BLE_LL_CFG_FEAT_LE_2M_PHY: 1
+    BLE_LL_CFG_FEAT_LE_CODED_PHY: 1
+    BLE_LL_CFG_FEAT_LL_PRIVACY: 1
+    BLE_LL_CFG_FEAT_CTRL_TO_HOST_FLOW_CONTROL: 1
+    BLE_LL_CONN_INIT_MAX_TX_BYTES: 251
+    BLE_LL_CONN_INIT_SLOTS: 4
+    BLE_LL_DTM: 1
+    BLE_LL_DTM_EXTENSIONS: 1
+    BLE_LL_VND_EVENT_ON_ASSERT: 1
+    BLE_MAX_CONNECTIONS: 5
+    BLE_EXT_ADV: 1
+    BLE_EXT_ADV_MAX_SIZE: 1650
+    BLE_MAX_PERIODIC_SYNCS: 5
+    BLE_MULTI_ADV_INSTANCES: 5
+    BLE_PERIODIC_ADV: 1
+    BLE_PERIODIC_ADV_SYNC_TRANSFER: 1
+    BLE_VERSION: 51
diff --git a/targets/nordic_pca10095-blehci/target.yml b/targets/nordic_pca10095-blehci/target.yml
new file mode 100644
index 0000000..4d2641b
--- /dev/null
+++ b/targets/nordic_pca10095-blehci/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/blehci"
+target.bsp: "@apache-mynewt-core/hw/bsp/nordic_pca10095_net"
+target.build_profile: debug