![]() |
STM32F769IDiscovery
1.00
uDANTE Audio Networking with STM32F7 DISCO board
|
This file includes a standard driver for the MX25L512 QSPI memory mounted on STM32F769I-Discovery board. More...
#include "stm32f769i_discovery_qspi.h"
Go to the source code of this file.
Functions | |
uint8_t | BSP_QSPI_Init (void) |
Initializes the QSPI interface. More... | |
uint8_t | BSP_QSPI_DeInit (void) |
De-Initializes the QSPI interface. More... | |
uint8_t | BSP_QSPI_Read (uint8_t *pData, uint32_t ReadAddr, uint32_t Size) |
Reads an amount of data from the QSPI memory. More... | |
uint8_t | BSP_QSPI_Write (uint8_t *pData, uint32_t WriteAddr, uint32_t Size) |
Writes an amount of data to the QSPI memory. More... | |
uint8_t | BSP_QSPI_Erase_Block (uint32_t BlockAddress) |
Erases the specified block of the QSPI memory. More... | |
uint8_t | BSP_QSPI_Erase_Chip (void) |
Erases the entire QSPI memory. More... | |
uint8_t | BSP_QSPI_GetStatus (void) |
Reads current status of the QSPI memory. More... | |
uint8_t | BSP_QSPI_GetInfo (QSPI_Info *pInfo) |
Return the configuration of the QSPI memory. More... | |
uint8_t | BSP_QSPI_EnableMemoryMappedMode (void) |
Configure the QSPI in memory-mapped mode. More... | |
__weak void | BSP_QSPI_MspInit (QSPI_HandleTypeDef *hqspi, void *Params) |
QSPI MSP Initialization This function configures the hardware resources used in this example: More... | |
__weak void | BSP_QSPI_MspDeInit (QSPI_HandleTypeDef *hqspi, void *Params) |
QSPI MSP De-Initialization This function frees the hardware resources used in this example: More... | |
Variables | |
QSPI_HandleTypeDef | QSPIHandle |
This file includes a standard driver for the MX25L512 QSPI memory mounted on STM32F769I-Discovery board.
============================================================================== ##### How to use this driver ##### ============================================================================== [..] (#) This driver is used to drive the MX25L512 QSPI external memory mounted on STM32F769I-Discovery board. (#) This driver need a specific component driver (MX25L51245G) to be included with. (#) Initialization steps: (++) Initialize the QPSI external memory using the BSP_QSPI_Init() function. This function includes the MSP layer hardware resources initialization and the QSPI interface with the external memory. (#) QSPI memory operations (++) QSPI memory can be accessed with read/write operations once it is initialized. Read/write operation can be performed with AHB access using the functions BSP_QSPI_Read()/BSP_QSPI_Write(). (++) The function BSP_QSPI_GetInfo() returns the configuration of the QSPI memory. (see the QSPI memory data sheet) (++) Perform erase block operation using the function BSP_QSPI_Erase_Block() and by specifying the block address. You can perform an erase operation of the whole chip by calling the function BSP_QSPI_Erase_Chip(). (++) The function BSP_QSPI_GetStatus() returns the current status of the QSPI memory. (see the QSPI memory data sheet)
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
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 stm32f769i_discovery_qspi.c.