Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
[toble] Make woble and toble use same ble config tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
turon committed Oct 21, 2019
1 parent cf56071 commit 1498f02
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 4 deletions.
6 changes: 4 additions & 2 deletions main/include/OpenThreadConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#ifndef OPENTHREAD_PLATFORM_CONFIG_H
#define OPENTHREAD_PLATFORM_CONFIG_H

#include "ble_config.h"

// Disable the Nordic-supplied OpenThread logging facilities and use
// the facilities provided by the OpenWeave Device Layer (see
// openweave/src/adaptations/device-layer/nRF5/Logging.cpp).
Expand Down Expand Up @@ -66,7 +68,7 @@
#define OPENTHREAD_CONFIG_MLE_UNICAST_RETRANSMISSION_DELAY 1500
#define OPENTHREAD_CONFIG_MLE_CHILD_ID_REQUEST_TIMEOUT 10000


#endif // OPENTHREAD_PLATFORM_CONFIG_H
#define OPENTHREAD_CONFIG_NORDIC_BLE_CFG_TAG NRF_BLE_CFG_TAG


#endif // OPENTHREAD_PLATFORM_CONFIG_H
11 changes: 11 additions & 0 deletions main/include/WeaveProjectConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
#ifndef WEAVE_PROJECT_CONFIG_H
#define WEAVE_PROJECT_CONFIG_H

#include "ble_config.h"


#define WEAVE_PROGRESS_LOGGING 1

/**
Expand Down Expand Up @@ -148,4 +151,12 @@
*/
#define WEAVE_CONFIG_EVENT_LOGGING_DEFAULT_IMPORTANCE nl::Weave::Profiles::DataManagement::Debug

/**
* WEAVE_DEVICE_LAYER_BLE_CONN_CFG_TAG
*
* The SoftDevice BLE connection configuration tag must be the same
* across both OpenWeave and OpenThread.
*/
#define WEAVE_DEVICE_LAYER_BLE_CONN_CFG_TAG NRF_BLE_CFG_TAG

#endif // WEAVE_PROJECT_CONFIG_H
26 changes: 26 additions & 0 deletions main/include/ble_config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
*
* Copyright (c) 2019 Google LLC.
* All rights reserved.
*
* Licensed 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.
*/

#ifndef BLE_CONFIG_H
#define BLE_CONFIG_H

// ---- BLE Config ----
#define NRF_BLE_CFG_TAG 1


#endif // BLE_CONFIG_H
2 changes: 1 addition & 1 deletion third_party/openthread
2 changes: 1 addition & 1 deletion third_party/openweave-core

0 comments on commit 1498f02

Please sign in to comment.