Commit Graph

1654 Commits (20ac1c92661ccd459f235209f65d311c4c7d966d)

Author SHA1 Message Date
Martin Kojtal 47838ea4be
Merge pull request #10340 from paul-szczepanek-arm/fix-negotiate-mtu
BLE: fix missing implementation call
2019-04-09 10:58:59 +02:00
paul-szczepanek-arm 217b295f46 missing default impl 2019-04-08 14:56:23 +01:00
paul-szczepanek-arm b6836d9f83 fix missing implementation call 2019-04-08 10:33:09 +01:00
Martin Kojtal c2ebb79723
Merge pull request #9814 from LMESTM/dev_NUCLEO_WB55RG
Adding NUCLEO_WB55RG support
2019-04-04 15:30:07 +02:00
paul-szczepanek-arm 20d6cd9cc5 add default services first 2019-04-03 12:14:06 +01:00
Martin Kojtal 1b4f6ae3c4
Merge pull request #10270 from marcemmers/advertising-builder
BLE SimpleAdvertisingBuilder moved functions out of mbed_assert calls
2019-04-01 11:03:43 +02:00
Laurent Meunier a744343931 STM32WB: disable debug lines when not needed
When doing so, do not disbale GPIO clocks as they may be used by other
drivers !

As a result, debug will be disabled by default, but can be enabled by
either modifying code or selecting MBED debug profile.
2019-03-29 16:21:46 +01:00
Laurent Meunier 6336e4bee7 STM32WB: Handle re-init case of transport layer
Issue was seen when running BLE_GAP example from
mbed-os-example-ble.

In STM32WB, the M0 core cannot be reset except if the whole target
is reset. So in case of re-initialization of the BLE stack, the
transport layer should not be initialized again. The HCI reset
command will do the job.
2019-03-29 16:21:44 +01:00
Laurent Meunier c72b0e7ca4 STM32WB: fix some styling in HCI driver 2019-03-29 16:21:44 +01:00
Laurent Meunier 9b2acb25a3 STM32WB: handle extended reset
as suggested during review, apply same sequence as in:
b96c0ac986
2019-03-29 16:21:44 +01:00
Laurent Meunier fd6f12f8a4 STM32WB: move HCI driver to target specific folder
Need to move stm32wb_HCIDriver.cpp to target specific folder otherwise
it could mess up with other STM targets.
2019-03-29 16:21:44 +01:00
Laurent Meunier 6caa4d487f STM32WB: Add SPDX identifier to new files
also update the copyright year when needed
2019-03-29 16:21:44 +01:00
Laurent Meunier 740e296f6b STM32WB: fix compilation issue with ARMC6 2019-03-29 16:21:43 +01:00
Laurent Meunier 3ebf7c9db3 STM32WB: remove duplicate file 2019-03-29 16:21:43 +01:00
Laurent Meunier c53021b77f STM32WB: Update headers 2019-03-29 16:21:43 +01:00
Laurent Meunier e925bd711b STM32WB: Set a random static address during init 2019-03-29 16:21:42 +01:00
Laurent Meunier 08965e1190 STM32WB: add debug trace group in BLE Transport Layer 2019-03-29 16:21:42 +01:00
Laurent Meunier 5871a712dc STM32WB: Move STM32WB utilies from FEATURE_BLE to targets folder
These files are not BLE specific, but also needed for some clock setting
for instance.

