Commit Graph

34239 Commits (9e49cabb2cdd8540f3ace083b87d5b6492d3b5cc)

Author SHA1 Message Date
Chun-Chieh Li 9e49cabb2c Fix strrchr() not declared for IAR
For IAR, strrchr() is used in MBED_FILENAME macro definition. Declare it via string.h to fix compile error when MBED_FILENAME is expanded.
2022-02-07 16:04:23 +08:00
Martin Kojtal 9bdbe9cb85
Merge pull request #15219 from mikrodust-henrikp/filename_mbed_assert
Use MBED_FILENAME instead of __FILE__ in MBED_ASSERT
2022-02-02 10:24:06 +01:00
Martin Kojtal c4fd338adc
Merge pull request #15212 from mothacehe/master
STM32H7: increase i2c slave rx limit.
2022-02-01 16:40:26 +01:00
Henrik Persson 6ff504ceb4 Use MBED_FILENAME instead of __FILE__ in MBED_ASSERT
To actually get the filename in the error reporting struct instead of
the start of the path, let's use the MBED_FILENAME macro that MBED_ERROR
et al uses.
2022-02-01 09:25:33 +01:00
Martin Kojtal 26876c0b91
Merge pull request #15190 from hazzlim/make_gpio_irq_api_portable
Make gpio irq api portable
2022-01-31 10:27:18 +01:00
Martin Kojtal 9e2c9498cc
Merge pull request #15214 from ladislas/ladislas/bugfix/mbed_assert_no_throw
Allow unit tests to be compiled with -fno-exception
2022-01-31 10:24:51 +01:00
Mathieu Othacehe 3c0c9c2b33
STM32: increase i2c slave rx limit.
Use uint16_t variables for i2c slave_rx_buffer_size and slave_rx_count
variables. This allows to receive more than 255 bytes in slave mode. The
bytes are received one by one in slave mode so there are no hardware
limitations forcing a 1 byte rx count limit.
2022-01-28 11:58:52 +01:00
Ladislas de Toldi 568ffbf22a
Allow unit tests to be compiled with -fno-exception 2022-01-28 11:11:08 +01:00
Martin Kojtal f75ff22714
Merge pull request #15207 from wally0258/master
Add Nuvoton NuMaker-IoT-M263A CAN bus support
2022-01-28 10:58:34 +01:00
wally0258 4a0df44ec9
Resolve compiler warning and disable CAN0 IRQ 2022-01-27 09:40:55 +08:00
Hari Limaye f4e5359710 GPIO: Use uintptr_t for gpio_irq_api context
The HAL gpio_irq_api stores object IDs, which serve as a form of context
for the dispatch of the interrupt handler in the drivers level
InterruptIn Class. The way this is achieved is that the InterruptIn
Class casts its address to uint32_t, which is stored as the ID.
This results in compilation failure when the size of an object pointer
is greater than uint32_t, for example when building on a PC for unit
testing.

In order to allow Unit Testing of the InterruptIn Class, we replace the
use of uint32_t with uintptr_t (type capable of holding a pointer),
which allows portability and expresses intentions more clearly.
In aid of this latter goal, we also replace the use of the name "id"
with "context", to improve clarity - these are addresses of the context
related to that callback.
2022-01-26 18:12:52 +00:00
Hari Limaye a580c418cc HAL: Remove duplication in TARGET_NRF52 gpio_api 2022-01-26 11:14:30 +00:00
Martin Kojtal 4095c65e31
Merge pull request #15210 from jeromecoutant/PR_DISCO_L562
ST: correct LED pins for DISCO_L562QE
2022-01-26 11:47:26 +01:00
wally0258 94833a0ba6
Update can_api.c
Update Copyright
2022-01-25 09:05:31 +08:00
Jerome Coutant b9d51b6255 ST: correct LED pins for DISCO_L562QE 2022-01-21 09:41:21 +01:00
Martin Kojtal 1443257e40
Merge pull request #15206 from vznncv/iss_stm32_spi_16_bit
STM32: fix SPI 16 bit mode
2022-01-17 16:39:01 +01:00
Martin Kojtal d234b35aee
Merge pull request #15205 from mikrodust-henrikp/add_usbdevice_to_nucleo_f722ze
Add USBDEVICE to NUCLEO_F722ZE target
2022-01-17 16:10:06 +01:00
Martin Kojtal de5b459715
Merge pull request #15199 from majcher/feature/stm32g0b1
Support for the NUCLEO_G0B1RE board
2022-01-17 12:02:24 +01:00
Wally 6e09135b58 Add Nuvoton NuMaker-IoT-M263A CAN bus support 2022-01-17 14:32:42 +08:00
Konstantin Kochin 0c9d5b0605 Fix STM32 SPI async API for STM32H7 (SPI_IP_VERSION_V2)
By default, HAL functions (HAL_SPI_TransmitReceive_IT/HAL_SPI_Transmit_IT/HAL_SPI_Receive_IT) assume that SPI is disabled between function invocation.
It's needed to set transfer size (CR2 register), that can be modified only if SPI disabled. But `stm32_spi_api.c` keeps SPI enabled after initialization.

