STM32L4R9I_EVAL BSP User Manual: stm32l4r9i_eval_ospi_ram.c File Reference

STM32L4R9I_EVAL BSP

stm32l4r9i_eval_ospi_ram.c File Reference

This file includes a standard driver for the ISS66WVH8M8 HyperRAM memory mounted on STM32L4R9I-EVAL board. More...

Go to the source code of this file.

Defines

#define OSPI_RAM_QUAD_DISABLE   0x0
#define OSPI_RAM_QUAD_ENABLE   0x1
#define OSPI_RAM_HIGH_PERF_DISABLE   0x0
#define OSPI_RAM_HIGH_PERF_ENABLE   0x1

Functions

static void OSPI_RAM_MspInit (void)
 Initializes the OSPI MSP.
static void OSPI_RAM_MspDeInit (void)
 De-Initializes the OSPI MSP.
uint8_t BSP_OSPI_RAM_Init (void)
 Initializes the OSPI interface.
uint8_t BSP_OSPI_RAM_DeInit (void)
 De-Initializes the OSPI interface.
uint8_t BSP_OSPI_RAM_Read (uint8_t *pData, uint32_t ReadAddr, uint32_t Size)
 Reads an amount of data from the HyperRAM memory.
uint8_t BSP_OSPI_RAM_Read_DMA (uint8_t *pData, uint32_t ReadAddr, uint32_t Size)
 Reads an amount of data from the HyperRAM memory in DMA mode.
uint8_t BSP_OSPI_RAM_Write (uint8_t *pData, uint32_t WriteAddr, uint32_t Size)
 Writes an amount of data to the HyperRAM memory.
uint8_t BSP_OSPI_RAM_Write_DMA (uint8_t *pData, uint32_t WriteAddr, uint32_t Size)
 Writes an amount of data to the HyperRAM memory in DMA mode.
uint8_t BSP_OSPI_RAM_EnableMemoryMappedMode (void)
 Configure the OSPI in memory-mapped mode.
uint8_t BSP_OSPI_RAM_EnterDeepPowerDown (void)
 This function enter the HyperRAM memory in deep power down mode.
uint8_t BSP_OSPI_RAM_LeaveDeepPowerDown (void)
 This function leave the HyperRAM memory from deep power down mode.
void BSP_OSPI_RAM_DMA_IRQHandler (void)
 Handles OctoSPI HyperRAM DMA transfer interrupt request.
void BSP_OSPI_RAM_IRQHandler (void)
 Handles OctoSPI HyperRAM interrupt request.

Variables

OSPI_HandleTypeDef OspiRamHandle
DMA_HandleTypeDef DmaOspiRamHandle

Detailed Description

This file includes a standard driver for the ISS66WVH8M8 HyperRAM memory mounted on STM32L4R9I-EVAL board.

Author:
MCD Application Team
  ==============================================================================
                     ##### How to use this driver #####
  ==============================================================================
  [..]
   (#) This driver is used to drive the ISS66WVH8M8 HyperRAM external
       memory mounted on STM32L4R9I-EVAL evaluation board.

   (#) This driver need a specific component driver (ISS66WVH8M8) to be included with.

   (#) Initialization steps:
       (++) Initialize the HyperRAM external memory using the BSP_OSPI_RAM_Init() function. This
            function includes the MSP layer hardware resources initialization and the
            OSPI interface with the external memory.

   (#) HyperRAM memory operations
       (++) HyperRAM 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_OSPI_RAM_Read()/BSP_OSPI_RAM_Write().
       (++) The function BSP_OSPI_RAM_GetInfo() returns the configuration of the HyperRAM memory.
            (see the HyperRAM memory data sheet)
       (++) Perform erase block operation using the function BSP_OSPI_RAM_Erase_Block() and by
            specifying the block address. You can perform an erase operation of the whole
            chip by calling the function BSP_OSPI_RAM_Erase_Chip().
       (++) The function BSP_OSPI_RAM_GetStatus() returns the current status of the HyperRAM memory.
            (see the HyperRAM memory data sheet)
  
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 stm32l4r9i_eval_ospi_ram.c.

Generated on Thu Oct 12 2017 10:54:00 for STM32L4R9I_EVAL BSP User Manual by   doxygen 1.7.6.1