STM32H743I_EVAL BSP User Manual
|
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: |
Function Documentation
uint8_t BSP_QSPI_DeInit | ( | void | ) |
De-Initializes the QSPI interface.
- Return values:
-
QSPI memory status
Definition at line 173 of file stm32h743i_eval_qspi.c.
References BSP_QSPI_MspDeInit(), QSPI_ERROR, QSPI_OK, and QSPIHandle.
uint8_t BSP_QSPI_EnableMemoryMappedMode | ( | void | ) |
Configure the QSPI in memory-mapped mode.
- Return values:
-
QSPI memory status
Definition at line 461 of file stm32h743i_eval_qspi.c.
References QSPI_ERROR, QSPI_OK, and QSPIHandle.
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:
-
QSPI memory status
Definition at line 310 of file stm32h743i_eval_qspi.c.
References QSPI_AutoPollingMemReady(), QSPI_ERROR, QSPI_OK, QSPI_WriteEnable(), and QSPIHandle.
uint8_t BSP_QSPI_Erase_Chip | ( | void | ) |
Erases the entire QSPI memory.
- Return values:
-
QSPI memory status
Definition at line 352 of file stm32h743i_eval_qspi.c.
References QSPI_AutoPollingMemReady(), QSPI_ERROR, QSPI_OK, QSPI_WriteEnable(), and QSPIHandle.
uint8_t BSP_QSPI_GetInfo | ( | QSPI_Info * | pInfo | ) |
Return the configuration of the QSPI memory.
- Parameters:
-
pInfo,: pointer on the configuration structure
- Return values:
-
QSPI memory status
Definition at line 445 of file stm32h743i_eval_qspi.c.
References QSPI_Info::EraseSectorSize, QSPI_Info::EraseSectorsNumber, QSPI_Info::FlashSize, QSPI_Info::ProgPageSize, QSPI_Info::ProgPagesNumber, and QSPI_OK.
uint8_t BSP_QSPI_GetStatus | ( | void | ) |
Reads current status of the QSPI memory.
- Return values:
-
QSPI memory status
Definition at line 392 of file stm32h743i_eval_qspi.c.
References QSPI_BUSY, QSPI_ERROR, QSPI_OK, QSPI_SUSPENDED, and QSPIHandle.
uint8_t BSP_QSPI_Init | ( | void | ) |
Initializes the QSPI interface.
- Return values:
-
QSPI memory status
Definition at line 119 of file stm32h743i_eval_qspi.c.
References BSP_QSPI_MspInit(), QSPI_DummyCyclesCfg(), QSPI_EnterFourBytesAddress(), QSPI_ERROR, QSPI_NOT_SUPPORTED, QSPI_OK, QSPI_ResetMemory(), and QSPIHandle.
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 593 of file stm32h743i_eval_qspi.c.
References QSPI_BK1_CS_GPIO_PORT, QSPI_BK1_CS_PIN, QSPI_BK1_D0_GPIO_PORT, QSPI_BK1_D0_PIN, QSPI_BK1_D1_GPIO_PORT, QSPI_BK1_D1_PIN, QSPI_BK1_D2_GPIO_PORT, QSPI_BK1_D2_PIN, QSPI_BK1_D3_GPIO_PORT, QSPI_BK1_D3_PIN, QSPI_BK2_CS_GPIO_PORT, QSPI_BK2_CS_PIN, QSPI_BK2_D0_GPIO_PORT, QSPI_BK2_D0_PIN, QSPI_BK2_D1_GPIO_PORT, QSPI_BK2_D1_PIN, QSPI_BK2_D2_GPIO_PORT, QSPI_BK2_D2_PIN, QSPI_BK2_D3_GPIO_PORT, QSPI_BK2_D3_PIN, QSPI_CLK_DISABLE, QSPI_CLK_GPIO_PORT, QSPI_CLK_PIN, QSPI_FORCE_RESET, and QSPI_RELEASE_RESET.
Referenced by BSP_QSPI_DeInit().
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 499 of file stm32h743i_eval_qspi.c.
References QSPI_BK1_CS_GPIO_CLK_ENABLE, QSPI_BK1_CS_GPIO_PORT, QSPI_BK1_CS_PIN, QSPI_BK1_D0_GPIO_CLK_ENABLE, QSPI_BK1_D0_GPIO_PORT, QSPI_BK1_D0_PIN, QSPI_BK1_D1_GPIO_CLK_ENABLE, QSPI_BK1_D1_GPIO_PORT, QSPI_BK1_D1_PIN, QSPI_BK1_D2_GPIO_CLK_ENABLE, QSPI_BK1_D2_GPIO_PORT, QSPI_BK1_D2_PIN, QSPI_BK1_D3_GPIO_CLK_ENABLE, QSPI_BK1_D3_GPIO_PORT, QSPI_BK1_D3_PIN, QSPI_BK2_CS_GPIO_CLK_ENABLE, QSPI_BK2_CS_GPIO_PORT, QSPI_BK2_CS_PIN, QSPI_BK2_D0_GPIO_CLK_ENABLE, QSPI_BK2_D0_GPIO_PORT, QSPI_BK2_D0_PIN, QSPI_BK2_D1_GPIO_CLK_ENABLE, QSPI_BK2_D1_GPIO_PORT, QSPI_BK2_D1_PIN, QSPI_BK2_D2_GPIO_CLK_ENABLE, QSPI_BK2_D2_GPIO_PORT, QSPI_BK2_D2_PIN, QSPI_BK2_D3_GPIO_CLK_ENABLE, QSPI_BK2_D3_GPIO_PORT, QSPI_BK2_D3_PIN, QSPI_CLK_ENABLE, QSPI_CLK_GPIO_CLK_ENABLE, QSPI_CLK_GPIO_PORT, QSPI_CLK_PIN, QSPI_FORCE_RESET, and QSPI_RELEASE_RESET.
Referenced by BSP_QSPI_Init().
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:
-
QSPI memory status
Definition at line 196 of file stm32h743i_eval_qspi.c.
References QSPI_ERROR, QSPI_OK, and QSPIHandle.
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:
-
QSPI memory status
Definition at line 236 of file stm32h743i_eval_qspi.c.
References QSPI_AutoPollingMemReady(), QSPI_ERROR, QSPI_OK, QSPI_WriteEnable(), and QSPIHandle.
Generated on Wed Aug 23 2017 17:45:14 for STM32H743I_EVAL BSP User Manual by 1.7.6.1