zephyr/ext/hal/st/stm32cube/stm32l0xx
Ilya Tagunov 849c8a4ea1 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
..
drivers ext: hal: stm32l0xx: spi: remove offending cast 2018-03-15 10:53:26 -05:00
soc
CMakeLists.txt ext/hal/stm32l0xx: Remove stm32l0xx_ll_usb from CMakeLists 2018-03-14 08:52:10 -05:00
README ext: hal: stm32l0xx: spi: remove offending cast 2018-03-15 10:53:26 -05:00

README

STM32CubeL0
###########

Origin:
   ST Microelectronics
   http://www.st.com/en/embedded-software/stm32cubel0.html

Status:
   version 1.10.0

Purpose:
   ST Microelectronics official MCU package for STM32L0 series.

Description:
   This package is an extract of official STM32CubeL0 package written by ST Microelectronics.
   It is composed of STM32Cube hardware abstraction layer (HAL) and low layer (LL) plus a set
   of CMSIS headers files, one for each SoC in STM32L0 series.

Dependencies:
    None.

URL:
   http://www.st.com/en/embedded-software/stm32cubel0.html

commit:
   version 1.10.0

Maintained-by:
   External

License:
   BSD-3-Clause

License Link:
   http://www.st.com/resource/en/license_agreement/dm00218346.pdf

Patch List:

   *Current implementation of LL_SPI_TransmitData16 on L0 family
    generates following warning:
    "warning: dereferencing type-punned pointer will break strict-aliasing
    rules [-Wstrict-aliasing]"
    Besides being forbidden by rule, this cast is not needed, as register is
    16 bits wide. Modification has been tested on L0 SoC.
    stm32yyxx_ll_spi.h being included in soc.h file, warning is generated
    at each compiled object, this commit allows a clean build.
    Impacted files:
      drivers/include/stm32l0xx_ll_spi.h
    ST Bug tracker ID: 12974