Commit Graph

31229 Commits (eb382989de046fc80859bc8bcf899458cd36ed9a)

Author SHA1 Message Date
Kevin Bracey 5ab6f1cef6 Make readdir reentrant
Remove the static allocation for the dirent, and allocate it from the
heap during opendir().

Removing the static data can reduce RAM usage on some toolchains when
directories are not being used. The static allocation sometimes is
combined with the file handle array and can't be dropped by the linker.

Original readdir() was not thread-safe at all.

This was in violation of POSIX which states the result of readdir "is
not overwritten by another call to readdir() on a different directory
stream."

POSIX also defines readdir_r() as separate totally reentrant form where
the caller allocates the dirent, but this is generally deprecated as it
opens the door for an inadequate allocation causing a stack smash. Full
reentrancy is not typically necessary - having readdir()'s buffer data
be per-DIR is generally sufficient.
2020-09-04 16:58:23 +03:00
Vincent Coubard f116604024 BLE: correctness improvments
Remove unused variable, improve header inclusion, fix initialization list order,
2020-09-04 13:26:29 +01:00
Vincent Coubard 702c1b9756 BLE: Fixed used of parent pointer in implementation classes. 2020-09-04 13:25:32 +01:00
cyliangtw 47a28dacd7 Fix nuc472 SD buffer alignment 2020-09-04 16:23:24 +08:00
Martin Kojtal 54f0f56eff
Merge pull request #13531 from OpenNuvoton/nvt_m252_kv
Nuvoton: Set M252 Flash internal size for kv store test
2020-09-03 15:41:52 +01:00
Qinghao Shi a7b2ad89a3 TEST: remove MUSCA_B1 from attestation example test 2020-09-03 14:35:05 +01:00
Martin Kojtal f4536be936
Merge pull request #13524 from norbert-david/patch-1
device_management.py supports application access keys
2020-09-03 13:25:26 +01:00
Martin Kojtal 895488f945
Merge pull request #13523 from jeromecoutant/PR_H7_ADC2
STM32H7 ADC: No MultiMode configuration needed for ADC2
2020-09-03 13:24:55 +01:00
Martin Kojtal 2eb2fe4184
Merge pull request #13522 from jeromecoutant/PR_USB_PULLUP
STM32 USB connect procedure update
2020-09-03 13:24:10 +01:00
Martin Kojtal 4a68b8af89
Merge pull request #13486 from rajkan01/fix_malloc_overhead_calculation
Fix heap stats overhead_size calculation
2020-09-03 11:38:41 +01:00
Martin Kojtal 04e4075f34
Merge pull request #13533 from rajkan01/update_aws_test_json
Update test examples.json AWS config
2020-09-03 11:35:00 +01:00
Chun-Chieh Li ce63a17212 Nuvoton: Fix degrading QSPI to SPI
In most cases, we can control degraded QSPI H/W to standard through BSP SPI driver directly as if it is just SPI H/W.
However, BSP SPI driver distinguishes among SPI H/W instances in below functions:
-   SPI_Open
-   SPI_Close
-   SPI_SetBusClock
-   SPI_GetBusClock
In these cases, we must change to QSPI version instead for QSPI H/W.

