BSP files for STM32H747I-Discovery Copy from ST Cube delivery

Dependents:   DISCO_H747I_LCD_demo DISCO_H747I_AUDIO_demo

Embed: (wiki syntax)

« Back to documentation index

Exported Functions

Exported Functions
[STM32H747I_DISCOVERY_QSPI]

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:

  • Peripheral's clock enable
  • Peripheral's GPIO Configuration
  • NVIC configuration for QSPI interrupt.

__weak void BSP_QSPI_MspDeInit (QSPI_HandleTypeDef *hqspi, void *Params)
 QSPI MSP De-Initialization This function frees the hardware resources used in this example:

  • Disable the Peripheral's clock
  • Revert GPIO and NVIC configuration to their default state.


Function Documentation

uint8_t BSP_QSPI_DeInit ( void   )

De-Initializes the QSPI interface.

Return values:
QSPImemory status

Definition at line 153 of file stm32h747i_discovery_qspi.c.

uint8_t BSP_QSPI_EnableMemoryMappedMode ( void   )

Configure the QSPI in memory-mapped mode.

Return values:
QSPImemory status

Definition at line 441 of file stm32h747i_discovery_qspi.c.

uint8_t BSP_QSPI_Erase_Block ( uint32_t  BlockAddress )

Erases the specified block of the QSPI memory.

Parameters:
BlockAddress,:Block address to erase
Return values:
QSPImemory status

Definition at line 290 of file stm32h747i_discovery_qspi.c.

uint8_t BSP_QSPI_Erase_Chip ( void   )

Erases the entire QSPI memory.

Return values:
QSPImemory status

Definition at line 332 of file stm32h747i_discovery_qspi.c.

uint8_t BSP_QSPI_GetInfo ( QSPI_Info *  pInfo )

Return the configuration of the QSPI memory.

Parameters:
pInfo,:pointer on the configuration structure
Return values:
QSPImemory status

Definition at line 425 of file stm32h747i_discovery_qspi.c.

uint8_t BSP_QSPI_GetStatus ( void   )

Reads current status of the QSPI memory.

Return values:
QSPImemory status

Definition at line 372 of file stm32h747i_discovery_qspi.c.

uint8_t BSP_QSPI_Init ( void   )

Initializes the QSPI interface.

Return values:
QSPImemory status

Definition at line 99 of file stm32h747i_discovery_qspi.c.

__weak void BSP_QSPI_MspDeInit ( QSPI_HandleTypeDef *  hqspi,
void *  Params 
)

QSPI MSP De-Initialization This function frees the hardware resources used in this example:

  • Disable the Peripheral's clock
  • Revert GPIO and NVIC configuration to their default state.

Return values:
None

Definition at line 566 of file stm32h747i_discovery_qspi.c.

__weak void BSP_QSPI_MspInit ( QSPI_HandleTypeDef *  hqspi,
void *  Params 
)

QSPI MSP Initialization This function configures the hardware resources used in this example:

  • Peripheral's clock enable
  • Peripheral's GPIO Configuration
  • NVIC configuration for QSPI interrupt.

Return values:
None

Definition at line 479 of file stm32h747i_discovery_qspi.c.

uint8_t BSP_QSPI_Read ( uint8_t *  pData,
uint32_t  ReadAddr,
uint32_t  Size 
)

Reads an amount of data from the QSPI memory.

Parameters:
pData,:Pointer to data to be read
ReadAddr,:Read start address
Size,:Size of data to read
Return values:
QSPImemory status

Definition at line 176 of file stm32h747i_discovery_qspi.c.

uint8_t BSP_QSPI_Write ( uint8_t *  pData,
uint32_t  WriteAddr,
uint32_t  Size 
)

Writes an amount of data to the QSPI memory.

Parameters:
pData,:Pointer to data to be written
WriteAddr,:Write start address
Size,:Size of data to write
Return values:
QSPImemory status

Definition at line 216 of file stm32h747i_discovery_qspi.c.