Commit Graph

17 Commits

Author SHA1 Message Date
Erwan Gouriou 06382a9968 stm32cube: update stm32l0 to version V1.12.0
Update Cube version for STM32L0xx series
on https://github.com/STMicroelectronics
from version v1.11.3
to version v1.12.0

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-03-03 12:12:58 -06:00
Alexandre Bourdiol 1e5111a2c1 stm32cube:add systematic compilation of '_hal_rcc_ex.c'
Add systematic compialtion of '..._hal_rcc_ex.c' in 'CMakeLists.txt'
generation. There is more and more dependence of HAL IP to
'..._hal_rcc_ex.c'

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2020-10-27 08:03:47 -05:00
Alexandre Bourdiol 759099069b stm32cube: update stm32l0 to version V1.11.3
Update Cube version for STM32L0xx series
on https://github.com/STMicroelectronics
from version v1.11.2
to version v1.11.3

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2020-10-27 08:03:47 -05:00
Giancarlo Stasi 6e2d3f9514 stm32cube: extend public SetFlashLatency API to all families
The LL_SetFlashLatency public API is now defined for families
beyond G4, L4 and L5. In most case the private function has been
made public, in one case (H7) it's built on top of existing ones.

Signed-off-by: Giancarlo Stasi <giancarlo.stasi.co@gmail.com>
2020-06-24 21:45:39 +02:00
Andreas Sandberg 6812113dc5 stm32l0xx: Add stm32l0xx_ll_usb to CMakeLists
Some STM32L0 SoCs contain a USB device controller. Add the LL USB HAL
to enable USB support in Zephyr.

Signed-off-by: Andreas Sandberg <andreas@sandberg.pp.se>
2020-06-10 07:51:44 -05:00
Kumar Gala 3c98339c2a stm32l0xx: Fix warnings for extraneous parentheses
Building with clang reports the following warnings:

stm32l0xx_hal_rcc.c.c: error: equality comparison with extraneous
parentheses [-Werror,-Wparentheses-equality]
    if((sysclk_source == RCC_CFGR_SWS_MSI) )
        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~

Removing the extra () fixes the warning

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-02-12 09:29:52 -06:00
Erwan Gouriou 92bdc131f9 stm32cube: all: Rename Kconfig symbol xxx_CRYPT to xxx_CRYP
Each Cube peripheral API _foo.h has a matching Kconfig symbol
USE_STM32_HAL_FOO. This convention is useful for automatic package
update.
Crypto API derogates from this rule, which breaks automatic update:
- API is _cryp.h
- Kconfig is USE_STM32_HAL_CRYPT

Fix this by aligning Kconfig symbol on API naming.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-12-09 11:54:23 -06:00
Marc Herbert 2077622128 make stm32cube a zephyr_library()
Stops leaking very long source paths in build directories; makes them
deterministic.

This is identical to what was already merged in
https://github.com/zephyrproject-rtos/hal_nordic/pull/6
or https://github.com/zephyrproject-rtos/zephyr/pull/19531
see previous code reviews there.

See also CMake issue https://gitlab.kitware.com/cmake/cmake/issues/19475
for more details.

This is basically a search/replace of "zephyr_sources" with
"zephyr_library_sources"

For instance, when running sanitycheck -p stm3210c_eval, this changes
the build directories from:

sample.helloworld/
└── zephyr
    ├── CMakeFiles
    │   │   ├── HOME
    │   │   │   └── JOHN
    │   │   │      └── ZEPHYRPROJECT
    │   │   │          └── modules
    │   │   │             └── hal
    │   │   │                └── stm32
    │   │   │                    └── stm32cube
    │   │   │                       └── stm32f1xx
    │   │   │                          ├── drivers
    │   │   │                          │  └── src
    │   │   │                          │     ├── stm32f1xx_hal.c.obj
    │   │   │                          │     ├── stm32f1xx_hal_rcc.c.obj
    │   │   │                          │     └── stm32f1xx_ll_utils.c.obj
    │   │   │                          └── soc
    │   │   │                              └── system_stm32f1xx.c.obj

... to:

