Commit Graph

8764 Commits (master)

Author SHA1 Message Date
Chun-Chieh Li a72075b5ad M467: Fix invoking GPIO_SET_DEBOUNCE_TIME
Fix missing gpio_base on invoking GPIO_SET_DEBOUNCE_TIME()
2024-09-04 16:42:19 +08:00
Martin Kojtal 945c3defdb
Merge pull request #15502 from mbed-ce/upstreamed/stm32h7x-clocking-fixes
Rework STM32H7x clocking configuration
2024-06-08 16:16:26 +01:00
Jamie Smith 45e9efc60d Remove duplicate option for NUCLEO_H723ZG 2024-05-06 21:48:54 -07:00
Jamie Smith a5abf7ca11 Remove Portenta-specific system clock override as this can be done through targets.json now 2024-05-05 16:37:00 -07:00
Martin Kojtal 1060154c19
Merge pull request #15499 from agausmann/i2c-slave-flags
STM: Add separate flags for I2C slave transfer in progress
2024-05-03 19:03:40 +02:00
Martin Kojtal 95fee2f75a
Merge pull request #15500 from OpenNuvoton/nuvoton_fix_function_undeclare
NUVOTON: Fix undeclared function as error
2024-04-24 19:07:38 +02:00
Chun-Chieh Li c1c9550539 NUVOTON: CAN: Fix filter mask being zero
On mask being zero, it means any match, not exact match.

NOTE: This fix only targets CAN (M453/M487), not CAN-FD (M467).
NOTE: NUC472 CAN doesn't support filter.
2024-04-18 13:29:24 +08:00
Chun-Chieh Li 989a694c5a NUVOTON: CAN: Fix Message Object number for Tx and recognition of Rx interrupt
1.  The same Message Object number cannot use for both Tx and Rx simultaneously.
    For Tx, Message Object number 31 is reserved instead of 0.
    For Rx, Message Object numbers 0~30 are used and for filters.
2.  NewDat bit (CAN_IsNewDataReceived()) isn't exclusive to Rx.
    Recognize Rx interrupt by Message Object number other than 31.

NOTE: This fix only targets CAN (NUC472/M453/M487), not CAN-FD (M467).
2024-04-18 11:04:15 +08:00
Chun-Chieh Li bfd4ceb20b NUVOTON: CAN: Fix Rx interrupt doesn't work
Major modifications:
1. Handle Rx interrupt based on Message Object interrupt (CAN_IIDR=0x0001~0x0020) instead of CAN_STATUS.RxOK
2. Also handle Tx interrupt following above for consistency

Other related modifications:
1. Fix signature type error in CAN_CLR_INT_PENDING_BIT()
2. Add CAN_CLR_INT_PENDING_ONLY_BIT() which doesn't clear NewDat flag so that user can fetch received message in thread context

NOTE: This fix only targets CAN (NUC472/M453/M487), not CAN-FD (M467).
2024-04-18 11:04:15 +08:00
Chun-Chieh Li 63bdb26915 NUVOTON: CAN: Fix filter mask
NOTE: This fix only targets CAN (M453/M487), not CAN-FD (M467).
NOTE: NUC472 CAN doesn't support filter.
2024-04-18 11:04:15 +08:00
Jamie Smith 7cb61d9edf Rework STM32H7x clocking configuration 2024-04-16 00:24:09 -07:00
Adam Gausmann dc49c2b5f5 Add separate flags for I2C slave transfer in progress
Fixes ARMmbed/mbed-os#15498

Adds 2 boolean flags to the STM32 `i2c_s` object
to indicate whether a transfer is in progress,
separate from the existing "transfer pending" flags.

