Commit Graph

589 Commits (02936376ae5c3652823d2d63afae3a93e45cbc4d)

Author SHA1 Message Date
Martin Kojtal 2da743625f
Merge pull request #10581 from pan-/cordio-tx-path
BLE - Management of Tx path on Cordio.
2019-05-21 15:04:17 +01:00
Martin Kojtal 6b7a13f619
Merge pull request #10580 from paul-szczepanek-arm/fix-hardcoded-acl
BLE: put the acl buffer size in config
2019-05-20 14:13:45 +01:00
paul-szczepanek-arm ebcff4b2d2 improve wording of the docs 2019-05-15 13:25:28 +01:00
Vincent Coubard ca7be271c9 BLE: Remove incorrect calls to GattServer::handleDataSentEvent 2019-05-14 17:16:05 +01:00
Vincent Coubard de482e4029 BLE: Create and handle write_command Event.
This event is raised when a write command has been sent to the controller. It can be used to queue a new write command.
2019-05-14 17:13:51 +01:00
paul-szczepanek-arm 26fe4dd174 add info on rx acl buf size 2019-05-14 16:57:14 +01:00
paul-szczepanek-arm 064e8de93d put the acl buffer size in config 2019-05-14 16:52:24 +01:00
paul-szczepanek-arm eda064563c no read callback for CCC 2019-05-14 11:20:14 +01:00
paul-szczepanek-arm de2743b702 not include attribute write cback for CCC 2019-05-14 10:16:08 +01:00
Martin Kojtal 658a41c015
Merge pull request #10417 from paul-szczepanek-arm/fix-coverity
suppress coverity error
2019-04-18 08:16:14 +01:00
Marc Emmers d11cf287ac Make sure to reset settings before applying the properties 2019-04-16 16:28:28 +02:00
paul-szczepanek-arm 482e9c390c suppress coverity error 2019-04-16 14:19:31 +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
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
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 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 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
Desmond Chen 196a7666fe BLE:Fix gattserver authorization list update permission check 2019-03-15 12:11:12 +08:00
Desmond Chen a70f0e6780 BLE:Fix cordio reset sequence 2019-03-14 15:41:10 +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 a105db38ce BLE - Use LowPowerTimer instead of Timer in the Cordio stack. 2019-03-07 16:45:46 +00:00
Vivek Pallantla 0cce5d53b8 PSOC6 deep-sleep changes
- Enable add MBED_TICKLESS in targets/targets.json
 - BLE : deep-sleep aware HCI transport driver
 - WIFI: deep-sleep aware driver
 - Rebuild WICED libraries with Low Power changes
2019-03-07 08:40:20 -08:00
Oleg Kapshii aedec74b9a Added support for PSA target to WIFI_BT board
Added WiFi_Bt CM4 PSA target in mbedos json
Added SPE-NSPE mailbox initialization for CM4 SystemInit
Made similar to FUTURE_SEQUANA configurations
Copied FUTURE_SEQUANA CM0 SPM part for WiFi_Bt smoke test
Added CY8CKIT_062_WIFI_BT_M0 and CY8CKIT_062_WIFI_BT_M0_PSA targets
Sorted files for new CY8CKIT_062_WIFI_BT_M0 and CY8CKIT_062_WIFI_BT_M0_PSA targets
Copied files for CY8CKIT_062_WIFI_BT_M0_PSA from FUTURE_SEQUANA
Copied and updated cm0p start files
Corrected according to FUTURE_SEQUANA
Changes to M0 startup files to have SPM started
Fixed implicit declaration warning
Commented interrupts enabling according to FUTURE_SEQUANA flow
Updated prebuild spm_smore CM0 hex for CM4 target
Turned on greentea environment
Used special memory region for common CM0/CM4 data
Updated prebuild CM0 SPM hex
Placed shared memory region for flash operations into SPM shared memory region
Updated cyprotection code and configuration
Start address of protected regions is set by a defined number from target.json
Added masters pcMask configuration
Added support for PSA target to WIFI_BT board
Enabled resources protection for SPM
Aligned RAM usage according to Cypress FlashBoot and CyBootloader
alligned protection config
Added CYW943012P6EVB_01_M0 target
Enlarged heap size, remobed nv_seed
Added heap reservation in linker script from mbed-os
Removed heap size definition
turned on nv_seed config
Removed nv_seed macros
Enabled protection for PSoC6 CM0
Added PSoC6 CM0 PSA readme
Enabled mbed_hal-spm test
Enabled nv_seed and removed unneeded ipc config define
Added SPDX string to feature_ble cypress target files
Removed unneeded supported_toolchains lines for Cypress targets
Disabled protection settings
Corrected flash initialization for PSoC6 CM0 PSA
Changed PSoC6 IPC6 protection for flash
Enabled special flash initialization and enabled protection settings
Updated and added new prebuild PSoC6 CM0 PSA hex files
Disabled HW TRNG and CRC for PSoC6 CM4 PSA target
Added missing const to allow types to match
Updated PSoC6 WIFI_BT_PSA prebuilt directory
Moved PSoC6 shared section usage area definition to begin of ld
Added initial ARM_STD linker and startup files for PSoC6 CM0
Added initial IAR linker and startup files for PSoC6 CM0
Added defines to disable some SPM protection settings for PSoC64
Moved Flash function variables into separate memory region
Added defines for new Public area definition
Updated PSoC6 CM0_PSA hex-files
2019-03-07 08:40:20 -08:00