Skip to content

Release candidate for mbed-os-5.4.6 #4356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 72 commits into from
May 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
a50c6f3
Odin: Disable sleep as it's not compatible with WiFi driver
bulislaw May 4, 2017
e5db7c1
DISCO_L072CZ: Add all files (pinout, startup, etc...)
Apr 12, 2017
04645f0
DISCO_L072CZ: Modifications and verifications to build
Apr 13, 2017
3706988
DISCO_L072CZ_LRWAN1: add LRWAN1 to the name
Apr 18, 2017
6432da0
DISCO_L072CZ_LRWAN1: typo correction
Apr 19, 2017
3b393f8
DISCO_L072CZ_LRWAN1: add IAR export
Apr 19, 2017
bb71895
DISCO_L072CZ_LRWAN1: Change LED PIN definition
arostm Apr 24, 2017
f71b20f
DISCO_L072CZ_LRWAN1: PreipheralPins.c corrections
arostm Apr 25, 2017
af661bc
DISCO_L072CZ_LRWAN1: Clock configuration => 30MHz to 32MHz
arostm Apr 25, 2017
f1b01cf
DISCO_L072CZ_LRWAN1: PinNames.h correction (USB TX and RX)
arostm Apr 25, 2017
71505b3
DISCO_L072CZ_LRWAN1: typo correction
arostm Apr 25, 2017
a1e78ea
DISCO_L072CZ_LRWAN1: targets.json correction
arostm Apr 25, 2017
8eb8f3a
DISCO_L072CZ_LRWAN1: PinsName.h => PA_5 changed with PB_13 for the SP…
arostm Apr 27, 2017
de2f540
DISCO_L072CZ_LRWAN1: Typo correction in peipheralPins.c and PinNames.h
arostm Apr 28, 2017
f412e3d
DISCO_L072CZ_LRWAN1: Typo correction
arostm Apr 28, 2017
868a5f6
DISCO_L072CZ_LRWAN1: prepipheralPins and PinNames correction
arostm May 2, 2017
d28d022
DISCO_L072CZ_LRWAN1: peripheralPins add and change comments
arostm May 2, 2017
6b588e2
DISCO_L072CZ_LRWAN1: delete tests mbed os2 result
arostm May 3, 2017
5a05033
DISCO_L072CZ_LRWAN1: change date in periperalPins.c
arostm May 3, 2017
0150e56
lwip - power up emac before reading its settings
tung7970 Nov 3, 2016
4f0733d
lwip - delay mbed_lwip_set_mac_address until device is inited
tung7970 Apr 27, 2017
c5d379e
STM32F3: Correct handling of USB ISTR and endpoint registers
bscott-zebra Apr 10, 2017
ada0d21
avoid 03/05 intel-hex records for nordics devices
nvlsianpu May 5, 2017
5dc7fc9
LPC4088: add LPC4088Code.binary_hook to the white list of the embitz,…
netzimme May 8, 2017
07a29eb
Limit ISR stack to 4k on NUCLEO_F429ZI
May 9, 2017
9743c6d
MAX32630FTHR: Fix NVIC_SetVector type in HAL
0xc0170 Mar 17, 2017
0fe89f8
Modifying the code to support mbed OS 5 -> add mbed_rtx.h Modifying t…
khj098765 Apr 25, 2017
b2f6fe0
Modified coding style of mbed. - deleted dead code - deleted test code
khj098765 Apr 26, 2017
e92314d
modified typo
khj098765 Apr 26, 2017
c8f26e9
delete dead code. -> gpio_irq_api.c modified coding style. -> pinmap.c
khj098765 Apr 27, 2017
056ba62
add to support gcc & iar
khj098765 Apr 28, 2017
7280486
modify GCC_ARM startup code & mbed_rtx.h syntax error correct.
khj098765 May 8, 2017
77551a8
Fix DMA channel over-allocate
ccli8 Apr 20, 2017
0ef04ab
Fix pwmout power-down condition
ccli8 Apr 20, 2017
a2a3dfd
Fix serial error with sync/async calls interlaced
ccli8 Apr 26, 2017
3a90941
Change comment for serial_getc/serial_putc
ccli8 May 9, 2017
4a9376a
NORDIC: moving nRF52840 files to NRF5 "common" port. TARGET_NRF5_SDK1…
nvlsianpu Apr 26, 2017
f6c4441
HAL driver: Add changes from needad for nrf52840 support us_ticker, s…
nvlsianpu Apr 26, 2017
ca20e33
Make NRF5 BLE implementation compatible with SoftDevice API 2.x.x,3.x…
nvlsianpu Apr 27, 2017
053ccd0
Apply resloution for the "Read long UUID of service problem" accordin…
nvlsianpu Apr 27, 2017
a8f4d2a
coding style format.
nvlsianpu Apr 28, 2017
2634574
remove orphaned NRF5_SDK13 hal api driver
nvlsianpu Apr 28, 2017
c1a9326
Fix compilation errors on linux machine
nvlsianpu Apr 28, 2017
b7d81be
NRF5: changes for code review of merg nrf52840 to NRF5 sources s140 h…
nvlsianpu May 9, 2017
523356b
STM32 NUCLEO boards with Ethernet connector: solve conflict with D11 …
jeromecoutant May 4, 2017
feeadd6
Remove unsupported Coide exports
theotherjimmy May 8, 2017
3af9438
Revome duplicate optimization flags in IAR export
theotherjimmy May 9, 2017
9558958
F1 CUBE V1.5.0
LMESTM May 4, 2017
7026dfe
Fix Typo in include file name
LMESTM May 4, 2017
f30cd34
STM32 remove usage of deprecated MACROs
LMESTM May 4, 2017
2ff885f
STM32 F1: update state check in Serial after HAL update
LMESTM May 4, 2017
518510e
Fixing Typo in MACRO
LMESTM May 11, 2017
1d5a4e6
platform added
ytsuboi May 11, 2017
56348a7
removed itself from extra_labels
ytsuboi May 12, 2017
2654bfb
STM32 SPI do not use a timeout for spi transfers
LMESTM May 11, 2017
851273c
Fix RAM vector table for NCS36510
c1728p9 Apr 25, 2017
853cd42
Fixed timeout units in events timing test
geky Apr 24, 2017
70b66e9
stm32f4xx: Revert #3424
davedesro May 12, 2017
6ec2b51
Moved stream interface to cb_cert_utils.h
May 17, 2017
fa2828e
Moved stream interface to cb_cert_utils.h
May 17, 2017
915befd
Minor comment fixes
May 17, 2017
9fa4008
Fixed startHandle type for cbGATT_addService
May 17, 2017
f996c1b
Added cbSTATUS_RECEIVE_DATA_MODE + macros
May 17, 2017
ddb80e4
Added cbHW_setSysTickMode
May 17, 2017
cd7ffb1
Added cbBSM_setStaticLinkKeyNvdsId
May 17, 2017
7d8b57f
Added quality of service functions
May 17, 2017
e2e927e
Added BD_ADDR macros
May 17, 2017
ee050f3
Refactored the driver class
May 17, 2017
380832a
Updated ODIN driver binaries for v1.3 rc2
May 17, 2017
ffc1f39
Add static to NRF5 SDK11 macro definition
theotherjimmy May 19, 2017
d62312b
Update MBED_LIBRARY_VERSION to v143
adbridge May 21, 2017
3e78459
Move duplicated NRF52 + MCU_NRF51822 files into NRF52
theotherjimmy May 22, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion TESTS/events/timing/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void semaphore_timing_test() {

// Test setup
utest::v1::status_t test_setup(const size_t number_of_cases) {
GREENTEA_SETUP((number_of_cases+1)*TEST_EVENTS_TIMING_TIME, "default_auto");
GREENTEA_SETUP((number_of_cases+1)*TEST_EVENTS_TIMING_TIME/1000, "default_auto");
return verbose_test_setup_handler(number_of_cases);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "ble_conn_params.h"

#include "btle_gap.h"
#include "btle_advertising.h"
#include "custom/custom_helper.h"

#include "ble/GapEvents.h"
Expand Down Expand Up @@ -165,13 +164,22 @@ error_t btle_init(void)
return ERROR_INVALID_PARAM;
}

// Peer Manger must been initialised prior any other call to its API (this file and btle_security_pm.cpp)
pm_init();

#if (NRF_SD_BLE_API_VERSION <= 2)
ble_gap_addr_t addr;
if (sd_ble_gap_address_get(&addr) != NRF_SUCCESS) {
return ERROR_INVALID_PARAM;
}
if (sd_ble_gap_address_set(BLE_GAP_ADDR_CYCLE_MODE_NONE, &addr) != NRF_SUCCESS) {
return ERROR_INVALID_PARAM;
}
#else
ble_gap_privacy_params_t privacy_params = {0};
privacy_params.privacy_mode = BLE_GAP_PRIVACY_MODE_OFF;
pm_privacy_set(&privacy_params);
#endif

ASSERT_STATUS( softdevice_ble_evt_handler_set(btle_handler));
ASSERT_STATUS( softdevice_sys_evt_handler_set(sys_evt_dispatch));
Expand Down Expand Up @@ -219,12 +227,25 @@ static void btle_handler(ble_evt_t *p_ble_evt)
gap.setConnectionHandle(handle);
const Gap::ConnectionParams_t *params = reinterpret_cast<Gap::ConnectionParams_t *>(&(p_ble_evt->evt.gap_evt.params.connected.conn_params));
const ble_gap_addr_t *peer = &p_ble_evt->evt.gap_evt.params.connected.peer_addr;
#if (NRF_SD_BLE_API_VERSION <= 2)
const ble_gap_addr_t *own = &p_ble_evt->evt.gap_evt.params.connected.own_addr;

gap.processConnectionEvent(handle,
role,
static_cast<BLEProtocol::AddressType_t>(peer->addr_type), peer->addr,
static_cast<BLEProtocol::AddressType_t>(own->addr_type), own->addr,
params);
role,
static_cast<BLEProtocol::AddressType_t>(peer->addr_type), peer->addr,
static_cast<BLEProtocol::AddressType_t>(own->addr_type), own->addr,
params);
#else
Gap::AddressType_t addr_type;
Gap::Address_t own_address;
gap.getAddress(&addr_type, own_address);

