49 #define BCR_MBKEN_Set ((uint32_t)0x00000001) 50 #define BCR_MBKEN_Reset ((uint32_t)0x000FFFFE) 51 #define BCR_FACCEN_Set ((uint32_t)0x00000040) 54 #define PCR_PBKEN_Set ((uint32_t)0x00000004) 55 #define PCR_PBKEN_Reset ((uint32_t)0x000FFFFB) 56 #define PCR_ECCEN_Set ((uint32_t)0x00000040) 57 #define PCR_ECCEN_Reset ((uint32_t)0x000FFFBF) 58 #define PCR_MemoryType_NAND ((uint32_t)0x00000008) 264 uint32_t tmppcr = 0x00000000, tmppmem = 0x00000000, tmppatt = 0x00000000;
605 uint32_t eccval = 0x00000000;
700 uint32_t tmpsr = 0x00000000;
721 if ((tmpsr & FSMC_FLAG) != (uint16_t)
RESET )
785 uint32_t tmpsr = 0x0, itstatus = 0x0, itenable = 0x0;
805 itstatus = tmpsr & FSMC_IT;
807 itenable = tmpsr & (FSMC_IT >> 3);
808 if ((itstatus != (uint32_t)
RESET) && (itenable != (uint32_t)RESET))
uint32_t FSMC_DataSetupTime
uint32_t FSMC_WriteOperation
#define IS_FSMC_DATA_LATENCY(LATENCY)
FSMC_NAND_PCCARDTimingInitTypeDef * FSMC_IOSpaceTimingStruct
#define IS_FSMC_WAIT_TIME(TIME)
uint32_t FSMC_DataAddressMux
#define FSMC_WrapMode_Disable
FSMC_NAND_PCCARDTimingInitTypeDef * FSMC_AttributeSpaceTimingStruct
FlagStatus FSMC_GetFlagStatus(uint32_t FSMC_Bank, uint32_t FSMC_FLAG)
Checks whether the specified FSMC flag is set or not.
void FSMC_ClearFlag(uint32_t FSMC_Bank, uint32_t FSMC_FLAG)
Clears the FSMC's pending flags.
#define IS_FSMC_HOLD_TIME(TIME)
uint32_t FSMC_WaitSignalActive
uint32_t FSMC_TARSetupTime
#define FSMC_DataAddressMux_Enable
#define FSMC_MemoryType_NOR
uint32_t FSMC_ECCPageSize
#define IS_FSMC_WRITE_OPERATION(OPERATION)
#define IS_FSMC_CLEAR_FLAG(FLAG)
void FSMC_ClearITPendingBit(uint32_t FSMC_Bank, uint32_t FSMC_IT)
Clears the FSMC's interrupt pending bits.
#define IS_FSMC_DATASETUP_TIME(TIME)
uint32_t FSMC_AsynchronousWait
#define IS_FSMC_WRITE_BURST(BURST)
#define FSMC_AsynchronousWait_Disable
void FSMC_PCCARDStructInit(FSMC_PCCARDInitTypeDef *FSMC_PCCARDInitStruct)
Fills each FSMC_PCCARDInitStruct member with its default value.
FSMC_NAND_PCCARDTimingInitTypeDef * FSMC_CommonSpaceTimingStruct
#define IS_FSMC_TCLR_TIME(TIME)
FSMC NOR/SRAM Init structure definition.
#define IS_FSMC_GET_FLAG(FLAG)
#define IS_FSMC_MEMORY_WIDTH(WIDTH)
FSMC_NORSRAMTimingInitTypeDef * FSMC_WriteTimingStruct
void assert_param(int val)
void FSMC_NORSRAMCmd(uint32_t FSMC_Bank, FunctionalState NewState)
Enables or disables the specified NOR/SRAM Memory Bank.
uint32_t FSMC_Waitfeature
#define IS_FSMC_HIZ_TIME(TIME)
#define IS_FSMC_ASYNWAIT(STATE)
#define IS_FUNCTIONAL_STATE(STATE)
#define IS_FSMC_WAIT_SIGNAL_ACTIVE(ACTIVE)
#define IS_FSMC_WRAP_MODE(MODE)
#define FSMC_Waitfeature_Disable
#define FSMC_ExtendedMode_Enable
uint32_t FSMC_GetECC(uint32_t FSMC_Bank)
Returns the error correction code register value.
FSMC NAND Init structure definition.
#define IS_FSMC_ACCESS_MODE(MODE)
FSMC_NAND_PCCARDTimingInitTypeDef * FSMC_CommonSpaceTimingStruct
void FSMC_NANDCmd(uint32_t FSMC_Bank, FunctionalState NewState)
Enables or disables the specified NAND Memory Bank.
uint32_t FSMC_TCLRSetupTime
#define IS_FSMC_IT_BANK(BANK)
FSMC_NAND_PCCARDTimingInitTypeDef * FSMC_AttributeSpaceTimingStruct
#define IS_FSMC_TURNAROUND_TIME(TIME)
uint32_t FSMC_TCLRSetupTime
ITStatus FSMC_GetITStatus(uint32_t FSMC_Bank, uint32_t FSMC_IT)
Checks whether the specified FSMC interrupt has occurred or not.
uint32_t FSMC_AddressHoldTime
void FSMC_NORSRAMDeInit(uint32_t FSMC_Bank)
Deinitializes the FSMC NOR/SRAM Banks registers to their default reset values.
#define IS_FSMC_WAIT_FEATURE(FEATURE)
#define IS_FSMC_WAIT_POLARITY(POLARITY)
#define IS_FSMC_BURSTMODE(STATE)
FSMC PCCARD Init structure definition.
uint32_t FSMC_TARSetupTime
#define FSMC_ECCPageSize_256Bytes
FSMC_NORSRAMTimingInitTypeDef * FSMC_ReadWriteTimingStruct
#define FSMC_Bank1_NORSRAM1
#define FSMC_ExtendedMode_Disable
#define FSMC_WaitSignalPolarity_Low
void FSMC_NANDECCCmd(uint32_t FSMC_Bank, FunctionalState NewState)
Enables or disables the FSMC NAND ECC feature.
uint32_t FSMC_WaitSignalPolarity
#define FSMC_WriteOperation_Enable
void FSMC_NORSRAMStructInit(FSMC_NORSRAMInitTypeDef *FSMC_NORSRAMInitStruct)
Fills each FSMC_NORSRAMInitStruct member with its default value.
#define FSMC_MemoryType_SRAM
uint32_t FSMC_CLKDivision
#define FSMC_WaitSignalActive_BeforeWaitState
This file contains all the functions prototypes for the RCC firmware library.
#define IS_FSMC_ECC_STATE(STATE)
#define IS_FSMC_NORSRAM_BANK(BANK)
#define IS_FSMC_GETFLAG_BANK(BANK)
#define FSMC_MemoryDataWidth_16b
#define PCR_MemoryType_NAND
#define FSMC_WriteBurst_Disable
void FSMC_NANDDeInit(uint32_t FSMC_Bank)
Deinitializes the FSMC NAND Banks registers to their default reset values.
uint32_t FSMC_DataLatency
void FSMC_ITConfig(uint32_t FSMC_Bank, uint32_t FSMC_IT, FunctionalState NewState)
Enables or disables the specified FSMC interrupts.
uint32_t FSMC_HoldSetupTime
void FSMC_NANDStructInit(FSMC_NANDInitTypeDef *FSMC_NANDInitStruct)
Fills each FSMC_NANDInitStruct member with its default value.
#define IS_FSMC_ADDRESS_SETUP_TIME(TIME)
uint32_t FSMC_AddressSetupTime
#define FSMC_AccessMode_A
#define FSMC_WaitSignal_Enable
void FSMC_PCCARDCmd(FunctionalState NewState)
Enables or disables the PCCARD Memory Bank.
void FSMC_NORSRAMInit(FSMC_NORSRAMInitTypeDef *FSMC_NORSRAMInitStruct)
Initializes the FSMC NOR/SRAM Banks according to the specified parameters in the FSMC_NORSRAMInitStru...
void FSMC_PCCARDDeInit(void)
Deinitializes the FSMC PCCARD Bank registers to their default reset values.
uint32_t FSMC_BurstAccessMode
uint32_t FSMC_BusTurnAroundDuration
#define IS_FSMC_TAR_TIME(TIME)
#define FSMC_BurstAccessMode_Disable
void FSMC_NANDInit(FSMC_NANDInitTypeDef *FSMC_NANDInitStruct)
Initializes the FSMC NAND Banks according to the specified parameters in the FSMC_NANDInitStruct.
#define IS_FSMC_WAITE_SIGNAL(SIGNAL)
uint32_t FSMC_MemoryDataWidth
#define IS_FSMC_ADDRESS_HOLD_TIME(TIME)
uint32_t FSMC_Waitfeature
uint32_t FSMC_ExtendedMode
This file contains all the functions prototypes for the FSMC firmware library.
#define IS_FSMC_EXTENDED_MODE(MODE)
#define IS_FSMC_NAND_BANK(BANK)
#define IS_FSMC_MEMORY(MEMORY)
#define IS_FSMC_CLK_DIV(DIV)
#define IS_FSMC_SETUP_TIME(TIME)
uint32_t FSMC_WaitSetupTime
uint32_t FSMC_HiZSetupTime
#define IS_FSMC_GET_IT(IT)
uint32_t FSMC_MemoryDataWidth
void FSMC_PCCARDInit(FSMC_PCCARDInitTypeDef *FSMC_PCCARDInitStruct)
Initializes the FSMC PCCARD Bank according to the specified parameters in the FSMC_PCCARDInitStruct.
#define IS_FSMC_ECCPAGE_SIZE(SIZE)
#define FSMC_MemoryDataWidth_8b