Commit Graph

13882 Commits (mbed-os-5.7)

Author SHA1 Message Date
jeromecoutant c92c7cfbc6 STM32L0: STDIO_UART_TX and STDIO_UART_RX can be now user defined 2018-01-27 00:57:25 -06:00
jeromecoutant 4edae1a028 STM32F7: STDIO_UART_TX and STDIO_UART_RX can be now user defined 2018-01-27 00:57:24 -06:00
jeromecoutant 3812bdb1bc STM32F3: STDIO_UART_TX and STDIO_UART_RX can be now user defined 2018-01-27 00:57:24 -06:00
jeromecoutant 2bf5222024 STM32F2: STDIO_UART_TX and STDIO_UART_RX can be now user defined 2018-01-27 00:57:24 -06:00
jeromecoutant fc91827a52 STM32F1: STDIO_UART_TX and STDIO_UART_RX can be now user defined 2018-01-27 00:57:24 -06:00
jeromecoutant 12106236e1 STM32F0: STDIO_UART_TX and STDIO_UART_RX can be now user defined 2018-01-27 00:57:24 -06:00
jeromecoutant 0b5fe8de99 STM32: update init procedure
- STDIO_UART define is no more used
- configuring a new serial with the same UART as STDIO is no more allowed
2018-01-27 00:57:24 -06:00
Steven Cooreman 54bd620b6f Fix for #5840
This commit fixes #5840. Fix verified by running mbed_hal-lp_ticker test suite with preloaded RTC counter such that it wrapped in the middle of the suite.
Also removes explicit sleep blocking from the us_ticker implementation, since sleep blocking for us tickers is done at mbed HAL level now. This was causing one of the lp_ticker tests to fail.
2018-01-27 00:57:23 -06:00
Christopher Haster 388041afeb littlefs: Fix block addr overflow
deepikabhavnani did the hard work in tracking this issue down.  Block
addresses are not cast to the correct type until after multiplying to
convert to byte addresses. This results in an overflow when the storage
is larger than 4 GB.
2018-01-27 00:57:23 -06:00
Steven Cooreman 3ca6c55feb Allow overriding of DCDC settings per target
Allow custom targets to override the DCDC settings by defining EMU_DCDCINIT_STK_DEFAULT to target-specific initialization values.
2018-01-27 00:57:23 -06:00
Daniel Schuler 6ca58de840 Add presentation format descriptor support for NRF52 2018-01-27 00:57:23 -06:00
Tero Jääskö e86a2b090f platform: Fix C++ allocation wrappers for GCC compilation
Fix the caller address logging on the GCC compilation too.
Previously the code logged the caller address as C++ wrapper,
not the actual caller of the C++ operator new or delete.
2018-01-27 00:57:23 -06:00
Tero Jääskö ae5a5862f1 platform: make C++ allocation wrappers log the correct caller address
The C++ "operator new" and "operator delete" (and their array
variants) were logging the the caller address wrong. In practice
if one used "operator new", the logged caller address pointed
to mbed_retarget.cpp, not to the client. Fix this by exposing
the alloc wrappers to the the retarget.

Note: this fixes only the ARMCC variants, as the GCC ones have
different different API and implementation.
2018-01-27 00:57:22 -06:00
Seppo Takalo 544d6b5d88 Clarify TCPSocket::recv() and UDPSocket::recvfrom() documentation. 2018-01-27 00:57:22 -06:00
Tero Heinonen 44bf90b716 mesh-api documentation removed
All documentation is now in Handbook
2018-01-27 00:57:22 -06:00
jeromecoutant 72c648ae62 STM32 LOWPOWERTIMER : introduce LPTIM feature
STM32L0, L4, F7 and few F4 chip are supporting LPTIM feature.
We propose to allow user to use LPTIM for MBED LowPowerTimer API instead of using RTC wakeup timers.

