Commit Graph

39 Commits

Author SHA1 Message Date
James Devine 85dd2e7af2 nrf51-sdk: removed unneccessary files from the nrf51-sdk repository, for mbed 2.0 compatability 2016-04-08 11:33:23 +01:00
James Devine 97f6bff7c4 nrf51-sdk: refined patch to repo and removed debug
This commit removes an unneccessary changed, and also resolves printf statements to DM_LOG statements.
2016-02-26 12:05:44 +00:00
James Devine 62ad4f4e4b nrf51-sdk : rough first draft of working BLE STACK
added correct IRK matching which softdevice doesn't do correctly.

Fixed whitelisting from adding IRK and Address.
2016-02-26 12:05:44 +00:00
James Devine 94c31c8dd2 bonding duplication bug fix
This patch corrects a problem where the bonding table would add a duplicate entry for a device that uses private resolvable addressing.
2016-02-26 12:05:43 +00:00
Joe Finney 762c85be56 microbit: Increase of maximum bond count from 4 to 6.
Some devices (e.g. Android 4.4.2) consume two entries in the bonding table when
paired. This patch provides some 'headroom' to the effective maximum bond
count of 4 that is employed by microbit-dal.
2016-02-01 22:37:06 +00:00
Joe Finney 2836a891d8 microbit: Update of maximum BLE bond count from 2 to 4.
BLE bond information is stored in a table in flash memory during the pairing process with another BLE device.
This information is required for a secure BLE connection.

There is a limit to the number of entries in this table. It used to be 4 but was recently changed to 2
during a code merge with mbed updates. This patch returns to support four bonds.
2016-01-17 01:04:33 +00:00
Vincent Coubard 60bfeb3065 Merge pull request #17 from andresag01/expose-ble-hash
Expose function in DM to calculate BLE hash
2016-01-11 17:30:32 +00:00
Andres Amaya Garcia c4ecce5675 Fix typo in id_manager.h @note 2016-01-11 17:28:57 +00:00
Vincent Coubard 51c333fe69 Add missing implementations for peer_manager. This is required by armcc,
even if implementations doesn't makes it into final binary
2016-01-11 14:42:49 +00:00
Andres Amaya Garcia 25cbf4dd40 Add warning to ah() for porters of future nRF51 SDKs to mbed 2016-01-11 12:12:46 +00:00
Andres Amaya Garcia b0017f9fbf Expose function in DM to calculate BLE hash
The hash function is needed to generate this a new Private Resolvable address.
This functionality is required to generate a table with a list of addresses
from the information in the bond table (See the getAddressesFromBondTable() API
in BLE API SecurityManager). However, this function is not exposed by the
nRF51 SDK to external code. This pull requests simply adds the function
declaration to the relevant .h file to make external use possible.
2016-01-11 11:10:10 +00:00
Andres Amaya Garcia 61ecdef2c5 Delete ble_conn_params.c that is a duplicate of ble_conn_params.cpp 2016-01-07 19:02:06 +00:00
Andres Amaya Garcia 4c8760c90c Add files from peer manager from nRF51 SDK 10.0.0
Add a subset of the files from the peer manager from nRF51 SDK 10.0.0. This
code is required to implement whitelising in the ble-nrf51822 module.
2016-01-07 18:55:04 +00:00
Vincent Coubard 7ff95c97f4 Merge pull request #9 from andresag01/master
Add ifdef to include correct mbed.h file in mbedOS
2016-01-07 15:49:56 +00:00
Liyou Zhou c63391e05c Port modifications made to noridc files 2015-12-21 15:48:57 +00:00
Liyou Zhou 22c7454f7e Add copyright license headers. 2015-12-21 15:23:54 +00:00
Liyou Zhou 012b811878 Pull in files from sdk 10.0 2015-12-21 15:23:23 +00:00
Andres Amaya Garcia 25dc1a7185 Add ifdef to include correct mbed.h file in mbedOS 2015-12-18 16:01:19 +00:00
Liyou Zhou 7f488715ed Change hci mem pool size to sdk 8 values 2015-12-15 10:42:02 +00:00
Liyou Zhou 3f1b2a67ef reduce pstorage cmd queue size to minimize mem usage 2015-12-14 13:30:41 +00:00
Liyou Zhou 9da4af9c11 Port all modification made to noridc files 2015-12-11 12:34:14 +00:00
Liyou Zhou 709071c7a3 Change license headers 2015-12-11 12:09:09 +00:00
Liyou Zhou 9251259fa8 Copy over coresponding files from nordic-sdk 9.0.0 2015-12-11 12:07:45 +00:00
Andres Amaya Garcia a4a6412210 Add GCC diagnostics to suppress unused-parameter warnings 2015-12-02 16:16:32 +00:00
Rohit Grover dbd0353632 add -Wno-unused-function 2015-12-02 10:38:32 +00:00
Rohit Grover da4b1aa86c supress warnings for the sources in nRF51 SDK 2015-12-02 09:17:53 +00:00
Liyou Zhou dc215189c2 Putting back an include because we have that file. 2015-12-01 12:23:40 +00:00
Liyou Zhou 5190a08459 Update files with changes made to nordic files in cmsis-core-nrf51822 2015-11-27 11:46:08 +00:00
Liyou Zhou 65d2c1a60f Remove nordic header from originally ARM files. 2015-11-24 14:38:42 +00:00
Liyou Zhou 779c487860 Porting changes from ble-nrf51822 No.3 2015-11-24 14:18:04 +00:00
Liyou Zhou 8ca16fedbd More porting changes from ble-nrf51822 2015-11-24 14:07:00 +00:00
Liyou Zhou 82b18a5c27 Porting some of the changes made to nordic files
from ble-nrf51822 module
2015-11-24 13:20:08 +00:00
Liyou Zhou daa4809ae3 Add license headers 2015-11-23 18:08:20 +00:00
Liyou Zhou 0a1acfc5f9 Add a missing file. 2015-11-18 17:04:52 +00:00
Liyou Zhou e68b1f8c39 Move defines from cmake files into noridc files
This requires changing of nordic source but do away with
magic defines in parent modules

note on #define asm __ASM
all yotta mobule compile with -std=c99 which does not
include "asm" keyword.
2015-11-17 12:51:34 +00:00
Liyou Zhou edae269261 Fix compiler error. 2015-11-16 17:50:54 +00:00
Liyou Zhou b93ef4f105 Add extra defines to work around compiler errors. 2015-11-16 17:14:30 +00:00
Liyou Zhou d1170b61be Pull the files we need directly out of the nordic-sdk
without modifications preserving the folder structure in
the sdk. nRF51_SDK_8.1.0_b6ed55f.zip from:
https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/
2015-11-16 16:31:32 +00:00
Liyou Zhou fea7c30644 Initial commit, centralising all required files from nordic sdk
in on central repo.
2015-11-11 10:38:10 +00:00