This is an automated email from the ASF dual-hosted git repository. andk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit fc4b2deaad4c36f6f6c0e00d000c8e9d37fb886d Author: Andrzej Kaczmarek <[email protected]> AuthorDate: Tue Mar 8 07:54:03 2022 +0100 apps/blehcibridge: Remove app There's no need for separate bridge app, blehci can now work as a bridge using new transport architecture. --- apps/blehcibridge/pkg.yml | 34 ---------------------- apps/blehcibridge/src/main.c | 69 -------------------------------------------- apps/blehcibridge/syscfg.yml | 29 ------------------- 3 files changed, 132 deletions(-) diff --git a/apps/blehcibridge/pkg.yml b/apps/blehcibridge/pkg.yml deleted file mode 100644 index 5acd2e7..0000000 --- a/apps/blehcibridge/pkg.yml +++ /dev/null @@ -1,34 +0,0 @@ -# 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: apps/blehcibridge -pkg.type: app -pkg.description: BLE controller application exposing HCI over external interface -pkg.author: "Jerzy Kasenberg <[email protected]>" -pkg.homepage: "http://mynewt.apache.org/" -pkg.keywords: - -pkg.deps: - - "@apache-mynewt-core/sys/console" - - "@apache-mynewt-core/sys/log/stub" - - "@apache-mynewt-core/sys/stats/full" - - "@apache-mynewt-core/kernel/os" - - "@apache-mynewt-core/sys/shell" - - nimble/transport - -pkg.req_apis: - - ble_transport diff --git a/apps/blehcibridge/src/main.c b/apps/blehcibridge/src/main.c deleted file mode 100644 index 620cc37..0000000 --- a/apps/blehcibridge/src/main.c +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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. - */ - -#include <assert.h> -#include <os/mynewt.h> -#include <nimble/ble_hci_trans.h> - -static int -forward_cmd_to_controller(uint8_t *cmdbuf, void *arg) -{ - (void)arg; - - return ble_hci_trans_hs_cmd_tx(cmdbuf); -} - -int -forward_acl_to_controller(struct os_mbuf *om, void *arg) -{ - (void)arg; - - return ble_hci_trans_hs_acl_tx(om); -} - -static int -forward_evt_to_host(uint8_t *hci_ev, void *arg) -{ - (void)arg; - - return ble_hci_trans_ll_evt_tx(hci_ev); -} - -int -forward_acl_to_host(struct os_mbuf *om, void *arg) -{ - (void)arg; - - return ble_hci_trans_ll_acl_tx(om); -} - -int -main(void) -{ - /* Initialize OS */ - sysinit(); - - ble_hci_trans_cfg_hs(forward_evt_to_host, NULL, forward_acl_to_host, NULL); - ble_hci_trans_cfg_ll(forward_cmd_to_controller, NULL, forward_acl_to_controller, NULL); - - while (1) { - os_eventq_run(os_eventq_dflt_get()); - } - return 0; -} diff --git a/apps/blehcibridge/syscfg.yml b/apps/blehcibridge/syscfg.yml deleted file mode 100644 index 203ec25..0000000 --- a/apps/blehcibridge/syscfg.yml +++ /dev/null @@ -1,29 +0,0 @@ -# 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: - # Default task settings - OS_MAIN_STACK_SIZE: 64 - # Use USB transport by default - BLE_HCI_TRANSPORT: usb - # Stub console - CONSOLE_MODE: stub - - SHELL_TASK: 1 - - BLE_HCI_BRIDGE: 1
