STMicroelectronics / stm32l0xx_hal_driver

Provides the STM32Cube MCU Component "hal_driver" of the STM32L0 series.
BSD 3-Clause "New" or "Revised" License
8 stars 2 forks source link

Missing parenthesis in LL_MPU_ConfigRegion #8

Closed carlo-dev-git closed 2 months ago

carlo-dev-git commented 3 months ago

In function LL_MPU_ConfigRegion() from stm32l0xx_ll_cortex.h the following line: WRITE_REG(MPU->RASR, (MPU_RASR_ENABLE_Msk | Attributes | SubRegionDisable << MPU_RASR_SRD_Pos));

should be fixed with: WRITE_REG(MPU->RASR, (MPU_RASR_ENABLE_Msk | Attributes | (SubRegionDisable << MPU_RASR_SRD_Pos)));

which is the correct implementation already present in other STM32 MCU HAL drivers.

TOUNSTM commented 3 months ago

ST Internal Reference: 176807

RJMSTM commented 2 months ago

Fixed in : https://github.com/STMicroelectronics/stm32l0xx_hal_driver/commit/8c56f5d5a5565eb4a67c80e2b2e908938103f415