KugleFirmware/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c
/**
  * @brief  Locks the FLASH control registers access
  * @retval HAL Status
  */
@brief  Locks the FLASH control registers access
@retval HAL Status
@brief Locks the FLASH control registers access @retval HAL Status
HAL_StatusTypeDef HAL_FLASH_Lock(void)
{
  SET_BIT(FLASH->CR1, FLASH_CR_LOCK);
  SET_BIT(FLASH->CR2, FLASH_CR_LOCK);
  return HAL_OK;  
}
HAL_StatusTypeDef HAL_FLASH_Lock ( void ) { SET_BIT ( FLASH -> CR1 , FLASH_CR_LOCK ) ; SET_BIT ( FLASH -> CR2 , FLASH_CR_LOCK ) ; return HAL_OK ; }
@brief  Locks the FLASH control registers access
 @retval HAL Status
@brief Locks the FLASH control registers access @retval HAL Status
/* Set the LOCK Bit to lock the FLASH A Registers access */ /* Set the LOCK Bit to lock the FLASH B Registers access */