In order to compile an MBED2 application, we need to move the files.
2019-03-29 16:21:40 +01:00
Laurent Meunier 27e7e4d9df NUCLEO_WB55RG: Rework Clock and sleep support
- move hw_conf.h file to targets/TARGET_STM/TARGET_STM32WB directory as
this is used also out of BLE feature.
- create a dedicated hal_deepsleep function as the behavior in WB is a lot
different from other existing STM32 targets
- update clock tree configuration to directly clock the entire tree @ 32MHz
out of HSE. This is needed as we want to let the M0 core running without
any change on M0-side of clocks when M4 enters /exits deep sleep.
2019-03-29 16:21:40 +01:00
Laurent Meunier 6234b3578c NUCLEO_WB55RG: add Cordio HCI and Transport Layer driver
The STM32WB Coridio driver includes:
- the Cordio HCI driver handling the reset sequence. During reset sequence
the TX POWER level is set and the BD address is defined if found in OTP
or option bytes. The rest of the sequence is based on the standard CORDIO
HCI driver example.
- The Transport Layer part handles sending and receiving messages to the
WB controller running on cortex-M0 of the STM32WB target. The messages
are shared through shared memory and mailboxes system based on IPCC HW.
2019-03-29 16:21:39 +01:00
Laurent Meunier 16ed1097aa NUCLEO_WB55RG: WB Transport Layer Cube files modifications
- Need to force ARM packed redefinition
- Configure LL stack in LL mode only
- Remove warning in shci_tl.c (PLACE_IN_SECTION)
2019-03-29 16:21:39 +01:00
bcostm e8a49e9605 NUCLEO_WB55RG: add WB Cube files reused for BLE transport layer 2019-03-29 16:21:39 +01:00
Cruz Monrreal eef1b4868d
Merge pull request #10094 from desmond-blue/fix_ble_gattserver_autorization_list
BLE: Fix ble gattserver autorization list registration
2019-03-29 10:11:50 -05:00
Cruz Monrreal 1c35b95d89
Merge pull request #10072 from nick-atmosphereiot/master
Adding variable length attributes to Maxim Feather
2019-03-29 10:10:21 -05:00
Marc Emmers bd74cb2ab7 Removed function calls from mbed_assert, which caused the functions to be ignored in release mode 2019-03-29 09:47:28 +01:00
Cruz Monrreal 4cdc3b7cb8
Merge pull request #10219 from paul-szczepanek-arm/fix-legacy-scan-timeout
BLE: fix scan timeout being called from interrupt
2019-03-27 13:35:06 -05:00
paul-szczepanek-arm 82112b6c52 simplify call 2019-03-26 10:53:10 -05:00
paul-szczepanek-arm de539e146b update comments 2019-03-26 10:53:10 -05:00
paul-szczepanek-arm dad6844167 bounce scan timeout of the queue 2019-03-26 10:53:10 -05:00
Vincent Coubard 339c57f6a7 BLE - Use low power timeout in cordio::BLE::callDispatcher . 2019-03-19 16:26:29 +00:00
Vincent Coubard 63b7e69d89 BLE - Signal to the HCI driver when the host stack is inactive 2019-03-19 16:25:24 +00:00
Vincent Coubard 7ee811141b BLE - Add CordioHCIDriver::on_host_stack_inactivity
This callback should be called by the host stack when it has no pending activities. It allows a driver to put its controller to sleep.
2019-03-19 16:08:04 +00:00
Cruz Monrreal c81a292921
Merge pull request #10092 from desmond-blue/fix-ble-on_phy_update_complete
BLE:fix on_phy_update_complete function
2019-03-16 23:00:37 -05:00
Cruz Monrreal 9ecde429f9
Merge pull request #9992 from pan-/ble-use-low-power-ticker
BLE - Use low power timing primitives
2019-03-16 22:56:43 -05:00
Cruz Monrreal 961c9e2e13
Merge pull request #9988 from paul-szczepanek-arm/fix-cordio-tick
BLE: fix tick rate set to 10 ms
2019-03-16 22:56:24 -05:00
Cruz Monrreal 7fa995860f
Merge pull request #9921 from desmond-blue/fix_Cordio-insert-characteristic-handle-error
BLE:Cordio:Fix insert characteristic not handle error
2019-03-16 22:54:37 -05:00
Cruz Monrreal 7cdc5b057c
Merge pull request #9919 from pan-/workaround-extended-report
BLE - Report extended advertising in legacy handler
2019-03-16 22:54:21 -05:00
Cruz Monrreal dbb33ef423
Merge pull request #9801 from vmedcy/fix-eventqueue-h
Correctly include EventQueue.h
2019-03-16 22:52:40 -05:00
Martin Kojtal 74f13dd8de Merge branch 'fix_Cordio-descriptor-set-cback' of https://github.com/desmond-blue/mbed-os into rollup 2019-03-15 08:44:55 +00:00
Martin Kojtal 9960ea93ed Merge branch 'fix-ble-cordio-reset-sequence' of https://github.com/desmond-blue/mbed-os into rollup 2019-03-15 08:43:59 +00:00
Desmond Chen 196a7666fe BLE:Fix gattserver authorization list update permission check 2019-03-15 12:11:12 +08:00
Martin Kojtal 8b94f3b2ff Merge branch 'patch-7' of https://github.com/janjongboom/mbed-os into rollup 2019-03-14 11:37:26 +00:00
Desmond Chen a70f0e6780 BLE:Fix cordio reset sequence 2019-03-14 15:41:10 +08:00
Desmond Chen a6df7b2bd7 BLE:fix on_phy_update_complete function 2019-03-14 11:42:03 +08:00
Nick 44c5c7ef5a Formatting fix 2019-03-13 07:58:24 -04:00
Nick e08b200eef Adding variable length attributes to Maxim Feather 2019-03-12 18:49:45 -04:00
Martin Kojtal 84e4decad0
Merge pull request #10042 from paul-szczepanek-arm/fix-pal-paths
BLE: fix conflicting include by qualifying cordio pal includes
2019-03-12 08:26:53 +01:00
paul-szczepanek-arm abb2942fc5 qualify cordio pal includes 2019-03-11 16:52:40 +00:00
Donatien Garnier 041d53de25 Generate BLE Random Static Address on U-blox Odin-W2 platform 2019-03-08 12:50:08 +00:00
Vincent Coubard b183ba1d01 BLE - Use LowPower Ticker and Timer for address rotation and scan timeout. 2019-03-07 16:49:58 +00:00