gap.processConnectionEvent(handle,
role,
static_cast<BLEProtocol::AddressType_t>(peer->addr_type), peer->addr,
addr_type, own_address,
params);
#endif
break;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extern "C" {
#include "common/common.h"

#include "ble_srv_common.h"
#include "nrf_ble.h"
#include "headers/nrf_ble.h"

error_t btle_init(void);

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void bleGattcEventHandler(const ble_evt_t *p_ble_evt)

case BLE_GATTC_EVT_CHAR_VAL_BY_UUID_READ_RSP:
if (sdSingleton.isActive()) {
sdSingleton.processDiscoverUUIDResponse(&p_ble_evt->evt.gattc_evt.params.char_val_by_uuid_read_rsp);
sdSingleton.processDiscoverUUIDResponse(&p_ble_evt->evt.gattc_evt);
}
break;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
#include "common/common.h"

#include "nrf_ble_gap.h"
#include "headers/nrf_ble_gap.h"
#include "ble_conn_params.h"

static inline uint32_t msec_to_1_25msec(uint32_t interval_ms) ATTR_ALWAYS_INLINE ATTR_CONST;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ ble_error_t btle_setLinkSecurity(Gap::Handle_t connectionHandle, SecurityManager
*/
ble_error_t btle_purgeAllBondingState(void);

#if (NRF_SD_BLE_API_VERSION <= 2)
/**
* Query the SoftDevice bond table to extract a whitelist containing the BLE
* addresses and IRKs of bonded devices.
Expand All @@ -98,6 +99,7 @@ ble_error_t btle_purgeAllBondingState(void);
* @return BLE_ERROR_NONE Or appropriate error code indicating reason for failure.
*/
ble_error_t btle_createWhitelistFromBondTable(ble_gap_whitelist_t *p_whitelist);
#endif

/**
* Function to test whether a BLE address is generated using an IRK.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#if defined(S130) || defined(S132)
#if defined(S130) || defined(S132) || defined(S140)
#include "btle.h"

#include "nRF5xn.h"
Expand Down Expand Up @@ -94,10 +94,6 @@ btle_initializeSecurity(bool enableBonding,
}
}

if (pm_init() != NRF_SUCCESS) {
return BLE_ERROR_UNSPECIFIED;
}

// update default security parameters with function call parameters
securityParameters.bond = enableBonding;
securityParameters.mitm = requireMITM;
Expand Down Expand Up @@ -393,6 +389,7 @@ void pm_handler(pm_evt_t const *p_event)
}
}

#if (NRF_SD_BLE_API_VERSION <= 2)
ble_error_t
btle_createWhitelistFromBondTable(ble_gap_whitelist_t *p_whitelist)
{
Expand All @@ -408,7 +405,7 @@ btle_createWhitelistFromBondTable(ble_gap_whitelist_t *p_whitelist)
return BLE_ERROR_INVALID_STATE;
}
}

#endif

bool
btle_matchAddressAndIrk(ble_gap_addr_t const * p_addr, ble_gap_irk_t const * p_irk)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define _CUSTOM_HELPER_H_

#include "common/common.h"
#include "nrf_ble.h"
#include "headers/nrf_ble.h"
#include "ble/UUID.h"
#include "ble/GattCharacteristic.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/
#include "nRF5xCharacteristicDescriptorDiscoverer.h"
#include "nrf_ble_err.h"
#include "headers/nrf_ble_err.h"
#include "ble/DiscoveredCharacteristicDescriptor.h"

nRF5xCharacteristicDescriptorDiscoverer::nRF5xCharacteristicDescriptorDiscoverer() :
Expand Down Expand Up @@ -136,6 +136,7 @@ void nRF5xCharacteristicDescriptorDiscoverer::processAttributeInformation(
return;
}

#if (NRF_SD_BLE_API_VERSION <= 2)
// for all UUIDS found, process the discovery
for (uint16_t i = 0; i < infos.count; ++i) {
bool use_16bits_uuids = infos.format == BLE_GATTC_ATTR_INFO_FORMAT_16BIT;
Expand All @@ -146,6 +147,27 @@ void nRF5xCharacteristicDescriptorDiscoverer::processAttributeInformation(

// prepare the next round of descriptors discovery
uint16_t startHandle = infos.attr_info[infos.count - 1].handle + 1;
#else
uint16_t startHandle;
// for all UUIDS found, process the discovery
if (infos.format == BLE_GATTC_ATTR_INFO_FORMAT_16BIT) {
for (uint16_t i = 0; i < infos.count; ++i) {
UUID uuid = UUID(infos.info.attr_info16[i].uuid.uuid);
discovery->process(infos.info.attr_info16[i].handle, uuid);
}

// prepare the next round of descriptors discovery
startHandle = infos.info.attr_info16[infos.count - 1].handle + 1;
} else {
for (uint16_t i = 0; i < infos.count; ++i) {
UUID uuid = UUID(infos.info.attr_info128[i].uuid.uuid128, UUID::LSB);
discovery->process(infos.info.attr_info128[i].handle, uuid);
}

// prepare the next round of descriptors discovery
startHandle = infos.info.attr_info128[infos.count - 1].handle + 1;
}
#endif
uint16_t endHandle = discovery->getCharacteristic().getLastHandle();

if(startHandle > endHandle) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "ble/DiscoveredCharacteristic.h"
#include "ble/CharacteristicDescriptorDiscovery.h"
#include "ble/GattClient.h"
#include "nrf_ble_gattc.h"
#include "headers/nrf_ble_gattc.h"

/**
* @brief Manage the discovery of Characteristic descriptors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "nRF5xDiscoveredCharacteristic.h"
#include "nRF5xGattClient.h"
#include "nrf_ble_gatt.h"
#include "headers/nrf_ble_gatt.h"

void
nRF5xDiscoveredCharacteristic::setup(nRF5xGattClient *gattcIn,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define __NRF_DISCOVERED_CHARACTERISTIC_H__

#include "ble/DiscoveredCharacteristic.h"
#include "nrf_ble_gatt.h"
#include "headers/nrf_ble_gatt.h"

class nRF5xGattClient; /* forward declaration */

Expand Down
Loading