|
STM32F479xx HAL User Manual
|
NOR HAL module driver. This file provides a generic firmware to drive NOR memories mounted as external device. More...
#include "stm32f4xx_hal.h"Go to the source code of this file.
Defines | |
| #define | NOR_CMD_ADDRESS_FIRST (uint16_t)0x0555 |
| #define | NOR_CMD_ADDRESS_FIRST_CFI (uint16_t)0x0055 |
| #define | NOR_CMD_ADDRESS_SECOND (uint16_t)0x02AA |
| #define | NOR_CMD_ADDRESS_THIRD (uint16_t)0x0555 |
| #define | NOR_CMD_ADDRESS_FOURTH (uint16_t)0x0555 |
| #define | NOR_CMD_ADDRESS_FIFTH (uint16_t)0x02AA |
| #define | NOR_CMD_ADDRESS_SIXTH (uint16_t)0x0555 |
| #define | NOR_CMD_DATA_READ_RESET (uint16_t)0x00F0 |
| #define | NOR_CMD_DATA_FIRST (uint16_t)0x00AA |
| #define | NOR_CMD_DATA_SECOND (uint16_t)0x0055 |
| #define | NOR_CMD_DATA_AUTO_SELECT (uint16_t)0x0090 |
| #define | NOR_CMD_DATA_PROGRAM (uint16_t)0x00A0 |
| #define | NOR_CMD_DATA_CHIP_BLOCK_ERASE_THIRD (uint16_t)0x0080 |
| #define | NOR_CMD_DATA_CHIP_BLOCK_ERASE_FOURTH (uint16_t)0x00AA |
| #define | NOR_CMD_DATA_CHIP_BLOCK_ERASE_FIFTH (uint16_t)0x0055 |
| #define | NOR_CMD_DATA_CHIP_ERASE (uint16_t)0x0010 |
| #define | NOR_CMD_DATA_CFI (uint16_t)0x0098 |
| #define | NOR_CMD_DATA_BUFFER_AND_PROG (uint8_t)0x25 |
| #define | NOR_CMD_DATA_BUFFER_AND_PROG_CONFIRM (uint8_t)0x29 |
| #define | NOR_CMD_DATA_BLOCK_ERASE (uint8_t)0x30 |
| #define | NOR_CMD_READ_ARRAY (uint16_t)0x00FF |
| #define | NOR_CMD_WORD_PROGRAM (uint16_t)0x0040 |
| #define | NOR_CMD_BUFFERED_PROGRAM (uint16_t)0x00E8 |
| #define | NOR_CMD_CONFIRM (uint16_t)0x00D0 |
| #define | NOR_CMD_BLOCK_ERASE (uint16_t)0x0020 |
| #define | NOR_CMD_BLOCK_UNLOCK (uint16_t)0x0060 |
| #define | NOR_CMD_READ_STATUS_REG (uint16_t)0x0070 |
| #define | NOR_CMD_CLEAR_STATUS_REG (uint16_t)0x0050 |
| #define | NOR_MASK_STATUS_DQ4 (uint16_t)0x0010 |
| #define | NOR_MASK_STATUS_DQ5 (uint16_t)0x0020 |
| #define | NOR_MASK_STATUS_DQ6 (uint16_t)0x0040 |
| #define | NOR_MASK_STATUS_DQ7 (uint16_t)0x0080 |
| #define | NOR_ADDRESS_COMMAND_SET (uint16_t)0x0013 |
| #define | NOR_INTEL_SHARP_EXT_COMMAND_SET (uint16_t)0x0001 /* Supported in this driver */ |
| #define | NOR_AMD_FUJITSU_COMMAND_SET (uint16_t)0x0002 /* Supported in this driver */ |
| #define | NOR_INTEL_STANDARD_COMMAND_SET (uint16_t)0x0003 /* Not Supported in this driver */ |
| #define | NOR_AMD_FUJITSU_EXT_COMMAND_SET (uint16_t)0x0004 /* Not Supported in this driver */ |
| #define | NOR_WINDBOND_STANDARD_COMMAND_SET (uint16_t)0x0006 /* Not Supported in this driver */ |
| #define | NOR_MITSUBISHI_STANDARD_COMMAND_SET (uint16_t)0x0100 /* Not Supported in this driver */ |
| #define | NOR_MITSUBISHI_EXT_COMMAND_SET (uint16_t)0x0101 /* Not Supported in this driver */ |
| #define | NOR_PAGE_WRITE_COMMAND_SET (uint16_t)0x0102 /* Not Supported in this driver */ |
| #define | NOR_INTEL_PERFORMANCE_COMMAND_SET (uint16_t)0x0200 /* Not Supported in this driver */ |
| #define | NOR_INTEL_DATA_COMMAND_SET (uint16_t)0x0210 /* Not Supported in this driver */ |
Functions | |
| HAL_StatusTypeDef | HAL_NOR_Init (NOR_HandleTypeDef *hnor, FMC_NORSRAM_TimingTypeDef *Timing, FMC_NORSRAM_TimingTypeDef *ExtTiming) |
| Perform the NOR memory Initialization sequence. | |
| HAL_StatusTypeDef | HAL_NOR_DeInit (NOR_HandleTypeDef *hnor) |
| Perform NOR memory De-Initialization sequence. | |
| __weak void | HAL_NOR_MspInit (NOR_HandleTypeDef *hnor) |
| NOR MSP Init. | |
| __weak void | HAL_NOR_MspDeInit (NOR_HandleTypeDef *hnor) |
| NOR MSP DeInit. | |
| __weak void | HAL_NOR_MspWait (NOR_HandleTypeDef *hnor, uint32_t Timeout) |
| NOR MSP Wait for Ready/Busy signal. | |
| HAL_StatusTypeDef | HAL_NOR_Read_ID (NOR_HandleTypeDef *hnor, NOR_IDTypeDef *pNOR_ID) |
| Read NOR flash IDs. | |
| HAL_StatusTypeDef | HAL_NOR_ReturnToReadMode (NOR_HandleTypeDef *hnor) |
| Returns the NOR memory to Read mode. | |
| HAL_StatusTypeDef | HAL_NOR_Read (NOR_HandleTypeDef *hnor, uint32_t *pAddress, uint16_t *pData) |
| Read data from NOR memory. | |
| HAL_StatusTypeDef | HAL_NOR_Program (NOR_HandleTypeDef *hnor, uint32_t *pAddress, uint16_t *pData) |
| Program data to NOR memory. | |
| HAL_StatusTypeDef | HAL_NOR_ReadBuffer (NOR_HandleTypeDef *hnor, uint32_t uwAddress, uint16_t *pData, uint32_t uwBufferSize) |
| Reads a half-word buffer from the NOR memory. | |
| HAL_StatusTypeDef | HAL_NOR_ProgramBuffer (NOR_HandleTypeDef *hnor, uint32_t uwAddress, uint16_t *pData, uint32_t uwBufferSize) |
| Writes a half-word buffer to the NOR memory. | |
| HAL_StatusTypeDef | HAL_NOR_Erase_Block (NOR_HandleTypeDef *hnor, uint32_t BlockAddress, uint32_t Address) |
| Erase the specified block of the NOR memory. | |
| HAL_StatusTypeDef | HAL_NOR_Erase_Chip (NOR_HandleTypeDef *hnor, uint32_t Address) |
| Erase the entire NOR chip. | |
| HAL_StatusTypeDef | HAL_NOR_Read_CFI (NOR_HandleTypeDef *hnor, NOR_CFITypeDef *pNOR_CFI) |
| Read NOR flash CFI IDs. | |
| HAL_StatusTypeDef | HAL_NOR_RegisterCallback (NOR_HandleTypeDef *hnor, HAL_NOR_CallbackIDTypeDef CallbackId, pNOR_CallbackTypeDef pCallback) |
| Register a User NOR Callback To be used instead of the weak (surcharged) predefined callback. | |
| HAL_StatusTypeDef | HAL_NOR_UnRegisterCallback (NOR_HandleTypeDef *hnor, HAL_NOR_CallbackIDTypeDef CallbackId) |
| Unregister a User NOR Callback NOR Callback is redirected to the weak (surcharged) predefined callback. | |
| HAL_StatusTypeDef | HAL_NOR_WriteOperation_Enable (NOR_HandleTypeDef *hnor) |
| Enables dynamically NOR write operation. | |
| HAL_StatusTypeDef | HAL_NOR_WriteOperation_Disable (NOR_HandleTypeDef *hnor) |
| Disables dynamically NOR write operation. | |
| HAL_NOR_StateTypeDef | HAL_NOR_GetState (NOR_HandleTypeDef *hnor) |
| return the NOR controller state | |
| HAL_NOR_StatusTypeDef | HAL_NOR_GetStatus (NOR_HandleTypeDef *hnor, uint32_t Address, uint32_t Timeout) |
| Returns the NOR operation status. | |
Variables | |
| static uint32_t | uwNORMemoryDataWidth = NOR_MEMORY_8B |
NOR HAL module driver. This file provides a generic firmware to drive NOR memories mounted as external device.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
Definition in file stm32f4xx_hal_nor.c.
1.7.6.1