sample.helloworld/
├── modules
│   ├── stm32
│   │   ├── CMakeFiles
│   │   └── stm32cube
│   │       ├── CMakeFiles
│   │       │   └── ..__modules__hal__stm32__stm32cube.dir
│   │       │       └── stm32f1xx
│   │       │           ├── drivers
│   │       │           │   └── src
│   │       │           │       ├── stm32f1xx_hal.c.obj
│   │       │           │       ├── stm32f1xx_hal_rcc.c.obj
│   │       │           │       └── stm32f1xx_ll_utils.c.obj
│   │       │           └── soc
│   │       │               └── system_stm32f1xx.c.obj
│   │       ├──
│   │       ├── lib..__modules__hal__stm32__stm32cube.a

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2019-10-23 06:37:43 -05:00
Erwan Gouriou 5f4c44fcd6 stm32cube: update stm32l0xx cube version
Update Cube version for STM32L0XX series
from version: V1.10.0
to version: V1.11.2

Includes fix for ST Bug tracker ID: 12974.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-06-21 09:33:37 -04:00
Erwan Gouriou db2a2f3d25 ext/hal/st: stm32cube: Update License Link for stm23cube packages
License link provided in stm32cube abstract packages was not
reflecting the actual license in use for these packages.
Update the link to BSD 3-Clause official.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-05-06 08:54:14 -05:00
Kumar Gala 70fca8fa52 ext/hal: stm32l0xx: Fix warnings for extraneous parentheses
Building with clang reports the following warnings:

stm32l0xx_hal_tim.c: error: equality comparison with extraneous
parentheses [-Werror,-Wparentheses-equality]
  else if((htim->State == HAL_TIM_STATE_READY))
           ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~

Removing the extra () fixes the warning

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-04-17 16:46:17 -05:00
Erwan Gouriou b2924d9d20 ext/hal/st: stm32l0: dos2unix and remove trailing white spaces
Format all cube packages to the same format before update to new
versions:
-Apply dos2unix
-Remove trailing white spaces

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-10-09 12:03:17 -04:00
Ilya Tagunov 63701631d0 ext: hal: stm32l0xx: spi: remove offending cast
stm32l0xx_ll_spi.h causes compile warnings about aliasing.
Solution for F0 works here as well.
Tested on STM32L073RZ with 16-bit transfers.

Signed-off-by: Ilya Tagunov <tagunil@gmail.com>
2018-03-15 10:53:26 -05:00
Yannis Damigos 1859eff537 ext/hal/stm32l0xx: Remove stm32l0xx_ll_usb from CMakeLists
STM32Cube doesn't provide a USB LL API for STM32L0XX series.
This patch removes stm32l0xx_ll_usb.c from CMakeLists because
it doesn't exist.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-03-14 08:52:10 -05:00
Endre Karlson 7cf242e5cb hal: stm32l0x: Add HAL for the STM32L0x series
This adds the HAL code needed for the SoC in a later patch for
the stm32l0 series.

Origin: ST Microelectronics
License: BSD-3-Clause
URL: http://www.st.com/en/embedded-software/stm32cubel0.html
Commit: 1.10.0
Purpose: HAL layer for stm32l0
Maintained-by: External

Signed-off-by: Endre Karlson <endre.karlson@gmail.com>
2018-03-10 11:42:25 -06:00
Kumar Gala fcf8c07a6d Revert "stm32cube: Introduce STM32Cube for STM32L0xx series"
This reverts commit cc5842df70cd38593320f9c1e1c3f47ed702350b.

Change-Id: I397f8a769d839c39c89c3be6f3880ba9e419bf29
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-11-11 13:41:25 -06:00
Erwan Gouriou d1e57b28e9 stm32cube: Introduce STM32Cube for STM32L0xx series
With this commit we provide header and HAL/LL files for all STM32L0
SoCs.
Using STM32Cube provides generic access to all families, maximizes
code reuse across different STM32 families and helps taking benefit
of a mature SDK

Origin: STM32Cube
URL: http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubel0.html
Purpose: Introduction of STM32L0xx STM32Cube definitions
and Abstraction Layers
Maintained-by: External

Original STM32Cube tree structure has been modified to a minimum
structure for a better fit into Zephyr. hal is split into 2 parts:
-driver: initially Drivers/STM32L0xx_HAL_Driver, contains HAL and LL
-soc: initially Drivers/CMSIS/Device/ST/STM32L0xx, contains stm32l0xx
socs header files

Change-Id: Ibb8ea2e059b5d4f63848be269765d803f842cc2f
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2016-11-11 19:04:38 +00:00