From 7823a64caf2bcf4c291c5c8b5ed698ada6e1b51b Mon Sep 17 00:00:00 2001 From: Jerzy Kasenberg Date: Fri, 9 Apr 2021 09:52:49 +0200 Subject: [PATCH] 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(+) create mode 100644 targets/nordic_pca10095-blehci/pkg.yml create mode 100644 targets/nordic_pca10095-blehci/syscfg.yml create mode 100644 targets/nordic_pca10095-blehci/target.yml diff --git a/targets/nordic_pca10095-blehci/pkg.yml b/targets/nordic_pca10095-blehci/pkg.yml new file mode 100644 index 000000000..3b72abe1b --- /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 " +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 000000000..4a4a1ba06 --- /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 000000000..4d2641b77 --- /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