This commit adds helper code for STM32H7 (SPI_IP_VERSION_V2) that disables SPI before HAL_SPI_TransmitReceive_IT/HAL_SPI_Transmit_IT/HAL_SPI_Receive_IT
and after end of transaction for HAL API compatibility.
2022-01-15 14:51:41 +03:00
Konstantin Kochin 756f6f5199 Fix STM32 SPI 16-bit logic
Update SPI logic to process 16 bit words in the same way by sync/async,
3/4 wires modes:
- fix 3-wire synchronous transmission to move 2 or more bytes between buffer and
  SPI register per word tarnsmission
- fix 4-wire synchronous transmission to move 2 or more bytes between buffer and
  SPI register per word tarnsmission
2022-01-15 14:51:41 +03:00
Michal Majcherski 6263af9aff Support for the NUCLEO_G0B1RE board 2022-01-14 12:11:47 +01:00
Martin Kojtal c02e10bcdc
Merge pull request #15204 from jeromecoutant/PR_G0_DUALBANK
STM32G0 FLASH : support MCU with dual bank
2022-01-14 11:58:58 +01:00
Henrik Persson 6f73f5deb3 Add USBDEVICE to NUCLEO_F722ZE target
USB was missing from NUCLEO_F722ZE but is present and working on the
board.
2022-01-14 11:46:44 +01:00
Jerome Coutant 5e5d2ab9a5 STM32G0 FLASH : support MCU with dual bank 2022-01-13 11:44:21 +01:00
Martin Kojtal 6bb606f62d
Merge pull request #15194 from deepak-shreshti/master
Add Toshiba M4KN Platform
2022-01-10 13:49:32 +01:00
Martin Kojtal 70fd0cef1b
Merge pull request #15200 from OpenNuvoton/nuvoton_m487_fix-uart67-base
M487: Fix UART 6/7 base address encoding
2022-01-10 13:06:00 +01:00
Chun-Chieh Li 926cda5e8f M487: Fix UART 6/7 base address encoding
Fix UART 6/7 base addresses are incorrectly encoded into peripheral names
2022-01-07 16:39:59 +08:00
Deepak V. Shreshti 5bc3aa18c0 Updated code to remove float symbols 2021-12-23 19:19:57 +05:30
Deepak V. Shreshti cd4ee72979 Added SPDX Header
Updated PIN Names
Added M4KN MCU Deatils in index.json
Removed Special Chars
2021-12-23 19:19:57 +05:30
Deepak V. Shreshti 44249f0d40 Added M4KN Platform
New Platform M4KN for Toshiba has been added
2021-12-23 19:19:56 +05:30
Martin Kojtal 149c5b12fa
Merge pull request #15195 from ATmobica/cypress_cm0p_sleep_disable
Add option to disable CM0P_SLEEP component for Cypress targets
2021-12-21 16:40:23 +00:00
ATmobica 6a5cc40182 Fix mbed-cy8cproto-062s3-4343w target 2021-12-15 22:16:14 +01:00
ATmobica 9e1444f88d Add <"CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS> condition to Cypress boards and common PSOC6 cmake files 2021-12-15 21:37:14 +01:00
Martin Kojtal 7a6262c3bc
Merge pull request #15189 from boraozgen/nrf52-gpio-assert-init
nRF52: GPIO: Assert that init succeeds
2021-12-15 14:42:47 +00:00
Martin Kojtal fe5e648147
Merge pull request #15192 from ATmobica/master
Add option to disable WHD component for Cypress targets
2021-12-15 11:59:33 +00:00
Martin Kojtal 35050f02e6
Merge pull request #15193 from jeromecoutant/PR_WARNING
STM32 : remove several warnings
2021-12-15 11:50:32 +00:00
Bora Özgen 352beffedf nRF52: GPIO: Assert that init succeeds 2021-12-14 10:01:08 +01:00
Martin Kojtal ff061e8cf2
Merge pull request #15187 from artokin/nanostack_release_v15_1_0
Nanostack release v15.1.0 to master
2021-12-13 09:46:45 +00:00
Jerome Coutant de3f9efb67 STM32H7 : remove warning
[Warning] stm32h7xx_hal_hrtim.c@1621,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32h7xx_hal_hrtim.c@1625,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32h7xx_hal_hrtim.c@2238,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32h7xx_hal_hrtim.c@2242,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32h7xx_hal_hrtim.c@5332,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32h7xx_hal_hrtim.c@5767,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32h7xx_hal_hrtim.c@5771,21: equality comparison with extraneous parentheses [-Wparentheses-equality]

