Commit Graph

31639 Commits (9de73f89ef2bdee8a7bf37bbb8a5c20e217d0778)

Author SHA1 Message Date
Kalle-Gustav Kruus 3c848063f3 also added tickless option 2020-11-03 18:59:26 +02:00
Kalle-Gustav Kruus 851eca4ddb added naieve way of sleeping seems to work at first glance 2020-11-03 18:05:21 +02:00
Martin Kojtal cdc2d45e05
Merge pull request #13839 from 0xc0170/fix-cmsis-math
cmsis: remove math header file
2020-11-03 14:01:57 +00:00
Martin Kojtal c5bae34e9c
Merge pull request #13843 from marcelbrucker/fix_linking_issue
Fix linking issue #13793 when using -O0 compiler optimization in ARMC…
2020-11-03 14:01:25 +00:00
Bora Özgen 7f0716ad60 Fix sfdp_find_addr_region algorithm
sfdp_find_addr_region() was causing issues with SPI
flashes with sector table parsed from SFDP (in
particular SST26VF016B).

In particular, it was returning -1 when address 0 is
passed (probably also if the address in the first
region). I do not know why the search algorithm is
written to search from the higher to lower regions,
but it was obvious that it would fail for the first
region. Also it was harder to read due to the index
manipulation.
2020-11-03 14:23:02 +01:00
filics df0538923c Fix linking issue #13793 when using -O0 compiler optimization in ARMC6 toolchain 2020-11-02 20:04:15 +01:00
Evelyne Donnaes f4b7f44d93 Added missing blockdevice mbed_lib.json 2020-11-02 16:35:26 +00:00
Martin Kojtal 798c3c5f4f
Merge pull request #13817 from facchinm/patch_lse_bypass
STM32: define RCC_LSE_BYPASS to allow using PC_15 as gpio
2020-11-02 14:17:53 +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
Martin Kojtal 6db63e495b
Merge pull request #13822 from paul-szczepanek-arm/fix-preiod
BLE fix periodic advertising list function parameter checking
2020-11-02 14:13:40 +00:00
Martin Kojtal 0bb4ff04c6 cmsis: remove math header file
It was removed in 6.0 (see reference below), and it was reintroduced when we updated
cmsis from the upstream. We missed to remove the commit adding the file in the cmsis
importer. This fixes it and the file should not be introduced again.

Fixes #13823

Already removed in 6.0: https://github.com/ARMmbed/mbed-os/pull/12055
2020-11-02 10:23:45 +00:00
George Beckstein 911cee69f2 Add new Gap::EventHandler callbacks to ChainableGapEventHandler class 2020-10-29 15:39:41 -04:00
Martin Kojtal 2f87d59c7f
Merge pull request #13828 from paul-szczepanek-arm/fix-example-list-2
fix ble example names
2020-10-29 06:37:11 +00:00
Peter B 02a12a8722
Update spi_api.c
Modified the spi_master_block_write() function yet again. SD related examples still read/erase/write the SD cards as expected and with these alterations the power consumption does not remain high after the SPI transaction has been finished. However i still only tested the SD functionality. Please test other SPI scenarios and different sensors as well to find out if this PR introduces unexpected bugs or not.

Changes:
- deleted the whole if (xfer.ui32NumBytes) condition as i did not find it logical (by that i mean xfer.ui32NumBytes was also true within the following else if (tx_length != rx_length){} block, so basically when the 2 buffers had different lengths an extra transfer has been done for nothing)
- removed the bool Rw = (rx_length >= tx_length) as the comparison >= has no sense anymore after if (tx_length == rx_length) on line 159.
2020-10-28 23:28:34 +01:00
Paul Szczeanek 440aea67c5 fix ble exemple names 2020-10-28 16:32:38 +00:00
Paul Szczeanek 34c75ffb45 fix wrong advertising set handle being passed to handler 2020-10-28 08:42:58 +00:00
Paul Szczeanek 9e509f435b fix incorrect parameter check in periodic advertising 2020-10-27 15:09:30 +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 87ea47f211 BLE: Refactor Gap::reset to make it more readable 2020-10-27 14:22:54 +00:00
Martin Kojtal f57f2657f8
Merge pull request #13747 from RyoheiHagimoto/modify_renesas_deepsleep
Renesas: fix timing to wait UART completion in deep sleep function
2020-10-27 14:09:04 +00:00
Martin Kojtal f9e62fe615
Merge pull request #13692 from RyoheiHagimoto/gr_i2c_slave
Fix I2C slave bugs on Renesas RZ/A series.
2020-10-27 14:08:47 +00:00
Martin Kojtal 24c4f308be
Merge pull request #13796 from balajicyp/topic/wep_security_fix_test_readme
Update README.md to remove WEP test case with NULL data
2020-10-27 14:04:12 +00:00
pea-pod 507181d262 Change MBED_STATIC_ASSERTs version for built-in 2020-10-27 08:30:40 -05:00
pennam 45ac79aa3b STM32H7: define RCC_LSE_BYPASS to allow using PC_15 as gpio 2020-10-27 11:24:30 +01:00
Martin Kojtal 78c8d84214
Merge pull request #13808 from harmut01/license_refactor
Remove erroneous character from SPDX identifer
2020-10-27 09:03:41 +00:00
Peter B d56f942ae7
Update spi_api.c
Modified line 145:  previously the fill character has been hard coded to 0x00. However in Mbed OS core SPI_FILL_CHAR is defined in the core to be 0xFF by default (one can change that through mbed_app.json for example). This mod allows us to use the same fill character that is defined for Mbed OS.

