STM/STM32_LIBRARIES/tm_stm32_qspiflash.c
uint8_t BSP_QSPI_GetInfo(QSPI_InfoTypeDef* pInfo)
{
  /* Configure the structure with the memory configuration */
  pInfo->FlashSize          = N25Q128A_FLASH_SIZE;
  pInfo->EraseSectorSize    = N25Q128A_SUBSECTOR_SIZE;
  pInfo->EraseSectorsNumber = (N25Q128A_FLASH_SIZE/N25Q128A_SUBSECTOR_SIZE);
  pInfo->ProgPageSize       = N25Q128A_PAGE_SIZE;
  pInfo->ProgPagesNumber    = (N25Q128A_FLASH_SIZE/N25Q128A_PAGE_SIZE);

  return QSPI_OK;
}
/**
  * @brief  Reads the configuration of the memory and fills QspiInfo struct
  * @param  pInfo pointer to Info structure
  * @retval QSPI memory status
  */
@brief  Reads the configuration of the memory and fills QspiInfo struct
@param  pInfo pointer to Info structure
@retval QSPI memory status
@brief Reads the configuration of the memory and fills QspiInfo struct @param pInfo pointer to Info structure @retval QSPI memory status
uint8_t BSP_QSPI_GetInfo(QSPI_InfoTypeDef* pInfo)
{
  pInfo->FlashSize          = N25Q128A_FLASH_SIZE;
  pInfo->EraseSectorSize    = N25Q128A_SUBSECTOR_SIZE;
  pInfo->EraseSectorsNumber = (N25Q128A_FLASH_SIZE/N25Q128A_SUBSECTOR_SIZE);
  pInfo->ProgPageSize       = N25Q128A_PAGE_SIZE;
  pInfo->ProgPagesNumber    = (N25Q128A_FLASH_SIZE/N25Q128A_PAGE_SIZE);
  return QSPI_OK;
}
uint8_t BSP_QSPI_GetInfo ( QSPI_InfoTypeDef * pInfo ) { pInfo -> FlashSize = N25Q128A_FLASH_SIZE ; pInfo -> EraseSectorSize = N25Q128A_SUBSECTOR_SIZE ; pInfo -> EraseSectorsNumber = ( N25Q128A_FLASH_SIZE / N25Q128A_SUBSECTOR_SIZE ) ; pInfo -> ProgPageSize = N25Q128A_PAGE_SIZE ; pInfo -> ProgPagesNumber = ( N25Q128A_FLASH_SIZE / N25Q128A_PAGE_SIZE ) ; return QSPI_OK ; }
@brief  Reads the configuration of the memory and fills QspiInfo struct
 @param  pInfo pointer to Info structure
 @retval QSPI memory status
@brief Reads the configuration of the memory and fills QspiInfo struct @param pInfo pointer to Info structure @retval QSPI memory status
/* Configure the structure with the memory configuration */