Commit Graph

8314 Commits (971d0dd3bdbe1c633d1693f60a0f5c988c1ee506)

Author SHA1 Message Date
anish-k eb06d5eb59 analogout: STM32: modified analogout_free api
removed hardcoded pins, implemented multi channel check
implemented DAC_2 initialization for H7 board
Added  #if defined DAC_CHANNEL_2
2021-07-02 21:34:24 +05:30
Martin Kojtal 43116a2822
Merge pull request #14807 from noonfom/m2354-psa-v8-m-devices
M2354: inherit PSA_V8_M devices
2021-07-01 10:52:53 +02:00
Jaeden Amero 043d1735a1
Merge pull request #14837 from LDong-Arm/K64F_pin_names
K64F: Fix pin names and migrate to Arduino Uno form factor
2021-06-30 09:15:54 +01:00
Martin Kojtal 8188f5f5ab
Merge pull request #14776 from affrinpinhero-2356/i2c_longTime_Mem_Solve
driver/i2c: STM32: I2C memory usage and time delay in read-write solved.
2021-06-29 11:30:02 +02:00
Lingkai Dong 61989e106a K64F: Fix pin names and migrate to Arduino Uno form factor
Fix pin names of K64F with the following from the latest guidelines:
* LEDs and buttons are defined as macros, digital and analog pins as
enums.
* No duplicated pin names with the same value.
* The Arduino form factor is deprecated in favour of Arduino Uno.

Note: The pins `SPI_xxx` are for SD card only, but the names are kept
for backward compatibility (i.e. no breaking change until the next
Mbed OS major version). The general purpose Arduino Uno SPI pins
(`ARDUINO_UNO_SPI_xxx`) are different and also available.
2021-06-28 17:47:25 +01:00
Affrin Pinhero 8f24f09df7 driver/i2c: STM32: Solves excess memory usage issue.
This commit solves excess usage of RAM. User can now enable/disable
I2C timing algorithm. Disabling of I2C timing algorithm would
reduce RAM usage.

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-06-28 18:13:02 +05:30
Martin Kojtal de7e326bc1
Merge pull request #14677 from MubeenHCLite/corrections_in_STM_canapi
Changes required in STM CAN read API
2021-06-25 10:49:20 +02:00
Martin Kojtal a2281a7e49
Merge pull request #14822 from jeromecoutant/PR_H7_M4
STM32H7: correction for FLASH API for CM4
2021-06-25 10:02:31 +02:00
Mohammed Mubeen 6f436dbac3 Adjusted spcae alignment 2021-06-25 12:06:44 +05:30
Martin Kojtal 829164acdb
Merge pull request #14778 from MubeenHCLite/Can_TxIrq_callback_resolution
CAN TxIRq callback never called -STM32G474
2021-06-24 15:44:52 +02:00
jeromecoutant a4b2695d15 STM32H7 CM4: enable ART 2021-06-23 16:58:16 +02:00
jeromecoutant ec945ba990 STM32H7 CM4: correct FLASH_SIZE
FLASH_SIZE_DATA_REGISTER is not accessible by M4,
acces makes a hard fault
2021-06-23 16:53:38 +02:00
Mohammed Mubeen 9732cdcce6 Updated comments appropriately 2021-06-22 14:22:16 +05:30
Abbas Bracken Ziad bfdf6f09ec M2354: inherit PSA_V8_M devices
For `MCU_M2354`, the use of `device_has` in `targets.json` overrides the devices
present in the base target: `PSA_V8_M`. In particular, `DEVICE_TRNG` is missing
in `NU_M2354` builds as `TRNG` is a member of the `PSA_V8_M` `device_has` list.
As suggested by @ccli8, to ensure that `PSA_V8_M` devices are inherited by
derived targets, such as `MCU_M2354`, the correct syntax to use is
`device_has_add`.
2021-06-21 12:40:30 +01:00
Mohammed Mubeen 2cc08cf5a6 Rebaseing to current master 2021-06-21 14:34:48 +05:30
Mohammed Mubeen 5049b518fb Added working functionality to the can_filter api to accept IDs for filtering in both bxCAN and FDCAN 2021-06-21 14:17:41 +05:30
Mohammed Mubeen 064f94d0a6 Added to return failure if filter if unsupported format 2021-06-21 14:17:31 +05:30
Mohammed Mubeen 274d8aa40c The default FIFO for can by hardware is FIFO0 as set by the CAN STM API in configuration. Hence the read api is modified to access FIFO0 only 2021-06-21 14:17:14 +05:30
Mohammed Mubeen 1fc141905e Added code to set TBTIE, to enable the tx complete/abort interrupts, for
all supported FDCAN platforms
2021-06-15 20:17:50 +05:30
Affrin Pinhero ef5ac45192 driver/i2c: STM32: I2C Read Write Take long time
Modified i2c_device.h file. This will solve I2C read
write long time issue. Updated default I2C peripheral clock
value to 160MHz.

