STM3210E_EVAL_FSMC_NAND_Exported_Constants
[STM3210E_EVAL_FSMC_NAND]

Defines

#define ADDR_1st_CYCLE(ADDR)   (uint8_t)((ADDR)& 0xFF)
 FSMC NAND memory address computation.
#define ADDR_2nd_CYCLE(ADDR)   (uint8_t)(((ADDR)& 0xFF00) >> 8)
#define ADDR_3rd_CYCLE(ADDR)   (uint8_t)(((ADDR)& 0xFF0000) >> 16)
#define ADDR_4th_CYCLE(ADDR)   (uint8_t)(((ADDR)& 0xFF000000) >> 24)
#define ADDR_AREA   (uint32_t)(1<<17)
#define CMD_AREA   (uint32_t)(1<<16)
 NAND Area definition for STM3210E-EVAL Board RevD.
#define DATA_AREA   ((uint32_t)0x00000000)
#define NAND_BLOCK_SIZE   ((uint16_t)0x0020)
#define NAND_BUSY   ((uint32_t)0x00000000)
#define NAND_CMD_AREA_A   ((uint8_t)0x00)
 FSMC NAND memory command.
#define NAND_CMD_AREA_B   ((uint8_t)0x01)
#define NAND_CMD_AREA_C   ((uint8_t)0x50)
#define NAND_CMD_ERASE0   ((uint8_t)0x60)
#define NAND_CMD_ERASE1   ((uint8_t)0xD0)
#define NAND_CMD_LOCK_STATUS   ((uint8_t)0x7A)
#define NAND_CMD_READID   ((uint8_t)0x90)
#define NAND_CMD_RESET   ((uint8_t)0xFF)
#define NAND_CMD_STATUS   ((uint8_t)0x70)
#define NAND_CMD_WRITE0   ((uint8_t)0x80)
#define NAND_CMD_WRITE_TRUE1   ((uint8_t)0x10)
#define NAND_ERROR   ((uint32_t)0x00000001)
#define NAND_INVALID_ADDRESS   ((uint32_t)0x00000200)
#define NAND_MAX_ZONE   ((uint16_t)0x0004)
#define NAND_PAGE_SIZE   ((uint16_t)0x0200)
 FSMC NAND memory parameters.
#define NAND_READY   ((uint32_t)0x00000040)
#define NAND_SPARE_AREA_SIZE   ((uint16_t)0x0010)
#define NAND_TIMEOUT_ERROR   ((uint32_t)0x00000400)
#define NAND_VALID_ADDRESS   ((uint32_t)0x00000100)
 NAND memory status.
#define NAND_ZONE_SIZE   ((uint16_t)0x0400)

Define Documentation

#define ADDR_1st_CYCLE ( ADDR   )     (uint8_t)((ADDR)& 0xFF)

FSMC NAND memory address computation.

Definition at line 121 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_EraseBlock(), NAND_ReadID(), NAND_ReadSmallPage(), NAND_ReadSpareArea(), NAND_WriteSmallPage(), and NAND_WriteSpareArea().

#define ADDR_2nd_CYCLE ( ADDR   )     (uint8_t)(((ADDR)& 0xFF00) >> 8)
#define ADDR_3rd_CYCLE ( ADDR   )     (uint8_t)(((ADDR)& 0xFF0000) >> 16)
#define ADDR_4th_CYCLE ( ADDR   )     (uint8_t)(((ADDR)& 0xFF000000) >> 24)

Definition at line 124 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_ReadID().

#define ADDR_AREA   (uint32_t)(1<<17)
#define CMD_AREA   (uint32_t)(1<<16)

NAND Area definition for STM3210E-EVAL Board RevD.

Definition at line 76 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_EraseBlock(), NAND_ReadID(), NAND_ReadSmallPage(), NAND_ReadSpareArea(), NAND_ReadStatus(), NAND_Reset(), NAND_WriteSmallPage(), and NAND_WriteSpareArea().

#define DATA_AREA   ((uint32_t)0x00000000)
#define NAND_BLOCK_SIZE   ((uint16_t)0x0020)

Definition at line 113 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_AddressIncrement().

#define NAND_BUSY   ((uint32_t)0x00000000)

Definition at line 105 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_ReadStatus().

#define NAND_CMD_AREA_A   ((uint8_t)0x00)

FSMC NAND memory command.

Definition at line 84 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_ReadSmallPage(), and NAND_WriteSmallPage().

#define NAND_CMD_AREA_B   ((uint8_t)0x01)

Definition at line 85 of file stm3210e_eval_fsmc_nand.h.

#define NAND_CMD_AREA_C   ((uint8_t)0x50)

Definition at line 86 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_ReadSpareArea(), and NAND_WriteSpareArea().

#define NAND_CMD_ERASE0   ((uint8_t)0x60)

Definition at line 91 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_EraseBlock().

#define NAND_CMD_ERASE1   ((uint8_t)0xD0)

Definition at line 92 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_EraseBlock().

#define NAND_CMD_LOCK_STATUS   ((uint8_t)0x7A)

Definition at line 96 of file stm3210e_eval_fsmc_nand.h.

#define NAND_CMD_READID   ((uint8_t)0x90)

Definition at line 94 of file stm3210e_eval_fsmc_nand.h.

#define NAND_CMD_RESET   ((uint8_t)0xFF)

Definition at line 97 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_Reset().

#define NAND_CMD_STATUS   ((uint8_t)0x70)

Definition at line 95 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_ReadStatus().

#define NAND_CMD_WRITE0   ((uint8_t)0x80)

Definition at line 88 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_WriteSmallPage(), and NAND_WriteSpareArea().

#define NAND_CMD_WRITE_TRUE1   ((uint8_t)0x10)

Definition at line 89 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_WriteSmallPage(), and NAND_WriteSpareArea().

#define NAND_ERROR   ((uint32_t)0x00000001)

Definition at line 106 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_ReadStatus().

#define NAND_INVALID_ADDRESS   ((uint32_t)0x00000200)

Definition at line 103 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_AddressIncrement().

#define NAND_MAX_ZONE   ((uint16_t)0x0004)

Definition at line 116 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_AddressIncrement().

#define NAND_PAGE_SIZE   ((uint16_t)0x0200)

FSMC NAND memory parameters.

Definition at line 112 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_ReadSmallPage(), and NAND_WriteSmallPage().

#define NAND_READY   ((uint32_t)0x00000040)
#define NAND_SPARE_AREA_SIZE   ((uint16_t)0x0010)

Definition at line 115 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_ReadSpareArea(), and NAND_WriteSpareArea().

#define NAND_TIMEOUT_ERROR   ((uint32_t)0x00000400)

Definition at line 104 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_GetStatus().

#define NAND_VALID_ADDRESS   ((uint32_t)0x00000100)
#define NAND_ZONE_SIZE   ((uint16_t)0x0400)

Definition at line 114 of file stm3210e_eval_fsmc_nand.h.

Referenced by NAND_AddressIncrement().

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32