mbed-os/platform/source
Jamie Smith 86723f7dab
Synchronize changes with Mbed upstream: September 2023 edition (#185)
* Fix null pointer dereferencing

Add null check for return values of functions that are mostly (but not
always) checked for null.
E.g., since 98% of calls to protocol_stack_interface_info_get_by_id
check for null, it is likely that the function can return null values in
some cases, and omitting the check could crash the program.

* Update MAX32660 peripheral drivers with final ones that use by SDK

* Apply MAX32660 delta
Update mbed hal function as per of SDK update

Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>

* M2354: Fix debug failure in Mbed Studio

In Mbed Studio, debugging, based on pyOCD, requires Mbed OS application code starting on the sector boundary.

Modification list:
1.  Update TF-M import assets with MCUboot header padding to sector aligned
2.  Following above, change header size argument (-H) in wrapper.py command line
3.  Following below, fix min-write-size (--align) to 4 (per flash_area_align()) in wrapper.py command line
    https://docs.mcuboot.com/design.html#image-trailer

Related issue:
https://github.com/ARMmbed/mbed-os/issues/15417

* Do not clear interrupt flag during initialization
This causes issue for repeaded initialization while using BufferedSerial mode

Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>

* MAX32660, MAX32670 UART performance improvement

Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>

* Handle negative values passed to close()

Calling close() with negative numbers causes out-of-bounds indexing of the filehandles array. For example, this can happen if open() returns an error and the value is later passed to close().

* Moved a { to the same line as if

Moved a { to the same line as if

* add nullpointer check in LWIP::socket_close

* Fix crash when using FDCAN3 RX IRQ on STM32G473 (and others)

* connectivity: drivers: Update Nuvoton M467 EMAC DMA_IE ctl

In IRQ Handler, to disable some interrupt type of DMA error.
It could avoid unexpected repeated interrupt.The masked bit of
DMA_IE could be recovered in next EMAC IRQ event.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>

* Add workaround for G474 hardfault

* update drivers STM32WL CUBE V1.3.0

* Changed static to weak

* Fix: Do not disable SPI for manual drive mode during transaction setup
It has been reported that disabling SPI module causes glitch for manual SS drive mode

Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>

* make cellular event queue size configurable

update unit tests

---------

Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>
Signed-off-by: cyliang tw <cyliang@nuvoton.com>
Co-authored-by: Mingjie Shen <shen497@purdue.edu>
Co-authored-by: Ahmet Polat <Ahmet.Polat@maximintegrated.com>
Co-authored-by: Sadik.Ozer <sadik.ozer@analog.com>
Co-authored-by: Chun-Chieh Li <ccli8@nuvoton.com>
Co-authored-by: alrvid <126816223+alrvid@users.noreply.github.com>
Co-authored-by: Jost, Chris <79271064+chrJost@users.noreply.github.com>
Co-authored-by: Joseph Duchesne <joseph@avidbots.com>
Co-authored-by: cyliang tw <cyliang@nuvoton.com>
Co-authored-by: Maxim Markin <mak22223@ya.ru>
Co-authored-by: Charles <hallard04@free.fr>
Co-authored-by: Lukas Karel <lukas.karel@world-direct.at>
2023-09-24 23:37:28 -07:00
..
TARGET_CORTEX_M Remove all source files exclusive to Arm Compiler and IAR (#159) 2023-05-15 08:23:01 -07:00
minimal-printf - Split mbed-core and mbed-rtos into -sources and -flags targets 2022-09-14 00:25:25 -07:00
ATCmdParser.cpp busy s... fix (ONME-4352) 2019-12-12 09:36:34 +02:00
CMakeLists.txt Enable Arduino Nano 33 BLE (#55) 2022-10-16 10:32:38 -07:00
CThunkBase.cpp Change MBED_STATIC_ASSERTs version for built-in 2020-10-27 08:30:40 -05:00
CriticalSectionLock.cpp Remove the deprecated CriticalSectionLock APIs 2020-02-28 07:19:19 -08:00
DeepSleepLock.cpp Platform: Separate internal APIs from public APIs 2019-08-02 12:23:47 +01:00
FileBase.cpp Fix ABI differences between mbed-baremetal and mbed-os, remove PlatformMutex 2022-09-14 00:25:30 -07:00
FileHandle.cpp Platform: Separate internal APIs from public APIs 2019-08-02 12:23:47 +01:00
FilePath.cpp Platform: Separate internal APIs from public APIs 2019-08-02 12:23:47 +01:00
FileSystemHandle.cpp Platform: Separate internal APIs from public APIs 2019-08-02 12:23:47 +01:00
LocalFileSystem.cpp Fix ABI differences between mbed-baremetal and mbed-os, remove PlatformMutex 2022-09-14 00:25:30 -07:00
SingletonPtr.cpp Fix ABI differences between mbed-baremetal and mbed-os, remove PlatformMutex 2022-09-14 00:25:30 -07:00
Stream.cpp mbed_retarget: Add a minimal console implementation to provide basic functionalities 2019-11-11 15:14:00 +00:00
SysTimer.cpp Merge pull request #13085 from pea-pod/remove-deprecated-mbed-assert 2020-11-24 13:38:07 +00:00
mbed_alloc_wrappers.cpp Fix ABI differences between mbed-baremetal and mbed-os, remove PlatformMutex 2022-09-14 00:25:30 -07:00
mbed_application.c Make changes for Cortex-A5 support 2021-06-23 13:36:55 +08:00
mbed_assert.c Platform: Separate internal APIs from public APIs 2019-08-02 12:23:47 +01:00
mbed_atomic_impl.c Change MBED_STATIC_ASSERTs version for built-in 2020-10-27 08:30:40 -05:00
mbed_board.c [STD-PIN] BUTTON and LED define 2021-03-18 17:01:50 +00:00
mbed_crash_data_offsets.h Streamline crash data access 2020-04-24 10:59:13 +03:00
mbed_critical.c Unify the __CORTEX_A macro in the files containing cmsis.h 2021-06-23 13:36:52 +08:00
mbed_error.c fixup! error: use __INITIAL_SP from cmsis instead of RTX one 2021-05-10 16:09:18 +01:00
mbed_error_hist.c platform: move internal headers to internal/ 2020-08-20 08:58:00 +01:00
mbed_interface.c Platform: Separate internal APIs from public APIs 2019-08-02 12:23:47 +01:00
mbed_mem_trace.cpp Fix ABI differences between mbed-baremetal and mbed-os, remove PlatformMutex 2022-09-14 00:25:30 -07:00
mbed_mktime.c Platform: Separate internal APIs from public APIs 2019-08-02 12:23:47 +01:00
mbed_mpu_mgmt.c platform: fix SPDX identifiers 2020-02-21 07:00:58 +00:00
mbed_os_timer.cpp mbed-ce@master + fixes + gcc 11 support (#135) 2023-02-21 09:04:34 -08:00
mbed_poll.cpp Platform: Separate internal APIs from public APIs 2019-08-02 12:23:47 +01:00
mbed_power_mgmt.c Power management stat : add verbosity level for MBED_SLEEP_TRACING_ENABLED 2021-11-08 09:46:06 +01:00
mbed_retarget.cpp Synchronize changes with Mbed upstream: September 2023 edition (#185) 2023-09-24 23:37:28 -07:00
mbed_rtc_time.cpp Fix ABI differences between mbed-baremetal and mbed-os, remove PlatformMutex 2022-09-14 00:25:30 -07:00
mbed_sdk_boot.c Unify the __CORTEX_A macro in the files containing cmsis.h 2021-06-23 13:36:52 +08:00
mbed_semihost_api.c semihosting: Fix typo in semihost_rename 2022-04-26 07:24:27 +02:00
mbed_stats.c Platform: Separate internal APIs from public APIs 2019-08-02 12:23:47 +01:00
mbed_thread.cpp platform: move internal headers to internal/ 2020-08-20 08:58:00 +01:00
mbed_wait_api_no_rtos.c Make changes for Cortex-A5 support 2021-06-23 13:36:55 +08:00
newlib_nano_malloc_workaround.c Workaround for a bug in malloc() from newlib-nano 4.1.0 2021-09-01 17:21:32 +01:00