KugleFirmware/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c
/**
  * @brief  Launch the option byte loading.
  * @retval HAL Status
  */
@brief  Launch the option byte loading.
@retval HAL Status
@brief Launch the option byte loading . @retval HAL Status
HAL_StatusTypeDef HAL_FLASH_OB_Launch(void)
{
  HAL_StatusTypeDef status = HAL_ERROR;
  SET_BIT(FLASH->OPTCR, FLASH_OPTCR_OPTSTART);  
  status = FLASH_OB_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
  return status; 
}
HAL_StatusTypeDef HAL_FLASH_OB_Launch ( void ) { HAL_StatusTypeDef status = HAL_ERROR ; SET_BIT ( FLASH -> OPTCR , FLASH_OPTCR_OPTSTART ) ; status = FLASH_OB_WaitForLastOperation ( ( uint32_t ) FLASH_TIMEOUT_VALUE ) ; return status ; }
@brief  Launch the option byte loading.
@brief Launch the option byte loading .
/* Set OPTSTRT Bit */ /* Wait for OB change operation to be completed */