/** ****************************************************************************** * @file stm32469i_eval_qspi.h * @author MCD Application Team * @brief This file contains the common defines and functions prototypes for * the stm32469i_eval_qspi.c driver. ****************************************************************************** * @attention * * Copyright (c) 2015 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... *//** @addtogroup BSP * @{ *//* ... *//** @addtogroup STM32469I_EVAL * @{ *//* ... *//* Define to prevent recursive inclusion -------------------------------------*/#ifndef__STM32469I_EVAL_QSPI_H#define__STM32469I_EVAL_QSPI_H#ifdef__cplusplusextern"C"{#endif/* Includes ------------------------------------------------------------------*/#include"stm32f4xx_hal.h"#include"../Components/s25fl512s/s25fl512s.h"#include"../Components/n25q512a/n25q512a.h"/** @addtogroup STM32469I_EVAL_QSPI * @{ *//* ... */Includes/* Exported constants --------------------------------------------------------*//** @defgroup STM32446E_EVAL_QSPI_Exported_Constants STM32469I EVAL QSPI Exported Constants * @{ *//* ... *//* QSPI Error codes */#defineQSPI_OK((uint8_t)0x00)#defineQSPI_ERROR((uint8_t)0x01)#defineQSPI_BUSY((uint8_t)0x02)#defineQSPI_NOT_SUPPORTED((uint8_t)0x04)#defineQSPI_SUSPENDED((uint8_t)0x08)#defineQSPI_PROTECTED((uint8_t)0x10)#defineQSPI_S25FL512S((uint8_t)0x20)#defineQSPI_N25Q512A((uint8_t)0x40)/* Definition for QSPI clock resources */#defineQSPI_CLK_ENABLE()__HAL_RCC_QSPI_CLK_ENABLE()#defineQSPI_CLK_DISABLE()__HAL_RCC_QSPI_CLK_DISABLE()#defineQSPI_CS_GPIO_CLK_ENABLE()__HAL_RCC_GPIOB_CLK_ENABLE()#defineQSPI_CS_GPIO_CLK_DISABLE()__HAL_RCC_GPIOB_CLK_DISABLE()#defineQSPI_DX_CLK_GPIO_CLK_ENABLE()__HAL_RCC_GPIOF_CLK_ENABLE()#defineQSPI_DX_CLK_GPIO_CLK_DISABLE()__HAL_RCC_GPIOF_CLK_DISABLE()#defineQSPI_FORCE_RESET()__HAL_RCC_QSPI_FORCE_RESET()#defineQSPI_RELEASE_RESET()__HAL_RCC_QSPI_RELEASE_RESET()/* Definition for QSPI Pins */#defineQSPI_CS_PINGPIO_PIN_6#defineQSPI_CS_GPIO_PORTGPIOB#defineQSPI_CLK_PINGPIO_PIN_10#defineQSPI_CLK_GPIO_PORTGPIOF#defineQSPI_D0_PINGPIO_PIN_8#defineQSPI_D1_PINGPIO_PIN_9#defineQSPI_D2_PINGPIO_PIN_7#defineQSPI_D3_PINGPIO_PIN_6#defineQSPI_DX_GPIO_PORTGPIOF25 defines/** * @} *//* ... */Exported constants/* Exported types ------------------------------------------------------------*//** @defgroup STM32446E_EVAL_QSPI_Exported_Types STM32469I EVAL QSPI Exported Types * @{ *//* ... *//** * @brief QSPI Info * *//* ... */typedefstruct{uint32_tFlashSize;/*!< Size of the flash */uint32_tEraseSectorSize;/*!< Size of sectors for the erase operation */uint32_tEraseSectorsNumber;/*!< Number of sectors for the erase operation */uint32_tProgPageSize;/*!< Size of pages for the program operation */uint32_tProgPagesNumber;/*!< Number of pages for the program operation */uint32_tDummyCyclesRead;/*!< Number of dummy read cycles */uint8_tManufID;/*!< Manufacturor value */uint32_tSectorEraseMaxTime;/*!< Sector Erase max value */uint32_tBulkEraseMaxTime;/*!< Bulk Erase Max Time */...}QSPI_InfoTypeDef;/** * @} *//* ... */Exported types/* Exported functions --------------------------------------------------------*//** @defgroup STM32469I_EVAL_QSPI_Exported_Functions STM32469I EVAL QSPI Exported Functions * @{ *//* ... */uint8_tBSP_QSPI_Init(void);uint8_tBSP_QSPI_DeInit(void);uint8_tBSP_QSPI_Read(uint8_t*pData,uint32_tReadAddr,uint32_tSize);uint8_tBSP_QSPI_Write(uint8_t*pData,uint32_tWriteAddr,uint32_tSize);uint8_tBSP_QSPI_Erase_Block(uint32_tBlockAddress);uint8_tBSP_QSPI_Erase_Chip(void);uint8_tBSP_QSPI_GetStatus(void);uint8_tBSP_QSPI_GetInfo(QSPI_InfoTypeDef*pInfo);uint8_tBSP_QSPI_EnableMemoryMappedMode(void);/* BSP Aliased function maintained for legacy purpose */#defineBSP_QSPI_MemoryMappedModeBSP_QSPI_EnableMemoryMappedMode/* These function can be modified in case the current settings (e.g. DMA stream) need to be changed for specific application needs *//* ... */voidBSP_QSPI_MspInit(QSPI_HandleTypeDef*hqspi,void*Params);voidBSP_QSPI_MspDeInit(QSPI_HandleTypeDef*hqspi,void*Params);/** * @} *//* ... *//** * @} *//* ... */#ifdef__cplusplus}extern "C" { ... }#endif/* ... */#endif/* __STM32446E_EVAL_QSPI_H *//** * @} *//* ... *//** * @} *//* ... */
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.