STM324x9I_EVAL BSP User Manual: STM324x9I EVAL NOR

STM32429I/STM32439I/STM32469I/STM32479I EVAL BSP Drivers

STM324x9I_EVAL BSP User Manual
STM324x9I EVAL NOR

Modules

 STM324x9I EVAL NOR Private Types Definitions
 STM324x9I EVAL NOR Private Defines
 STM324x9I EVAL NOR Private Macros
 STM324x9I EVAL NOR Private Variables
 STM324x9I EVAL NOR Private Function Prototypes
 STM324x9I EVAL NOR Private Functions
 STM324x9I EVAL NOR Exported Types
 STM324x9I EVAL NOR Exported Constants
 STM324x9I EVAL NOR Exported Macro
 STM324x9I EVAL NOR Exported Functions

Defines

#define NOR_STATUS_OK   0x00
 NOR status structure definition.
#define NOR_STATUS_ERROR   0x01

Functions

uint8_t BSP_NOR_Init (void)
 Initializes the NOR device.
uint8_t BSP_NOR_ReadData (uint32_t uwStartAddress, uint16_t *pData, uint32_t uwDataSize)
 Reads an amount of data from the NOR device.
void BSP_NOR_ReturnToReadMode (void)
 Returns the NOR memory to read mode.
uint8_t BSP_NOR_WriteData (uint32_t uwStartAddress, uint16_t *pData, uint32_t uwDataSize)
 Writes an amount of data to the NOR device.
uint8_t BSP_NOR_ProgramData (uint32_t uwStartAddress, uint16_t *pData, uint32_t uwDataSize)
 Programs an amount of data to the NOR device.
uint8_t BSP_NOR_Erase_Block (uint32_t BlockAddress)
 Erases the specified block of the NOR device.
uint8_t BSP_NOR_Erase_Chip (void)
 Erases the entire NOR chip.
uint8_t BSP_NOR_Read_ID (NOR_IDTypeDef *pNOR_ID)
 Reads NOR flash IDs.
void HAL_NOR_MspWait (NOR_HandleTypeDef *hnor, uint32_t Timeout)
 NOR BSP Wait for Ready/Busy signal.

Define Documentation

#define NOR_STATUS_OK   0x00

Function Documentation

uint8_t BSP_NOR_Erase_Block ( uint32_t  BlockAddress)

Erases the specified block of the NOR device.

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

Definition at line 282 of file stm324x9i_eval_nor.c.

References BLOCKERASE_TIMEOUT, NOR_DEVICE_ADDR, NOR_STATUS_ERROR, NOR_STATUS_OK, and norHandle.

uint8_t BSP_NOR_Erase_Chip ( void  )

Erases the entire NOR chip.

Return values:
NORmemory status

Definition at line 302 of file stm324x9i_eval_nor.c.

References CHIPERASE_TIMEOUT, NOR_DEVICE_ADDR, NOR_STATUS_ERROR, NOR_STATUS_OK, and norHandle.

uint8_t BSP_NOR_Init ( void  )

Initializes the NOR device.

Return values:
NORmemory status

Definition at line 154 of file stm324x9i_eval_nor.c.

References CONTINUOUSCLOCK_FEATURE, NOR_BURSTACCESS, NOR_MEMORY_WIDTH, NOR_MspInit(), NOR_STATUS_ERROR, NOR_STATUS_OK, NOR_WRITEBURST, norHandle, and Timing.

uint8_t BSP_NOR_ProgramData ( uint32_t  uwStartAddress,
uint16_t *  pData,
uint32_t  uwDataSize 
)

Programs an amount of data to the NOR device.

Parameters:
uwStartAddress,:Write start address
pData,:Pointer to data to be written
uwDataSize,:Size of data to write
Return values:
NORmemory status

Definition at line 261 of file stm324x9i_eval_nor.c.

References NOR_DEVICE_ADDR, NOR_STATUS_ERROR, NOR_STATUS_OK, norHandle, and PROGRAM_TIMEOUT.

uint8_t BSP_NOR_Read_ID ( NOR_IDTypeDef *  pNOR_ID)

Reads NOR flash IDs.

Parameters:
pNOR_ID: Pointer to NOR ID structure
Return values:
NORmemory status

Definition at line 323 of file stm324x9i_eval_nor.c.

References NOR_STATUS_ERROR, NOR_STATUS_OK, and norHandle.

uint8_t BSP_NOR_ReadData ( uint32_t  uwStartAddress,
uint16_t *  pData,
uint32_t  uwDataSize 
)

Reads an amount of data from the NOR device.

Parameters:
uwStartAddress,:Read start address
pData,:Pointer to data to be read
uwDataSize,:Size of data to read
Return values:
NORmemory status

Definition at line 203 of file stm324x9i_eval_nor.c.

References NOR_DEVICE_ADDR, NOR_STATUS_ERROR, NOR_STATUS_OK, and norHandle.

void BSP_NOR_ReturnToReadMode ( void  )

Returns the NOR memory to read mode.

Definition at line 218 of file stm324x9i_eval_nor.c.

References norHandle.

uint8_t BSP_NOR_WriteData ( uint32_t  uwStartAddress,
uint16_t *  pData,
uint32_t  uwDataSize 
)

Writes an amount of data to the NOR device.

Parameters:
uwStartAddress,:Write start address
pData,:Pointer to data to be written
uwDataSize,:Size of data to write
Return values:
NORmemory status

Definition at line 230 of file stm324x9i_eval_nor.c.

References NOR_DEVICE_ADDR, NOR_STATUS_ERROR, NOR_STATUS_OK, norHandle, and PROGRAM_TIMEOUT.

void HAL_NOR_MspWait ( NOR_HandleTypeDef *  hnor,
uint32_t  Timeout 
)

NOR BSP Wait for Ready/Busy signal.

Parameters:
hnor,:Pointer to NOR handle
Timeout,:Timeout duration

Definition at line 385 of file stm324x9i_eval_nor.c.

References NOR_BUSY_STATE, NOR_READY_BUSY_GPIO, NOR_READY_BUSY_PIN, and NOR_READY_STATE.

Generated on Wed Jan 13 2016 15:52:54 for STM324x9I_EVAL BSP User Manual by   doxygen 1.7.6.1