Skip to content

[HAL][LL][SPI] Fix Misra-C 2012 Rule-8.13 violations and update HAL SPI driver to remove goto instruction#13

Open
myfakemail0012 wants to merge 2 commits into
STMicroelectronics:masterfrom
myfakemail0012:SpiMisra
Open

[HAL][LL][SPI] Fix Misra-C 2012 Rule-8.13 violations and update HAL SPI driver to remove goto instruction#13
myfakemail0012 wants to merge 2 commits into
STMicroelectronics:masterfrom
myfakemail0012:SpiMisra

Conversation

@myfakemail0012
Copy link
Copy Markdown

Description

This pull request updates the STM32F0 SPI HAL/LL drivers with:

  • MISRA-C 2012 Rule-8.13 fixes by adding const qualifiers where applicable
  • HAL SPI driver update to remove goto instruction and avoid misplaced __HAL_LOCK() issue

Updated files

  • Inc/stm32f0xx_hal_spi.h
  • Inc/stm32f0xx_ll_spi.h
  • Src/stm32f0xx_hal_spi.c
  • Src/stm32f0xx_ll_spi.c

Notes

The changes were adapted by analogy with equivalent SPI updates already applied in STM32F3 HAL driver.

@ALABSTM ALABSTM added hal HAL-LL driver-related issue or pull-request. spi Serial Peripheral Interface bug Something isn't working labels Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working hal HAL-LL driver-related issue or pull-request. spi Serial Peripheral Interface

Projects

Development

Successfully merging this pull request may close these issues.

3 participants