[Warning] analogin_device.c@63,30: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare]
2021-12-10 17:16:47 +01:00
Jerome Coutant 3237bff990 STM32F7 : remove warning
[Warning] flash_api.c@191,14: unused variable 'tmp' [-Wunused-variable]
2021-12-10 17:16:47 +01:00
Jerome Coutant 4d63929898 STM32L5 : remove warning
[Warning] serial_device.c@657,41: comparison of different enumeration types ('PinName' and 'UARTName') [-Wenum-compare]
[Warning] serial_device.c@666,41: comparison of different enumeration types ('PinName' and 'UARTName') [-Wenum-compare]
[Warning] serial_device.c@675,41: comparison of different enumeration types ('PinName' and 'UARTName') [-Wenum-compare]
[Warning] serial_device.c@676,41: comparison of different enumeration types ('PinName' and 'UARTName') [-Wenum-compare]
2021-12-10 17:16:47 +01:00
Jerome Coutant 1bf801a4f7 STM32G4 : remove warning
[Warning] serial_device.c@644,41: comparison of integer expressions of different signedness: 'PinName' and 'enum <anonymous>' [-Wsign-compare]
[Warning] serial_device.c@644,41: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare]
[Warning] serial_device.c@653,41: comparison of integer expressions of different signedness: 'PinName' and 'enum <anonymous>' [-Wsign-compare]
[Warning] serial_device.c@653,41: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare]
[Warning] serial_device.c@662,41: comparison of integer expressions of different signedness: 'PinName' and 'enum <anonymous>' [-Wsign-compare]
[Warning] serial_device.c@662,41: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare]
[Warning] serial_device.c@663,41: comparison of integer expressions of different signedness: 'PinName' and 'enum <anonymous>' [-Wsign-compare]
[Warning] serial_device.c@663,41: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare]

[Warning] stm32g4xx_hal_hrtim.c@1817,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32g4xx_hal_hrtim.c@1821,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32g4xx_hal_hrtim.c@2461,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32g4xx_hal_hrtim.c@2465,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32g4xx_hal_hrtim.c@6600,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32g4xx_hal_hrtim.c@7162,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32g4xx_hal_hrtim.c@7166,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
2021-12-10 17:16:47 +01:00
Jerome Coutant 999d98a3d7 STM32L4 : remove warning
This is the MBED current implementation, no need to warn
2021-12-10 17:16:47 +01:00
Jerome Coutant b5e28baf45 STM32 CAN : remove warning [-Wsign-compare]
Detected with NUCLEO_G474RE build:
[Warning] stm32g4xx_hal_fdcan.h@1325,84: comparison is always true due to limited range of data type [-Wtype-limits]
[Warning] stm32g4xx_hal_fdcan.h@1331,46: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
[Warning] stm32g4xx_hal_fdcan.h@1331,65: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
[Warning] stm32g4xx_hal_fdcan.h@1325,61: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
[Warning] stm32g4xx_hal_fdcan.h@1325,84: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
2021-12-10 17:16:35 +01:00
ATmobica 78a7859fa8 Add <"WHD" IN_LIST MBED_TARGET_LABELS> condition to Cypress boards and wifi driver cmake files 2021-12-10 13:14:29 +01:00
Martin Kojtal 810662bd77
Merge pull request #15176 from marcemmers/rename_mstd_span_size_type
mstd::span rename index_type to size_type according to spec
2021-12-09 10:29:07 +00:00
Martin Kojtal 1c5813b33c
Merge pull request #15181 from hallard/LoRa_sx1276_LowPower_fix
Fix LoRa sx1276 Low Power sleep, now 3uA
2021-12-08 14:55:52 +00:00
Arto Kinnunen 357dbec020 Merge commit '1d440bc3adfe6afbd60ff8c39dd267aa925716c3' into nanostack_v15_1_0
* commit '1d440bc3adfe6afbd60ff8c39dd267aa925716c3':
  Squashed 'connectivity/nanostack/sal-stack-nanostack-eventloop/' changes from fb20d3f32c..60c1fb61af
2021-12-08 13:54:43 +02:00
Arto Kinnunen 1d440bc3ad Squashed 'connectivity/nanostack/sal-stack-nanostack-eventloop/' changes from fb20d3f32c..60c1fb61af
60c1fb61af Merge remote-tracking branch 'origin/master' into release_for_mbed_os
6c8166d77b Sync from Mbed OS (#50)
b8e6ed9def Update copyright (#48)

git-subtree-dir: connectivity/nanostack/sal-stack-nanostack-eventloop
git-subtree-split: 60c1fb61afb5825fd6eac150eadded9fdc3047a8
2021-12-08 13:54:42 +02:00