By default, all targets that are supporting this feature have been configured.
2018-01-27 00:57:22 -06:00
Amanda Butler 09f6c63219 Copy edit Thread.h
Copy edit file for active voice.
2018-01-27 00:57:22 -06:00
Amanda Butler 5e289cba3b Copy edit Semaphore.h
Copy edit file for active voice.
2018-01-27 00:57:22 -06:00
Amanda Butler 6d77c7fc8e Copy edit RtosTimer.h
Copy edit file for active voice.
2018-01-27 00:57:22 -06:00
Amanda Butler 06b8b8ccff Copy edit Queue.h
Copy edit file for active voice.
2018-01-27 00:57:21 -06:00
Amanda Butler b6a1662790 Copy edit Mutex.h
Copy edit file for active voice.
2018-01-27 00:57:21 -06:00
Amanda Butler 9dfa3bda4b Copy edit MemoryPool.h
Copy edit file for active voice.
2018-01-27 00:57:21 -06:00
Amanda Butler bdc21ed978 Copy edit Mail.h
Copy edit file for active voice and American English.
2018-01-27 00:57:21 -06:00
Amanda Butler 9c5536112e Copy edit EventFlags.h
Copy edit file for active voice and agreement.
2018-01-27 00:57:21 -06:00
Amanda Butler ad14bfde4e Copy edit ConditionVariable.h
Copy edit docs changes for active voice.
2018-01-27 00:57:21 -06:00
Bartek Szatkowski ddeea847c6 Add notes about ISR safety to RTOS doxygen 2018-01-27 00:57:21 -06:00
bcostm 6c3a1cb6e9 STM32F2: Remove flash functions doc 2018-01-27 00:57:20 -06:00
bcostm b2ef8fc667 STM32F2: Add Flash API support 2018-01-27 00:57:20 -06:00
jeromecoutant d1a75ecff1 DISCO_F407VG : alignment with other STM32
- clock source is now a user choice
- IAR tool chain is available
2018-01-27 00:57:20 -06:00
deepikabhavnani cbe539d1d8 Fix: Sector/Size overflow from uint32_t
FATFilesystem declares sector count and size as uint32_t and block
device class arguments are addr and size which is uint64_t
While passing arguments to program/read/write API's of block device,
multiplication of uint32_t*uint32_t was not typecasted properly to
uint64_t which resulted in MSB truncation.

Eg. If block 0x800000 is accessed with block size 0x200, addr to be
passed (0x800000*0x200)0x100000000, but actual address passed was 0x0
which resulted in over-writting the root directory, and hence corrupted
filesystem
2018-01-27 00:57:20 -06:00
Senthil Ramakrishnan a22d968996 Fix tcp_hello_world test to receive all the data from http response 2018-01-27 00:57:20 -06:00
Senthil Ramakrishnan 70c0af19b9 ESP8266 test config and tcp_echo test fix for ESP8266 2018-01-27 00:57:20 -06:00
Marcus Chang be43b20eaf Increase clock tolerance in Flash HAL test
The current 0.1% clock tolerance is too small for certain platforms
which natural variance is larger than this. This commit increases the
tolerance to 0.5% instead.

Sample output from time_cpu_cycles called repeatedly in init,
before running any flash tests:

[1515706585.63][CONN][RXD] diff: 49316
[1515706585.69][CONN][RXD] diff: 49256
[1515706585.75][CONN][RXD] diff: 49286
[1515706585.81][CONN][RXD] diff: 49256
[1515706585.87][CONN][RXD] diff: 49225
[1515706585.94][CONN][RXD] diff: 49286
[1515706585.99][CONN][RXD] diff: 49317
[1515706586.06][CONN][RXD] diff: 49255
[1515706586.12][CONN][RXD] diff: 49286
[1515706586.18][CONN][RXD] diff: 49285
[1515706586.24][CONN][RXD] diff: 49286
[1515706586.31][CONN][RXD] diff: 49347
[1515706586.36][CONN][RXD] diff: 49347
[1515706586.43][CONN][RXD] diff: 49286
[1515706586.49][CONN][RXD] diff: 49286
[1515706586.55][CONN][RXD] diff: 49256
[1515706586.61][CONN][RXD] diff: 49286
[1515706586.68][CONN][RXD] diff: 49346
[1515706586.74][CONN][RXD] diff: 49347
[1515706586.80][CONN][RXD] diff: 49256

