STM32H743I_EVAL BSP User Manual: stm32h743i_eval_qspi.h File Reference

STM32H743I_EVAL BSP

stm32h743i_eval_qspi.h File Reference

This file contains the common defines and functions prototypes for the stm32h743i_eval_qspi.c driver. More...

#include "stm32h7xx_hal.h" #include "../Components/mt25tl01g/mt25tl01g.h"

Go to the source code of this file.

Data Structures

struct  QSPI_Info

Defines

#define QSPI_OK   ((uint8_t)0x00)
#define QSPI_ERROR   ((uint8_t)0x01)
#define QSPI_BUSY   ((uint8_t)0x02)
#define QSPI_NOT_SUPPORTED   ((uint8_t)0x04)
#define QSPI_SUSPENDED   ((uint8_t)0x08)
#define QSPI_CLK_ENABLE()   __HAL_RCC_QSPI_CLK_ENABLE()
#define QSPI_CLK_DISABLE()   __HAL_RCC_QSPI_CLK_DISABLE()
#define QSPI_CLK_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOB_CLK_ENABLE()
#define QSPI_BK1_CS_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOG_CLK_ENABLE()
#define QSPI_BK1_D0_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOF_CLK_ENABLE()
#define QSPI_BK1_D1_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOF_CLK_ENABLE()
#define QSPI_BK1_D2_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOF_CLK_ENABLE()
#define QSPI_BK1_D3_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOF_CLK_ENABLE()
#define QSPI_BK2_CS_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOC_CLK_ENABLE()
#define QSPI_BK2_D0_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOH_CLK_ENABLE()
#define QSPI_BK2_D1_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOH_CLK_ENABLE()
#define QSPI_BK2_D2_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOG_CLK_ENABLE()
#define QSPI_BK2_D3_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOG_CLK_ENABLE()
#define QSPI_FORCE_RESET()   __HAL_RCC_QSPI_FORCE_RESET()
#define QSPI_RELEASE_RESET()   __HAL_RCC_QSPI_RELEASE_RESET()
#define QSPI_CLK_PIN   GPIO_PIN_2
#define QSPI_CLK_GPIO_PORT   GPIOB
#define QSPI_BK1_CS_PIN   GPIO_PIN_6
#define QSPI_BK1_CS_GPIO_PORT   GPIOG
#define QSPI_BK1_D0_PIN   GPIO_PIN_8
#define QSPI_BK1_D0_GPIO_PORT   GPIOF
#define QSPI_BK1_D1_PIN   GPIO_PIN_9
#define QSPI_BK1_D1_GPIO_PORT   GPIOF
#define QSPI_BK1_D2_PIN   GPIO_PIN_7
#define QSPI_BK1_D2_GPIO_PORT   GPIOF
#define QSPI_BK1_D3_PIN   GPIO_PIN_6
#define QSPI_BK1_D3_GPIO_PORT   GPIOF
#define QSPI_BK2_CS_PIN   GPIO_PIN_11
#define QSPI_BK2_CS_GPIO_PORT   GPIOC
#define QSPI_BK2_D0_PIN   GPIO_PIN_2
#define QSPI_BK2_D0_GPIO_PORT   GPIOH
#define QSPI_BK2_D1_PIN   GPIO_PIN_3
#define QSPI_BK2_D1_GPIO_PORT   GPIOH
#define QSPI_BK2_D2_PIN   GPIO_PIN_9
#define QSPI_BK2_D2_GPIO_PORT   GPIOG
#define QSPI_BK2_D3_PIN   GPIO_PIN_14
#define QSPI_BK2_D3_GPIO_PORT   GPIOG
#define QSPI_FLASH_SIZE   26 /* Address bus width to access whole memory space */
#define QSPI_PAGE_SIZE   256
#define QSPI_BASE_ADDRESS   0x90000000

Functions

uint8_t BSP_QSPI_Init (void)
 Initializes the QSPI interface.
uint8_t BSP_QSPI_DeInit (void)
 De-Initializes the QSPI interface.
uint8_t BSP_QSPI_Read (uint8_t *pData, uint32_t ReadAddr, uint32_t Size)
 Reads an amount of data from the QSPI memory.
uint8_t BSP_QSPI_Write (uint8_t *pData, uint32_t WriteAddr, uint32_t Size)
 Writes an amount of data to the QSPI memory.
uint8_t BSP_QSPI_Erase_Block (uint32_t BlockAddress)
 Erases the specified block of the QSPI memory.
uint8_t BSP_QSPI_Erase_Chip (void)
 Erases the entire QSPI memory.
uint8_t BSP_QSPI_GetStatus (void)
 Reads current status of the QSPI memory.
uint8_t BSP_QSPI_GetInfo (QSPI_Info *pInfo)
 Return the configuration of the QSPI memory.
uint8_t BSP_QSPI_EnableMemoryMappedMode (void)
 Configure the QSPI in memory-mapped mode.
__weak void BSP_QSPI_MspInit (QSPI_HandleTypeDef *hqspi, void *Params)
 QSPI MSP Initialization This function configures the hardware resources used in this example:
__weak void BSP_QSPI_MspDeInit (QSPI_HandleTypeDef *hqspi, void *Params)
 QSPI MSP De-Initialization This function frees the hardware resources used in this example:

Detailed Description

This file contains the common defines and functions prototypes for the stm32h743i_eval_qspi.c driver.

Author:
MCD Application Team
Version:
V1.0.0
Date:
21-April-2017
Attention:

© COPYRIGHT(c) 2017 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file stm32h743i_eval_qspi.h.

Generated on Wed Aug 23 2017 17:45:14 for STM32H743I_EVAL BSP User Manual by   doxygen 1.7.6.1