Ejemplo n.º 1
0
/**
  * @brief  DeInitializes the SDRAM device.
  * @retval SDRAM status
  */
rt_err_t sdram_hw_deinit(void)
{
    static uint8_t sdramstatus = RT_ERROR;
    /* SDRAM device de-initialization */
    sdramHandle.Instance = FMC_SDRAM_DEVICE;

    if(HAL_SDRAM_DeInit(&sdramHandle) != HAL_OK)
    {
        sdramstatus = RT_ERROR;
    }
    else
    {
        sdramstatus = RT_EOK;
    }

    /* SDRAM controller de-initialization */
    SDRAM_MspDeInit(&sdramHandle, NULL);

    return sdramstatus;
}
Ejemplo n.º 2
0
Archivo: sdram.c Proyecto: itxs/STM32F7
void SDRAM_DeInit(void)
{ 
	sdramHandle.Instance = FMC_SDRAM_DEVICE;
	HAL_SDRAM_DeInit(&sdramHandle);
	SDRAM_MspDeInit(&sdramHandle, NULL);
}