Commit Graph

52 Commits (refactor_mbed_host_tests)

Author SHA1 Message Date
Paul Szczepanek 7b08388be6 Add traces to HCI, BLE instance, Security DB and WSF cordio traces (#14138)
* ble HCI tracing

* fix typo in SM trace

* add BLE instance tracing

* route wsf traces to mbed tr_debug

* Update connectivity/FEATURE_BLE/source/cordio/source/BLEInstanceBaseImpl.cpp

Co-authored-by: Vincent Coubard <vincent.coubard@arm.com>

* print hci on cordio side

* trace controller supported features

* log reset sequence

* include config for printing enums

* remove duplicate trace

* add tracing to security db

* workaround for macro error on use outside trace

Co-authored-by: Vincent Coubard <vincent.coubard@arm.com>
2021-03-15 15:35:52 +00:00
Paul Szczepanek 53cf06278a use the ccb instead of looking up the conn id 2021-02-22 11:31:25 +00:00
Paul Szczepanek 9a25b7b7cd use dmConnId_t for conn id 2021-02-19 12:52:47 +00:00
Paul Szczepanek b271ee853a fix Cordio attsCsfActClientState index parameter
instead of using a handle this should be conn id
there were two calls using it differently
2021-02-19 12:45:09 +00:00
Andrea Palmieri ae4a53e74a
Support to BlueNRG_2 BLE component (#13246)
Add support to BlueNRG_2 BLE component

Signed-off-by: Andrea Palmieri <andrea.palmieri@st.com>

Co-authored-by: Andrea Palmieri <andrea.palmieri@st.com>
Co-authored-by: Paul Szczeanek <paul.szczepanek@arm.com>
2020-12-17 14:37:21 +00:00
Paul Szczeanek 5cc09f58f8 the adv bit is actually optional in aux_adv_ind so is not required for periodic sync 2020-11-30 16:00:14 +00:00
Marc Emmers 01e56f1f34 Fix missing newline 2020-11-16 17:03:23 +01:00
Marc Emmers afc42b8fb7 Update NRF ble configuration options 2020-11-16 16:43:43 +01:00
Hugues Kamba bf84a5b329 CMake: Rename CMake targets
* mbed-os renamed mbed-core
* mbed-os-<COMPONENT> renamed mbed-<COMPONENT>
2020-11-06 17:25:22 +00:00
Hugues Kamba fa98689639 CMake: Componentize Mbed OS into multiple CMake targets (#13732)
Aside from the core mbed-os CMake target, a number of targets have been created so they can optionally be included by application executables that require them using `target_link_libraries()`.

Co-authored-by: Martin Kojtal <martin.kojtal@arm.com>
Co-authored-by: Rajkumar Kanagaraj <rajkumar.kanagaraj@arm.com>
2020-11-06 17:25:21 +00:00
Hugues Kamba e22b19d6db CMake: Fix build failure due to BLE dir changes 2020-11-06 17:25:21 +00:00
Hugues Kamba b3c614e921 CMake: Fix CORDIO_LL build failure
List missing CORDIO_LL source file in CMake source file.
2020-11-06 17:25:19 +00:00
Hugues Kamba 20e19de028 CMake: Fix breakage due to BLE dir move 2020-11-06 17:25:19 +00:00
Martin Kojtal c29a2e2338
Merge pull request #13811 from pan-/ble-conditional-compilation
Ble conditional compilation
2020-11-06 16:11:10 +00:00
Martin Kojtal eb6b53ac92
Merge pull request #13753 from AGlass0fMilk/rm-nordic-bsp
Remove Unneeded nordic-bsp Folder from Cordio
2020-11-02 14:14:33 +00:00
Vincent Coubard ad37f560c2 BLE: Set host default version to 5.1
Disable 5.2 event handling if not enabled.
2020-10-27 14:36:59 +00:00
Vincent Coubard f3031da424 BLE: Disable handling of BT5.2 event in the controller.
These events are not used nor triggered by any of our APIs. It saves ~1.4k of flash
2020-10-23 16:44:29 +01:00
Vincent Coubard 3cab37793b BLE: Fix index access to attcCb.onDeck in Cordio.
The connection starts at 1, not 0. The entry in the array should be connId - 1
2020-10-19 17:23:42 +01:00
Vincent Coubard 542b725545 BLE: Fix incorrect index used to access attsCb.prepWriteQueue in Cordio
The connection id starts at the value 1. The entry accessed in the array should be connId - 1
2020-10-19 17:21:49 +01:00
George Beckstein 46bc1577eb Ignore unneeded Nordic BSP files 2020-10-12 23:28:15 -04:00
Vincent Coubard f897729d5c Cordio: Add API to set the local identity address. 2020-10-05 11:53:22 +01:00
Vincent Coubard dd54baecf6 BLE: Move Cordio implementation in source/impl 2020-08-25 11:26:27 +01:00
Vincent Coubard cc78150afd BLE: Move generic lib file into source/generic . 2020-08-25 11:26:27 +01:00
Vincent Coubard 134cb885f5 BLE: Move cordio_stack out of TARGET_CORDIO 2020-08-25 11:26:27 +01:00
Vincent Coubard 27cb03824e BLE: Move common publi headers into ble/common 2020-08-25 11:26:26 +01:00
Vincent Coubard e11bfb6514 BLE: move PAL headers into source/pal 2020-08-25 11:26:26 +01:00
Vincent Coubard a45325995b BLE: Move BleInstanceBase.h into source. 2020-08-25 11:26:26 +01:00
Vincent Coubard 381700a250 BLE: Move generic implementation and headers into source/generic 2020-08-25 11:26:26 +01:00
Vincent Coubard 41c8c22a96 BLE: Warning cleanup
- Missing default assignment operator
- Field order in construction list
- Typo
- Unused header
2020-08-25 11:26:26 +01:00
Vincent Coubard c773870d56 BLE: Bind interface to private implementation. 2020-08-25 11:26:26 +01:00
Vincent Coubard cf3ede0191 BLE: GattServer PIMPL 2020-08-25 11:26:25 +01:00
Vincent Coubard 2b48d4826e BLE: SecurityManager PIMPL 2020-08-25 11:25:07 +01:00
Vincent Coubard e3cf59e6cd ble: GattClient PIMPL 2020-08-25 11:25:07 +01:00
Vincent Coubard 909676d159 PIMPL for ble::Gap 2020-08-25 11:11:58 +01:00
Martin Kojtal d6e93b182c
Merge pull request #13462 from paul-szczepanek-arm/cancel-connect-no-address
BLE remove address from API to cancel connect
2020-08-25 08:46:14 +01:00
Paul Szczeanek 6aa89aefcc calculate chunk size when needed and use reported packet length 2020-08-19 12:22:27 +01:00
Paul Szczeanek 8c5bbe05fe check authorisation before writing 2020-08-19 10:41:21 +01:00
Paul Szczeanek 019a32c75b no need to check again 2020-08-19 10:41:05 +01:00
Paul Szczeanek c78afe249c remove address from api to cancel connect 2020-08-18 18:07:16 +01:00
Paul Szczeanek f876179484 remove tabs 2020-08-18 10:04:11 +01:00
Paul Szczeanek b93733e4aa offset is missing from prepare write response in cordio 2020-08-18 10:02:43 +01:00
Paul Szczeanek 894886d1fe fix prepare writes to write in chunks 2020-08-18 09:07:13 +01:00
Paul Szczeanek bf20286026 perform attribute writes directly, including offset 2020-08-18 09:00:36 +01:00
Paul Szczeanek cde0e6b183 allow writes at an offset 2020-08-18 08:59:00 +01:00
Paul Szczeanek 1b78b46a73 must allow writes smaller than max attribute length 2020-08-18 08:58:11 +01:00
Paul Szczeanek e877eb7552 fix cancel connect to accept peer address 2020-08-10 13:07:11 +01:00
Paul Szczeanek 6aac3acefb braces on newlines 2020-08-07 16:27:26 +01:00
Paul Szczeanek 8bdd6bca93 braces always on newline 2020-08-07 16:21:09 +01:00
Paul Szczeanek ec4cbb7c23 make include path backwards compatible 2020-08-07 14:20:44 +01:00
Paul Szczeanek 72b7d97fba pull define out into json config 2020-08-07 11:59:14 +01:00