Commit Graph

60 Commits (a4ae9f13a7b999082b9f8de793102a8a1f6a78b5)

Author SHA1 Message Date
jeromecoutant 20e4a351f1 Revert "STM32L5 RNG : update for deprecated MCU version"
This reverts commit f599a5463c.
2021-06-02 16:37:38 +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
Martin Kojtal 0711e488a1
Merge pull request #14686 from jeromecoutant/PR_CPP
STM32: correct __cplusplus brackets
2021-06-02 13:59:26 +02:00
Jost, Chris 3bfa124f80 enable the power settings register prior to setting them 2021-06-01 16:40:15 +02:00
Martin Kojtal da13755a9f
Merge pull request #14699 from jeromecoutant/PR_ASTYLE
STM32 astyle format
2021-06-01 10:02:34 +02:00
Jaeden Amero 9135966efe
Merge pull request #14687 from JeanMarcR/STM32L5_NEW_CUBE
STM32L5 update drivers version to CUBE V1.4.0
2021-05-27 14:55:32 +01:00
jeromecoutant 49f8ddd456 STM32L5 astyle 2021-05-25 14:46:00 +02:00
jeromecoutant 81dc8f8605 STM32: correct __cplusplus brackets in ci2c_device.h 2021-05-24 14:47:05 +02:00
jeromecoutant 073c82e568 STM32: correct __cplusplus brackets in can_device.h 2021-05-24 14:39:32 +02:00
Anna Bridge 5ef56cc6f4
Merge pull request #14557 from affrinpinhero-2356/feature_i2cTiming_Calculation
STM32: driver/Added I2C timing calculation algorithm
2021-05-24 13:09:19 +01:00
reme f599a5463c STM32L5 RNG : update for deprecated MCU version 2021-05-20 15:02:40 +01:00
reme 276eefd0cc STM32L5 update drivers version to CUBE V1.4.0 2021-05-20 15:02:40 +01:00
Affrin Pinhero d974b47439 driver/i2c: Added I2C timing calculation function.
This commit adds I2C timing value automatic calculation algorithm
for all supported families added. This patch improves I2C timing calculation
according to I2C input clock and I2C bus speed.
This commit also allows user to change the system clock and I2C input clock.

Related issue: #12907