Notice the outliers will cause intermittent CI failures.
2018-01-27 00:57:19 -06:00
Martin Kojtal 96d9a00d0a
Merge pull request #5841 from ARMmbed/release-candidate
Release candidate for mbed-os-5.7.3
2018-01-15 12:30:46 +00:00
adbridge fd07de4985 Update Mbed version block for patch release 2018-01-12 15:01:50 +00:00
Steven Cartmell dc807b632e Fix bug allowing I2C::abort_transfer to incorrectly unlock deep sleep mode
- Add flag to I2C class to track if the I2C instance has locked deep sleep mode.
- Wrap call to sleep_manager_lock_deep_sleep to only be called if I2C instance
  hasn't already locked deep sleep.
- Wrap call to sleep_manager_unlock_deep_sleep to only be called if I2C has
  currently locked deep sleep mode.
2018-01-12 15:01:49 +00:00
Steven Cartmell 27c5dfc44f Fix bug allowing SPI::abort_transfer to incorrectly unlock deep sleep mode
- Add flag to SPI class to track if the SPI instance has locked deep sleep mode.
- Wrap call to sleep_manager_lock_deep_sleep to only be called if SPI instance
  hasn't already locked deep sleep.
- Wrap call to sleep_manager_unlock_deep_sleep to only be called if SPI has
  currently locked deep sleep mode.
2018-01-12 15:01:49 +00:00
Vincent Coubard 4f331b6155 Nordic BLE: Fix stack event size
Read By group type response can return 4 descriptor discovered when the remote server have 4 descriptors with a 16 bit UUID. The handle, UUID pair get stored in a ble_gattc_desc_t that is 20 bytes long.

This PR increase buffer size to handle this use case.
2018-01-12 15:01:49 +00:00
Vincent Coubard 0fdd1080ed BLE: Implement Generic GattClient reset logic. 2018-01-12 15:01:49 +00:00
Vincent Coubard 6ab18b94b8 BLE: Align naming of GattClient procedure control blocks. 2018-01-12 15:01:49 +00:00
Vincent Coubard bab609fe2a BLE: Put generic gattclient procedures inside the GattClient class 2018-01-12 15:01:49 +00:00
Vincent Coubard 757a1f8cf5 Nordic BLE: Use SD API version rather than SDK define. 2018-01-12 15:01:49 +00:00
Vincent Coubard 18343e192a Nordic BLE: Fix PalGattClient for SDK v13. 2018-01-12 15:01:49 +00:00
Vincent Coubard 46f02764ba Nordic BLE: Simplification and clarification of pal client implementation. 2018-01-12 15:01:49 +00:00
Vincent Coubard 9686fcc30c BLE: Fix include dependency in UUID.h. 2018-01-12 15:01:49 +00:00
Vincent Coubard 33cbff4867 BLE: Address GattClient comments
* invalid namespace name documentation
* vocabulary
* typo
* Add constants to improve readability
* Fix abort usages
2018-01-12 15:01:49 +00:00
Vincent Coubard b6d40044fe BLE: Remove old client implementation. 2018-01-12 15:01:48 +00:00
Vincent Coubard 502bdf5038 BLE: Enable Generic client on Nordic targets. 2018-01-12 15:01:48 +00:00
Vincent Coubard f5ac72f6c0 BLE: Introduce pal client adaptation layer for nordic targets. 2018-01-12 15:01:48 +00:00
jeromecoutant 632f06d5ac STM32F0 : ST CUBE version update to V1.9.0
- Previous ST Cube version: V1.7.0
- CMSIS part update from 2.3.1 to 2.3.3
- HAL part update from 1.5.0 to 1.7.0
2018-01-12 15:01:48 +00:00