Change target:
-   NUMAKER_PFM_M487
-   NUMAKER_IOT_M487
-   NU_PFM_M2351*
2020-09-03 10:25:08 +08:00
Lingkai Dong 183ca7729c drivers/SFDP should compile without mbed-trace
The library "drivers" is a core one available to bare metal.
It should not depend on mbed-trace which is an optional library.
2020-09-02 15:50:25 +01:00
Rajkumar Kanagaraj abdee9267c Update test examples.json aws config to refer renamed mbed-os-example-for-aws repo 2020-09-02 15:01:02 +01:00
cyliangtw 1651aa9bc6 Set M252 Flash internal size as 8KB for kv store 2020-09-02 20:21:29 +08:00
talorion b03d80fd08 pwmout - fixed compile errors 2020-09-02 13:39:17 +02:00
talorion 6625bdb9f3 fixed resets after suspend 2020-09-02 13:39:16 +02:00
talorion 191ec42dd6 pwmout - UNITTESTS - add read methods for period and pulsewidth 2020-09-02 13:39:16 +02:00
talorion f2bed4d582 pwmout - TMPM4G9 - add read methods for period and pulsewidth 2020-09-02 13:39:16 +02:00
talorion 7388ff8b43 pwmout - TMPM46B - add read methods for period and pulsewidth 2020-09-02 13:39:16 +02:00
talorion 067431e088 pwmout - EFM32 - add read methods for period and pulsewidth 2020-09-02 13:39:16 +02:00
talorion 6a50ecad5f pwmout - STM - add read methods for period and pulsewidth 2020-09-02 13:39:15 +02:00
talorion 2d5e51794b pwmout - RZ_A2XX - add read methods for period and pulsewidth 2020-09-02 13:39:15 +02:00
talorion c4559ba8e2 pwmout - RZ_A1XX - add read methods for period and pulsewidth 2020-09-02 13:39:15 +02:00
talorion 9f83ce1cc7 pwmout - IMX - add read methods for period and pulsewidth 2020-09-02 13:39:15 +02:00
talorion ea6e806a31 pwmout - LPC176X - add read methods for period and pulsewidth 2020-09-02 13:39:15 +02:00
talorion 7270f296d3 pwmout - LPC11XX_11CXX - add read methods for period and pulsewidth 2020-09-02 13:39:14 +02:00
talorion fabd906534 pwmout - LPC11U6X - add read methods for period and pulsewidth 2020-09-02 13:39:14 +02:00
talorion a6f9c5b84f pwmout - NUC472 - add read methods for period and pulsewidth 2020-09-02 13:39:14 +02:00
talorion 20dce73257 pwmout - NANO100 - add read methods for period and pulsewidth 2020-09-02 13:39:14 +02:00
talorion 05128898a5 pwmout - M480 - add read methods for period and pulsewidth 2020-09-02 13:39:13 +02:00
talorion bdfe6a8ba6 pwmout - M451 - add read methods for period and pulsewidth 2020-09-02 13:39:13 +02:00
talorion 1a9d8576d7 pwmout - M261 - add read methods for period and pulsewidth 2020-09-02 13:39:13 +02:00
talorion 1c75956312 pwmout - M251 - add read methods for period and pulsewidth 2020-09-02 13:39:13 +02:00
talorion b859d7039f pwmout - M2351 - add read methods for period and pulsewidth 2020-09-02 13:39:13 +02:00
talorion dda71f0262 pwmout - NRF52 - add read methods for period and pulsewidth 2020-09-02 13:39:12 +02:00
talorion 3db5d7b595 pwmout - MAX32630 - add read methods for period and pulsewidth 2020-09-02 13:39:12 +02:00
talorion f9962162d9 pwmout - MAX32625 - add read methods for period and pulsewidth 2020-09-02 13:39:12 +02:00
talorion fea23ef0a2 pwmout - MAX32620C - add read methods for period and pulsewidth 2020-09-02 13:39:12 +02:00
talorion ebc2bc23b1 pwmout - MAX32620 - add read methods for period and pulsewidth 2020-09-02 13:39:12 +02:00
talorion d33e06ed46 pwmout - MAX32610 - add read methods for period and pulsewidth 2020-09-02 13:39:11 +02:00
talorion b27b8698b4 pwmout - MAX32600 - add read methods for period and pulsewidth 2020-09-02 13:39:11 +02:00
talorion 13f57feaef pwmout - GD32F4XX - add read methods for period and pulsewidth 2020-09-02 13:39:11 +02:00
talorion a67e8d1c07 pwmout - GD32F30X - add read methods for period and pulsewidth 2020-09-02 13:39:11 +02:00
talorion 659bd2098d pwmout - K64F - add read methods for period and pulsewidth 2020-09-02 13:39:11 +02:00
talorion 009191ea6b pwmout - K22F - add read methods for period and pulsewidth 2020-09-02 13:39:10 +02:00
talorion 8aab37c721 pwmout - KW41Z - add read methods for period and pulsewidth 2020-09-02 13:39:10 +02:00
talorion cbe9129dca pwmout - KL43Z - add read methods for period and pulsewidth 2020-09-02 13:39:10 +02:00
talorion ac648170a4 pwmout - KL27Z - add read methods for period and pulsewidth 2020-09-02 13:39:10 +02:00
talorion 32bcd62e76 pwmout - K82F - add read methods for period and pulsewidth 2020-09-02 13:39:09 +02:00