Also modified spi_master_block_write(): previously it called am_hal_iom_blocking_transfer on line 182, but that prevented succesful SD card writing operations. Now i changed that part to am_hal_iom_spi_blocking_fullduplex and SD functionality seems to be working.
2020-10-26 16:03:04 +01:00
Martin Kojtal 5283c4f1e6
Merge pull request #13810 from paul-szczepanek-arm/fix-example-list
Remove missing examples from the config
2020-10-26 11:45:30 +00:00
JojoS62 6264e0abc4 add defaults values
set all defaults to initial low as after a reset
most STM32 eval boards use low power crystals and work with this setting
2020-10-23 19:38:55 +02: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 557eac0617 BLE: Conditional compilation of the security manager
Depends on the role (central or peripheral), signing enabled and secure connection enabled.
2020-10-23 16:19:38 +01:00
Paul Szczeanek 6427b2ab84 remove missing examples 2020-10-23 16:17:56 +01:00
JojoS62 622a452661 fix macro usage error
use unique #if defined()
2020-10-23 17:00:28 +02:00
Harrison Mutai 6bfe651aad Remove erroneous character from SPDX identifer
Erroneous '/' was appended to start of comment. This was causing CMake
warning during complition. Removes character from affected files.
2020-10-23 15:08:58 +01:00
Vincent Coubard 2e859cdab4 BLE: Conditionally compile PAL depending on the feature selected.
Previously (most) of the code was not pulled in because the pal interface was not virtual.
2020-10-23 12:17:31 +01:00
Vincent Coubard 26300912d3 BLE: Prevent code generation from GattClient when not used. 2020-10-23 10:37:28 +01:00
JojoS62 64072a925e fix for targets with non-modifiable
transconductance
2020-10-22 20:11:15 +02:00
JojoS62 80847e958d simplify default setting 2020-10-22 11:27:42 +02:00
JojoS62 e7f1430d37 remove duplicate LSEDRIVE_CONFIG 2020-10-22 11:24:51 +02:00
JojoS62 a209d44a07 simplify checking for F4_g2 exception 2020-10-22 11:20:51 +02:00
jeromecoutant a1a4dea8fe OSPI: enable feature in baremetal test configuration 2020-10-22 10:20:02 +02:00
Balaji Subramanyam 7824340676 Update README.md to remove WEP test case with NULL data 2020-10-21 10:00:27 -07:00
JojoS62 8145b69959 add setting for LSE drive load level 2020-10-21 18:54:47 +02:00
mbedmain 8ef0a435b2 Update Mbed version block 2020-10-20 15:48:27 +01:00
Martin Kojtal fece41d05a
Merge pull request #13713 from jeromecoutant/PR_NUCLEO_H7A3
STM32H7: add NUCLEO_H7A3ZI_Q new target
2020-10-20 14:28:59 +01:00
jeromecoutant 379182299d STM32H7 readme update 2020-10-20 13:10:59 +02:00
jeromecoutant 04c8ff91d4 STM32H7: new target NUCLEO_H7A3ZI_Q 2020-10-20 13:10:59 +02:00
jeromecoutant 1e2aacd373 STM32H7: create MCU_STM32H7A3xIQ 2020-10-20 13:10:59 +02:00
Martin Kojtal d418667f07
Merge pull request #13690 from jeromecoutant/PR_H7_180
STM32H7 update drivers version to CUBE V1.8.0
2020-10-20 11:36:56 +01:00
Martin Kojtal 27d10506e0
Merge pull request #13785 from pan-/ble-fix-prep-write-queue-access
BLE: Fix access to attcCb.onDeck and  attsCb.prepWriteQueue access
2020-10-20 11:10:11 +01:00
Martin Kojtal 5d60e65ae6
Merge pull request #13787 from ristohuhtala/update-mbed-coap-master
Update Mbed CoAP to v5.1.8
2020-10-20 11:09:45 +01:00