Pull request type:
[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results:
[] No Tests required for this change (E.g docs only update)
[x] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-05-19 18:35:47 +05:30
Martin Kojtal 32d1c99d3c
Merge pull request #14480 from jeromecoutant/PR_STM32_STANDARD
STM32: Standard Pin Names
2021-04-15 17:30:50 +02:00
Martin Kojtal dd1da3da40
Merge pull request #14469 from jeromecoutant/PR_FLASH_PROGRAM
STM32: remove critical sections in flash_program_page
2021-04-14 20:15:11 +02:00
jeromecoutant 768037c05e STM32L5: standard pin names 2021-04-14 11:18:43 +02:00
Anish Kumar 780d7c4a00 Updated TARGET_STM32 PeripheralPins.c and PeripheralPinMaps.h Replaced GPIO_PULLUP with GPIO_NOPULL in PinMap_PWM table 2021-04-08 18:42:01 +05:30
Anna Bridge b91a705e74
Merge pull request #14444 from jeromecoutant/PR_GPIO_FREE
STM32: reset GPIO value is analog mode
2021-03-29 11:23:15 +01:00
jeromecoutant d0ea0466ad STM32: remove critical sections in flash_program_page 2021-03-24 17:40:18 +01:00
George Psimenos 61cfaa15cd Update UART pin names & add MBED_CONF_TARGET_STDIO_UART overrides 2021-03-23 11:17:17 +00:00
jeromecoutant eafaca379e [STD-PIN] STM32L5: standardized pins 2021-03-18 17:01:53 +00:00
George Psimenos 885cdef5f7 Add standard pin-names validation script & tests 2021-03-18 17:01:53 +00:00
jeromecoutant 7203125827 STM32 ANALOGOUT : correct GPIO free 2021-03-18 14:53:00 +01:00
Marek Czerski f64e64dc9d STM32: AnalogOut: do not call HAL_DAC_Start in dac_write
dac_write (used by AnalogOut.write) calls HAL_DAC_Start
every time. It is required to call HAL_DAC_Start only once.
HAL_DAC_Start uses internally HAL_Delay(1) making AnalogOut
not suitable for use in high speed application.
This change removes call to HAL_DAC_Start in dac_write and
moves it to analogout_init.
2021-03-12 09:56:41 +01:00
Martin Kojtal e37f7a67f2
Merge pull request #14351 from ladislas/ladislas/stm32f7/use_callbacks
STM32 - Add if !defined check for USE_HAL_XXX_REGISTER_CALLBACKS
2021-03-08 11:08:45 +00:00
Ladislas de Toldi c68c210a47
STM32L5 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:19:17 +01:00
Jost, Chris 96c31e15da fixed copy paste errors 2021-02-24 14:41:04 +01:00
Jost, Chris cb032d2365 enable USBDEVICE for STM32L5 2021-02-24 10:21:54 +01:00
Martin Kojtal 2d3bf3fd34 CMake STM32: fixing prefixes in the targets 2021-02-10 15:23:22 +00:00
Martin Kojtal 6bf459e3ce CMake STM32: fix mbed-stm linking libs names 2021-02-10 12:24:10 +00:00
Martin Kojtal 544e5b94c3 CMake STM32: fix targets naming
Follow the naming for other CMake targets, using prefix mbed-, lower case with dashes
2021-02-09 17:07:44 +00:00
Robert Walton d9e184b6c6 cmake: Refactor ST targets
Refactor all ST targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-04 15:26:36 +00:00
jeromecoutant 1bbceb48f0 STM32 / CMAKE / targets : correct CMakeLists.txt files 2021-01-15 15:11:16 +01:00
pea-pod e1c754b179 Add SPI bitwidths to ST targets where supported 2021-01-11 07:53:07 -06:00
Martin Kojtal 56f731027e
Merge pull request #13929 from JeanMarcR/DEEP_SLEEP
STM32: LPUART clock source selection up to a serial driver
2020-12-03 08:47:01 +00:00
Martin Kojtal fc16d2bae7 STM: fix ARMClang sct files, using proper -E command
This is required for ARMClang, otherwise there is an error with unknown command.
2020-11-25 13:35:36 +00:00
Martin Kojtal ced4aa6e2d
Merge pull request #13939 from jeromecoutant/PR_LSEDRIVE
STM32: LSE DRIVE feature update
2020-11-24 14:13:52 +00:00
Martin Kojtal a1fc9cdad5
Merge pull request #13915 from 0xc0170/cmake-stm32
CMake: add all TARGET_STM targets
2020-11-24 14:09:28 +00:00
Martin Kojtal 59c03e1e75
Merge pull request #13914 from JeanMarcR/FLASH_API
STM32 FLASH API : add critical sections
2020-11-24 14:08:52 +00:00
Martin Kojtal 2f709cc13f
Merge pull request #13896 from jeromecoutant/PR_OSPI
STM32 OSPI support
2020-11-24 13:53:30 +00:00
reme 41ed9239be LPUART CLOCK SOURCE SELECTION LEFT TO SERIAL DRIVER.
The clock source selection of LPUART depends on System clocks but also on
the serial baudrate. There is a specific computation done in serial driver
targets/target_STM/serial_api.c

At first start-up the LPUART1 clock selected in SetSysClock was anyway
overridden by the serial driver, so this was of no effect. But in case
of deep sleep SetSysClock is called again, while the driver isn't, so
SetSyClock was corrupting the serial clock configuration.

So let's remove these few lines of code which are causing trouble.

For targets L496 and L5.

Taking into account device TRNG in L5 configuration
2020-11-23 17:10:49 +01:00
jeromecoutant 29af76fcca STM32: LSE DRIVE feature update 2020-11-20 17:31:26 +01:00
reme 16e63dc108 STM32 FLASH API : add critical sections
See PR #13802 (for F4 board)

Concerned boards are

STM32F0
STM32F1
STM32F2
STM32F3
STM32F4
STM32F7
STM32G0
STM32G4
STM32H7
STM32L0
STM32L1
STM32L4
STM32L5

Adding test of return code of HAL_FLASH_Lock() function
Adding board STM32F4
Running AStyle
2020-11-20 08:03:24 +00:00
Martin Kojtal 468b66944d CMake: STM32 TARGET_ prefix removal fix 2020-11-18 12:13:46 +00:00
Martin Kojtal 39cb929749 CMake: add STM32L5 targets 2020-11-17 16:48:11 +00:00
jeromecoutant 3697167b73 STM32: add OSPI capability
PeripheralPins.c and PinNames.h files
generated by STM32_gen_PeripheralPins.py v1.17
2020-11-10 18:37:51 +01:00
JojoS62 e7f1430d37 remove duplicate LSEDRIVE_CONFIG 2020-10-22 11:24:51 +02:00
jeromecoutant 4b999b3e7f STM32L5: STM32Cube_FW_L5_V1.3.0
https://github.com/STMicroelectronics/STM32CubeL5
2020-10-16 17:31:58 +02:00
Martin Kojtal a17a481c54
Merge pull request #13583 from jeromecoutant/PR_ARDUINO_PIN
STM32: correct few Arduino pins value
2020-09-10 12:38:02 +01:00
Jaeden Amero 612b148fd4 stack: armc: Workaround config passing bug
Workaround a bug where the boot stack size configuration option is not
passed on to armlink, the Arm Compiler's linker. Prefer
MBED_CONF_TARGET_BOOT_STACK_SIZE if present, as this is what the
configuration system should provide. Fall back to MBED_BOOT_STACK_SIZE
if MBED_CONF_TARGET_BOOT_STACK_SIZE is not defined, as in the case of
buggy tools. If both MBED_CONF_TARGET_BOOT_STACK_SIZE and
MBED_BOOT_STACK_SIZE are not defined, then we fall back to a hard-coded
value provided by the linkerscript. See
https://github.com/ARMmbed/mbed-os/issues/13474 for more information.
2020-09-10 10:08:38 +01:00