fix:
ARMmbed/mbed-os#14732

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-06-15 15:08:24 +05:30
Martin Kojtal 3c622f60b5
Merge pull request #14743 from OpenNuvoton/nuvoton_m251_m261_wdt
Nuvoton: Support watchdog on M251/M261 series
2021-06-11 16:10:53 +02:00
Martin Kojtal aeaac0e70c
Merge pull request #14746 from jeromecoutant/PR_WB15CC
STM32WB: introduce STM32WB15CC NUCLEO
2021-06-10 14:16:10 +02:00
Martin Kojtal b74f62c974
Merge pull request #14659 from arduino/i2c_slave_patch
STM32: make i2c_salve_read return the number of bytes read
2021-06-10 14:10:31 +02:00
jeromecoutant 1a370ed02a STM32WB: README update with NUCLEO_WB15CC 2021-06-08 15:04:00 +02:00
Martin Kojtal 7c17693c06
Merge pull request #14729 from affrinpinhero-2356/adc_bank_script_update
tools/STM32 Modified Python script generates Peripheral Pins
2021-06-08 12:21:32 +02:00
Chun-Chieh Li de00a5a4e8 Nuvoton: Support watchdog on M251/M261 series
Support watchdog on below targets:
-   NUMAKER_IOT_M263A
-   NUMAKER_IOT_M252
2021-06-08 11:03:55 +08:00
Martin Kojtal 8b1b302744
Merge pull request #14733 from jeromecoutant/PR_DUALPAD
STM32H7 ADC : dual pad feature update
2021-06-07 20:50:16 +02:00
Martin Kojtal 1fe0650907
Merge pull request #14721 from OpenNuvoton/nuvoton_no-hxt-lxt
Nuvoton: Enable no HXT/LXT configurability
2021-06-07 20:50:10 +02:00
jeromecoutant 4c7d9d190b STM32 NUCLEO_WB15CC support 2021-06-07 18:03:49 +02:00
jeromecoutant 9f0ee46475 STM32WB15xC MCU support 2021-06-07 16:05:41 +02:00
Martin Kojtal 587eb413d6
Merge pull request #14736 from jeromecoutant/ISSUE_USB_F1
STM32 USB: update init
2021-06-07 13:32:01 +02:00
Martin Kojtal a83ec1960b
Merge pull request #14739 from OpenNuvoton/nuvoton_m2354_tfm_no_hxt
M2354: Substitute HIRC for HXT to clock PLL
2021-06-07 12:52:57 +02:00
Martin Kojtal 0675d30be8
Merge pull request #14670 from jeromecoutant/PR_README_SLEEP
STM32: add information in README for SLEEP feature
2021-06-07 12:32:01 +02:00
Martin Kojtal fef89d93ce
Merge pull request #14738 from MaximIntegrated/master
Gate ticker (timer0) clock on deepsleep for MAX32620FTHR
2021-06-07 12:31:48 +02:00
Martin Kojtal 9fbb89e2d1
Merge pull request #14692 from jeromecoutant/PR_WB_HCI
STM32WB: improve FLASH size
2021-06-07 11:18:26 +02:00
Ahmet Alincak 43d9c0fbb4 Gate ticker (timer0) clock on deepsleep 2021-06-07 00:41:09 +03:00
jeromecoutant 94794f9228 STM32 USB: update init
Add explicit calt to __HAL_PCD_ENABLE()
2021-06-04 17:01:14 +02:00
Anna Bridge 5047bd3c27
Merge pull request #14608 from JeanMarcR/STM32H7_NEW_CUBE
STM32H7 update drivers version to CUBE V1.9.0
2021-06-04 11:51:05 +01:00
Anna Bridge 986add717e
Merge pull request #14722 from jeromecoutant/PR_RNG
STM32 TRNG: update init to match all configs
2021-06-04 11:40:07 +01:00
Chun-Chieh Li 0b6fdf46f0 M2354: Default to HXT not present
1.  Build TF-M v1.3 with GNUARM and HXT not present.
2.  Support configurability of HXT presence (targets.json).
3.  Default HXT to not present (targets.json). This must align with built TF-M secure code above.
2021-06-04 10:32:59 +08:00
Chun-Chieh Li 79cf5a01d5 M2354: Synchronize platform extra secure files from TF-M
These files are refactored on TF-M and make no logic change on Mbed.
2021-06-04 10:32:59 +08:00
Chun-Chieh Li 71c32de1d7 M2354: Refine TF-M import readme
Add bug report of GNU Arm Embedded Toolchain 10-2020-q4-major in CMSE support
2021-06-04 10:32:59 +08:00
jeromecoutant fb8be8259c STM32H7 ADC : dual pad feature update 2021-06-03 10:42:35 +02:00
pennam cd35063694 Add missing changes in objects.h file for others STM32 components 2021-06-03 10:12:04 +02:00
Affrin Pinhero f7a3ad9008 tools/STM32 Modified Python script generates Peripheral Pins
Modified print_adc function to update adc pin_map.
This patch will update python script that generate
'peripheralPin.c'. Which will give functionality to
gernerate ADC pin definition for BANK_B.
This script update is related to
https://github.com/ARMmbed/mbed-os/pull/14669

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-06-02 21:23:46 +05:30
Martin Kojtal 5fe4dafc34
Merge pull request #14221 from macronix/macronix_rww
Enable the RWW function of Macronix Flash MX25LW51245G in OSPI block device driver
2021-06-02 16:53:59 +02:00
jeromecoutant a4ae9f13a7 STM32 TRNG : update init to match all config 2021-06-02 16:37:38 +02:00
jeromecoutant 20e4a351f1 Revert "STM32L5 RNG : update for deprecated MCU version"
This reverts commit f599a5463c.
2021-06-02 16:37:38 +02:00
Martin Kojtal 045c48db3e
Merge pull request #14669 from affrinpinhero-2356/adcBank
STM32L152: Added ADC Bank_B functionality
2021-06-02 16:33:03 +02:00
Martin Kojtal 5aaf3a3390
Merge pull request #14720 from chrJost/STM32L5x2_pwr_register
STM32L5: corrected voltage scaling when using MSI
2021-06-02 15:50:02 +02:00