From bdc10744fb338ae197692713a0b48a7ccc36f566 Mon Sep 17 00:00:00 2001 From: JF Date: Sun, 26 Apr 2020 10:25:59 +0200 Subject: Add Nimble in libs directory --- .../porting/targets/linux_blemesh/pkg.yml | 40 +++++++++++++++++ .../porting/targets/linux_blemesh/syscfg.yml | 50 ++++++++++++++++++++++ .../porting/targets/linux_blemesh/target.yml | 21 +++++++++ 3 files changed, 111 insertions(+) create mode 100644 src/libs/mynewt-nimble/porting/targets/linux_blemesh/pkg.yml create mode 100644 src/libs/mynewt-nimble/porting/targets/linux_blemesh/syscfg.yml create mode 100644 src/libs/mynewt-nimble/porting/targets/linux_blemesh/target.yml (limited to 'src/libs/mynewt-nimble/porting/targets/linux_blemesh') diff --git a/src/libs/mynewt-nimble/porting/targets/linux_blemesh/pkg.yml b/src/libs/mynewt-nimble/porting/targets/linux_blemesh/pkg.yml new file mode 100644 index 00000000..c3149333 --- /dev/null +++ b/src/libs/mynewt-nimble/porting/targets/linux_blemesh/pkg.yml @@ -0,0 +1,40 @@ +# 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/linux_blemesh" +pkg.type: "target" +pkg.description: This target is used to generate syscfg.h file and other artifacts for linux_blemesh example app. +pkg.author: +pkg.homepage: + +pkg.deps: + - "@apache-mynewt-core/kernel/os" + - "@apache-mynewt-core/sys/console/stub" + - "@apache-mynewt-core/sys/log/stub" + - "@apache-mynewt-core/sys/stats/stub" + - "@apache-mynewt-nimble/nimble/host" + - "@apache-mynewt-nimble/nimble/transport/socket" + - "@apache-mynewt-nimble/nimble/host/services/ans" + - "@apache-mynewt-nimble/nimble/host/services/bas" + - "@apache-mynewt-nimble/nimble/host/services/dis" + - "@apache-mynewt-nimble/nimble/host/services/gap" + - "@apache-mynewt-nimble/nimble/host/services/gatt" + - "@apache-mynewt-nimble/nimble/host/services/ias" + - "@apache-mynewt-nimble/nimble/host/services/ipss" + - "@apache-mynewt-nimble/nimble/host/services/lls" + - "@apache-mynewt-nimble/nimble/host/services/tps" diff --git a/src/libs/mynewt-nimble/porting/targets/linux_blemesh/syscfg.yml b/src/libs/mynewt-nimble/porting/targets/linux_blemesh/syscfg.yml new file mode 100644 index 00000000..efc4150b --- /dev/null +++ b/src/libs/mynewt-nimble/porting/targets/linux_blemesh/syscfg.yml @@ -0,0 +1,50 @@ +# 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: + MSYS_1_BLOCK_COUNT: 80 + + BLE_MESH_ADV_BUF_COUNT: 20 + BLE_MESH_TX_SEG_MAX: 6 + + BLE_MESH: 1 + BLE_MESH_SHELL: 0 + BLE_MESH_PROV: 1 + BLE_MESH_RELAY: 1 + BLE_MESH_PB_ADV: 1 + BLE_MESH_PB_GATT: 1 + BLE_MESH_LOW_POWER: 1 + BLE_MESH_LPN_AUTO: 0 + BLE_MESH_GATT_PROXY: 1 + BLE_MESH_LABEL_COUNT: 2 + BLE_MESH_SUBNET_COUNT: 2 + BLE_MESH_MODEL_GROUP_COUNT: 2 + BLE_MESH_APP_KEY_COUNT: 4 + BLE_MESH_IV_UPDATE_TEST: 1 + BLE_MESH_TESTING: 1 + BLE_MESH_FRIEND: 1 + BLE_MESH_CFG_CLI: 1 + BLE_MESH_SETTINGS: 0 + CONFIG_NFFS: 0 + + BLE_SOCK_USE_TCP: 0 + BLE_SOCK_USE_LINUX_BLUE: 1 + BLE_SOCK_TASK_PRIO: 3 + BLE_SOCK_STACK_SIZE: 1028 + + LOG_LEVEL: 0 diff --git a/src/libs/mynewt-nimble/porting/targets/linux_blemesh/target.yml b/src/libs/mynewt-nimble/porting/targets/linux_blemesh/target.yml new file mode 100644 index 00000000..83eb4158 --- /dev/null +++ b/src/libs/mynewt-nimble/porting/targets/linux_blemesh/target.yml @@ -0,0 +1,21 @@ +# 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: "porting/targets/dummy_app" +target.bsp: "porting/targets/dummy_bsp" +target.build_profile: "debug" -- cgit v1.2.3