Skip to content

Commit 1f1168a

Browse files
committed
NRF5: changes for code review of merg nrf52840 to NRF5 sources
s140 headers renamed form ble_* to nrf_ble_*, Removed s130 and s132 headers named form ble_* (Them had been added by #2ff572682798562e812015dc775b5896e0fda5a4) Headers inclusinons were changed in order to meet above changes. Revrted bad change in us_ticker.c: use __disable_irq lock instead of core_util_critical_section_enter lock for setting rtc1 tick for systick emulation as was good before.
1 parent 382a067 commit 1f1168a

File tree

74 files changed

+99
-118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+99
-118
lines changed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/btle/btle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ extern "C" {
5050
#include "ble_stack_handler_types.h"
5151
}
5252

53-
#include "ble_hci.h"
53+
#include "nrf_ble_hci.h"
5454
#include "btle_discovery.h"
5555

5656
#include "nRF5xGattClient.h"

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/btle/btle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ extern "C" {
2424
#include "common/common.h"
2525

2626
#include "ble_srv_common.h"
27-
#include "headers/ble.h"
27+
#include "headers/nrf_ble.h"
2828

2929
error_t btle_init(void);
3030

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/btle/btle_gap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
#include "common/common.h"
1717

18-
#include "ble_gap.h"
18+
#include "headers/nrf_ble_gap.h"
1919
#include "ble_conn_params.h"
2020

2121
static inline uint32_t msec_to_1_25msec(uint32_t interval_ms) ATTR_ALWAYS_INLINE ATTR_CONST;

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/btle/custom/custom_helper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#define _CUSTOM_HELPER_H_
1919

2020
#include "common/common.h"
21-
#include "headers/ble.h"
21+
#include "headers/nrf_ble.h"
2222
#include "ble/UUID.h"
2323
#include "ble/GattCharacteristic.h"
2424

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/nRF5xCharacteristicDescriptorDiscoverer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616
#include "nRF5xCharacteristicDescriptorDiscoverer.h"
17-
#include "ble_err.h"
17+
#include "headers/nrf_ble_err.h"
1818
#include "ble/DiscoveredCharacteristicDescriptor.h"
1919

2020
nRF5xCharacteristicDescriptorDiscoverer::nRF5xCharacteristicDescriptorDiscoverer() :

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/nRF5xCharacteristicDescriptorDiscoverer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "ble/DiscoveredCharacteristic.h"
2222
#include "ble/CharacteristicDescriptorDiscovery.h"
2323
#include "ble/GattClient.h"
24-
#include "ble_gattc.h"
24+
#include "headers/nrf_ble_gattc.h"
2525

2626
/**
2727
* @brief Manage the discovery of Characteristic descriptors

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/nRF5xDiscoveredCharacteristic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#include "nRF5xDiscoveredCharacteristic.h"
1818
#include "nRF5xGattClient.h"
19-
#include "ble_gatt.h"
19+
#include "headers/nrf_ble_gatt.h"
2020

2121
void
2222
nRF5xDiscoveredCharacteristic::setup(nRF5xGattClient *gattcIn,

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/nRF5xDiscoveredCharacteristic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#define __NRF_DISCOVERED_CHARACTERISTIC_H__
1919

2020
#include "ble/DiscoveredCharacteristic.h"
21-
#include "ble_gatt.h"
21+
#include "headers/nrf_ble_gatt.h"
2222

2323
class nRF5xGattClient; /* forward declaration */
2424

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/nRF5xGap.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include "common/common.h"
2626
#include "ble_advdata.h"
27-
#include "ble_hci.h"
27+
#include "headers/nrf_ble_hci.h"
2828

2929
#if (NRF_SD_BLE_API_VERSION >= 3)
3030
#include "peer_manager.h"
@@ -141,6 +141,9 @@ ble_error_t nRF5xGap::setAdvertisingData(const GapAdvertisingData &advData, cons
141141
/**************************************************************************/
142142
ble_error_t nRF5xGap::startAdvertising(const GapAdvertisingParams &params)
143143
{
144+
uint32_t err;
145+
ble_gap_adv_params_t adv_para = {0};
146+
144147
/* Make sure we support the advertising type */
145148
if (params.getAdvertisingType() == GapAdvertisingParams::ADV_CONNECTABLE_DIRECTED) {
146149
/* ToDo: This requires a propery security implementation, etc. */
@@ -173,10 +176,7 @@ ble_error_t nRF5xGap::startAdvertising(const GapAdvertisingParams &params)
173176
(params.getTimeout() > GapAdvertisingParams::GAP_ADV_PARAMS_TIMEOUT_MAX)) {
174177
return BLE_ERROR_PARAM_OUT_OF_RANGE;
175178
}
176-
uint32_t err;
177-
178-
ble_gap_adv_params_t adv_para = {0};
179-
179+
180180
#if (NRF_SD_BLE_API_VERSION <= 2)
181181
/* Allocate the stack's whitelist statically */
182182
ble_gap_whitelist_t whitelist;

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/nRF5xGap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#define YOTTA_CFG_IRK_TABLE_MAX_SIZE BLE_GAP_WHITELIST_IRK_MAX_COUNT
4040
#endif
4141
#include "ble/blecommon.h"
42-
#include "headers/ble.h"
42+
#include "headers/nrf_ble.h"
4343
#include "ble/GapAdvertisingParams.h"
4444
#include "ble/GapAdvertisingData.h"
4545
#include "ble/Gap.h"

0 commit comments

Comments
 (0)