`i2c_slave_write`, `i2c_slave_read` and their associated callbacks
are modified to use these flags in addition to the pending flags.
The original behavior of the pending flags is preserved.
2024-03-28 10:47:59 -05:00
Chun-Chieh Li 11d99971c8 NUVOTON: Serial: Fix undeclared function gpio_set
ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2024-03-18 09:55:16 +08:00
Chun-Chieh Li 25c0491284 NUVOTON: I2C: Fix undeclared function gpio_set
ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2024-03-18 09:54:58 +08:00
Chun-Chieh Li 4366b6811d NUVOTON: SPI: Fix undeclared function gpio_set
ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2024-03-18 09:54:45 +08:00
Chun-Chieh Li cf7a07f106 NUVOTON: AnalogOut: Fix undeclared function gpio_set
ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2024-03-18 09:53:55 +08:00
Chun-Chieh Li 1be9ff0b5e NUVOTON: CAN: Fix undeclared function gpio_set
ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2024-03-15 13:26:03 +08:00
Chun-Chieh Li 5a4a4fd970 NUVOTON: AnalogIn: Fix undeclared function gpio_set
ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2024-03-15 13:18:55 +08:00
Martin Kojtal 61ab4f7f76
Merge pull request #15472 from jtmyz9/jmcloud/STM32-use-more-than-one-fifo
Don't overlap STM32 FDCAN RAM sections
2023-12-19 16:33:14 +01:00
Martin Kojtal dd99580cc5
Merge pull request #15475 from OpenNuvoton/nvt_usbd_zlp
Nuvoton: Bug fix of Nuvoton HUSBD driver's endpoint write
2023-12-14 13:42:15 +01:00
cyliang tw 772c5d3eec Fix NUC472 wrong define of set-zero-packet 2023-12-14 11:18:31 +08:00
cyliang tw 0ecb9bd268 Nuvoton HUSBD support endpoint write ZLP 2023-12-05 19:44:43 +08:00
jmcloud 9859c60751 Don't overlap STM32 FDCAN RAM sections 2023-11-30 13:19:29 -08:00
Chris Liang 2ebe0d5b31
TARGET_M480: Update targets.json to enable IAR support 2023-11-29 13:55:02 +08:00
Martin Kojtal 08c7171247
Merge pull request #15461 from pavels/master
TARGET_STM: only mask CAN rx interrupt after rx interrupt, not all CAN interrupts
2023-11-23 11:31:54 +01:00
Pavel Sorejs 47ec87ed35 TARGET_STM: only mask CAN rx interrupt after rx interrupt, not all CAN interrupts 2023-10-26 20:50:37 +02:00
Leon Lindenfelser 4ba13f104d Remove commented out code 2023-10-25 11:36:53 -05:00
Leon Lindenfelser 27ab6d82aa Add missing license header 2023-10-24 09:59:40 -05:00
Leon Lindenfelser ae97837f45 Fix pin validation for target XDOT_MAX32670 2023-10-23 12:16:45 -05:00
Leon Lindenfelser fcda8846f2 Add target support for XDOT_MAX32670 2023-10-19 16:03:17 -05:00
Jost, Chris 738419f6b7 remove stdio checks in serial init if no console is available 2023-10-10 10:52:09 +02:00
Sadik.Ozer cbe0f73a0e 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>
2023-09-07 10:15:32 +03:00
Charles 92718337ed Changed static to weak 2023-08-22 12:17:04 +02:00
Martin Kojtal f0d9090940
Merge pull request #15443 from hallard/STM32Cube_FW_WL_V1.3.0
STM32WL update drivers version to CUBE V1.3.0
2023-08-21 15:16:58 +01:00
Martin Kojtal dba734fb70
Merge pull request #15446 from mak22223/master
Add fix for STM32G4 hardfault in sleep mode
2023-08-16 15:33:43 +01:00
Joseph Duchesne 02b573793a
Fix crash when using FDCAN3 RX IRQ on STM32G473 (and others) 2023-08-14 11:07:23 -04:00
Maxim Markin 555822558e Add workaround for G474 hardfault 2023-08-14 11:35:00 +03:00
Charles 306c93d268 update drivers STM32WL CUBE V1.3.0 2023-08-11 14:34:06 +02:00
Saheer Babu f347b89d0d
Merge pull request #15426 from MaximIntegrated/fix_bug_uart
Fix bug uart
2023-06-07 11:56:41 +01:00
Chun-Chieh Li 8b69a94cef 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
2023-06-02 09:15:55 +08:00
Sadik.Ozer bdec190cbb MAX32660, MAX32670 UART performance improvement
Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>
2023-06-01 15:50:39 +03:00
Sadik.Ozer 0eac033cf1 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>
2023-06-01 15:50:39 +03:00
Martin Kojtal 3a08a4582c
Merge pull request #15421 from MaximIntegrated/dev-update_max32660_sdk
Update max32660 sdk files
2023-05-25 13:08:46 +01:00
Sadik.Ozer d42b9b377b Apply MAX32660 delta
Update mbed hal function as per of SDK update

Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>
2023-05-17 11:22:56 +03:00
Martin Kojtal b5692fd180
Merge pull request #15420 from jeromecoutant/PR_U5_120
STM32U5: STM32Cube_FW_U5_V1.2.0
2023-05-17 08:36:13 +01:00
Ahmet Polat 3f4b177128 Update MAX32660 peripheral drivers with final ones that use by SDK 2023-05-15 13:08:43 +03:00
Chun-Chieh Li 91a1b59c95 Nuvoton: Enable extending sampling time for ADC/EADC
For all Nuvoton targets, enable extending sampling time in ADC/EADC clocks on per-pin basis.
2023-05-15 14:40:10 +08:00
Jerome Coutant 9f0ede486d STM32U5: STM32Cube_FW_U5_V1.2.0 2023-05-10 12:18:24 +02:00
wdx04 b22d510b47 Add OSPI support for STM32H7 2023-05-03 23:00:45 +08:00
Jasper d2fdd6f943
Fix variable name
Signed-off-by: Jasper <jasper.jonker@wingtra.com>
2023-04-22 11:27:13 +02:00