コード例 #1
0
/**
  * @brief  DeInitializes the NOR device.
  * @retval NOR memory status
  */
uint8_t BSP_NOR_DeInit(void)
{
    /* NOR controller initialization */
    BSP_NOR_MspDeInit(&NorHandle, NULL);

    if(HAL_NOR_DeInit(&NorHandle) != HAL_OK)
    {
        return NOR_STATUS_ERROR;
    }
    else
    {
        return NOR_STATUS_OK;
    }
}
コード例 #2
0
/**
  * @brief  DeInitializes the NOR device.
  * @retval NOR status
  */
uint8_t BSP_NOR_DeInit(void)
{ 
  static uint8_t nor_status = NOR_ERROR;
  /* NOR device de-initialization */
  norHandle.Instance = FMC_NORSRAM_DEVICE;
  norHandle.Extended = FMC_NORSRAM_EXTENDED_DEVICE;

  if(HAL_NOR_DeInit(&norHandle) != HAL_OK)
  {
    nor_status = NOR_STATUS_ERROR;
  }
  else
  {
    nor_status = NOR_STATUS_OK;
  }
  
  /* NOR controller de-initialization */
  BSP_NOR_MspDeInit(&norHandle, NULL);
  
  return nor_status;
}