Commit Graph

1638 Commits (mbed-os-5.12)

Author SHA1 Message Date
paul-szczepanek-arm 7b1d57c661 no read callback for CCC 2019-05-17 15:38:41 +01:00
paul-szczepanek-arm 15d0a9422d not include attribute write cback for CCC 2019-05-17 15:38:41 +01:00
paul-szczepanek-arm 6e4b6452ea suppress coverity error 2019-04-24 13:37:42 +01:00
Marc Emmers 651af9c17c Make sure to reset settings before applying the properties 2019-04-24 13:37:42 +01:00
paul-szczepanek-arm a9115c36d6 missing default impl 2019-04-24 13:37:42 +01:00
paul-szczepanek-arm 7994484a90 fix missing implementation call 2019-04-24 13:37:42 +01:00
Laurent Meunier fee3faea3f 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-04-05 12:27:07 +01:00
Laurent Meunier e6cecda33b 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-04-05 12:27:06 +01:00
Laurent Meunier d50f6e2690 STM32WB: fix some styling in HCI driver 2019-04-05 12:27:06 +01:00
Laurent Meunier 9c32d31a07 STM32WB: handle extended reset
as suggested during review, apply same sequence as in:
b96c0ac986
2019-04-05 12:27:06 +01:00
Laurent Meunier 0251c2b332 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-04-05 12:27:06 +01:00
Laurent Meunier 07545a20d6 STM32WB: Add SPDX identifier to new files
also update the copyright year when needed
2019-04-05 12:27:06 +01:00
Laurent Meunier 71d5daae34 STM32WB: fix compilation issue with ARMC6 2019-04-05 12:27:05 +01:00
Laurent Meunier 9992e14715 STM32WB: remove duplicate file 2019-04-05 12:27:05 +01:00
Laurent Meunier 615a9f6548 STM32WB: Update headers 2019-04-05 12:27:05 +01:00
Laurent Meunier 79568dbe6d STM32WB: Set a random static address during init 2019-04-05 12:27:05 +01:00
Laurent Meunier dbfe97d649 STM32WB: add debug trace group in BLE Transport Layer 2019-04-05 12:27:05 +01:00
Laurent Meunier e57771f375 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-04-05 12:27:04 +01:00
Laurent Meunier ee64f1543f 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-04-05 12:27:04 +01:00
Laurent Meunier 879ca1db24 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-04-05 12:27:03 +01:00
Laurent Meunier e26eaa1c9d 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-04-05 12:27:03 +01:00
bcostm be1e80512e NUCLEO_WB55RG: add WB Cube files reused for BLE transport layer 2019-04-05 12:27:03 +01:00
paul-szczepanek-arm e607fe923f add default services first 2019-04-05 12:27:00 +01:00
Marc Emmers 9401844ccb Removed function calls from mbed_assert, which caused the functions to be ignored in release mode 2019-04-05 12:26:57 +01:00
Desmond Chen 0eccb9e529 BLE:Fix gattserver authorization list update permission check 2019-04-05 12:26:57 +01:00
Nick d7acaf646a Formatting fix 2019-04-05 12:26:57 +01:00
Nick 6041d3ef8d Adding variable length attributes to Maxim Feather 2019-04-05 12:26:57 +01:00
paul-szczepanek-arm d28d49cbab simplify call 2019-04-05 12:26:28 +01:00
paul-szczepanek-arm aa6ff686fb update comments 2019-04-05 12:26:28 +01:00
paul-szczepanek-arm cfe0c34dbd bounce scan timeout of the queue 2019-04-05 12:26:28 +01:00
Desmond Chen 7482a86de0 BLE:fix on_phy_update_complete function 2019-04-05 12:26:15 +01:00
Vincent Coubard ab06c1f9ea BLE - Use LowPower Ticker and Timer for address rotation and scan timeout. 2019-04-05 12:26:14 +01:00
Vincent Coubard 165732938f BLE - Use LowPowerTimer instead of Timer in the Cordio stack. 2019-04-05 12:26:14 +01:00
paul-szczepanek-arm 46f935723c change tick rate to 1 ms 2019-04-05 12:26:14 +01:00
Desmond Chen 57636b08ad BLE:Cordio:Fix insert characteristic not handle error 2019-04-05 12:26:13 +01:00
Vincent Coubard 9504abdcba BLE - Report extended advertising in legacy handler if legacy API in use.
Workaround for the Cordio stack as extended advertising can be reported for a legacy advertising command.
2019-04-05 12:26:13 +01:00
Volodymyr Medvid ba751e3d4a Correctly include EventQueue.h
There are two EventQueue.h in mbed-os codebase:
events/EventQueue.h
features/FEATURE_BLE/ble/pal/EventQueue.h

By accident, `mbed compile` generates includes.txt with the correct
order of include search paths. This is not the case for the CMake
exporter: targets with FEATURE_BLE enables fail to compile with errors:

mbed-os/features/cellular/framework/AT/ATHandler.h:99:60: error:
'events' has not been declared

Update all places to always include either "events/EventQueue.h"
or "ble/pal/EventQueue.h": to always find the correct header.
2019-04-05 12:26:12 +01:00
Desmond Chen 5a35956cb6 BLE:Fix cordio reset sequence 2019-04-05 12:26:10 +01:00
Desmond Chen cf7550fb85 BLE:Cordio:insert_descriptor check r/w properties 2019-04-05 12:26:10 +01:00
Jan Jongboom f2f3351811 Dead pointer usage in GenericSecurityManager
`pscrk` is set to the address of `csrk`, but `csrk` is out of scope when using the resulting value. There's no guarantee that the memory is still valid.
2019-04-05 12:26:09 +01:00
paul-szczepanek-arm 561d9e81b9 qualify cordio pal includes 2019-03-12 10:06:41 -05:00
Donatien Garnier b984dbdfa3 Generate BLE Random Static Address on U-blox Odin-W2 platform 2019-03-12 10:06:39 -05:00
Vivek Pallantla 69e8b735b0 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-12 10:06:33 -05:00
Oleg Kapshii 78a0057858 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-12 10:06:32 -05:00
Vincent Coubard 35c48c255b BLE - Register the Att call handler whenever the GATT_SERVER is available. 2019-03-12 10:06:28 -05:00
Vincent Coubard 9a9edd6121 BLE - Call SecInit unconditionally as it is required by low HCI level driver
That module handles random number incomming from the controller. Overhead is low (less than 150 bytes of flash).
2019-03-12 10:06:28 -05:00
Vincent Coubard f297f5425b BLE - Avoid calling v2 API in GenericGap::reset_ if not required. 2019-03-12 10:06:28 -05:00
paul-szczepanek-arm 61b063129d MBED_WEAK in random spot removed 2019-03-01 15:05:59 +00:00
paul-szczepanek-arm f740985627 remove define that trips up IAR 2019-03-01 14:46:43 +00:00
paul-szczepanek-arm 34ef17370b fix signing permissions 2019-03-01 11:58:52 +00:00