36 #include "stm32f4xx_rcc.h" 52 #define BCR_MBKEN_SET ((uint32_t)0x00000001) 53 #define BCR_MBKEN_RESET ((uint32_t)0x000FFFFE) 54 #define BCR_FACCEN_SET ((uint32_t)0x00000040) 57 #define PCR_PBKEN_SET ((uint32_t)0x00000004) 58 #define PCR_PBKEN_RESET ((uint32_t)0x000FFFFB) 59 #define PCR_ECCEN_SET ((uint32_t)0x00000040) 60 #define PCR_ECCEN_RESET ((uint32_t)0x000FFFBF) 61 #define PCR_MEMORYTYPE_NAND ((uint32_t)0x00000008) 379 uint32_t tmppcr = 0x00000000, tmppmem = 0x00000000, tmppatt = 0x00000000;
552 uint32_t eccval = 0x00000000;
819 uint32_t tmpsr = 0x00000000;
840 if ((tmpsr & FSMC_FLAG) != (uint16_t)
RESET )
904 uint32_t tmpsr = 0x0, itstatus = 0x0, itenable = 0x0;
924 itstatus = tmpsr & FSMC_IT;
926 itenable = tmpsr & (FSMC_IT >> 3);
927 if ((itstatus != (uint32_t)
RESET) && (itenable != (uint32_t)RESET))
void FSMC_NORSRAMDeInit(uint32_t FSMC_Bank)
De-initializes the FSMC NOR/SRAM Banks registers to their default reset values.
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)
void FSMC_NANDCmd(uint32_t FSMC_Bank, FunctionalState NewState)
Enables or disables the specified NAND Memory Bank.
void FSMC_PCCARDCmd(FunctionalState NewState)
Enables or disables the PCCARD Memory Bank.
uint32_t FSMC_DataAddressMux
void FSMC_NANDInit(FSMC_NANDInitTypeDef *FSMC_NANDInitStruct)
Initializes the FSMC NAND Banks according to the specified parameters in the FSMC_NANDInitStruct.
#define FSMC_WrapMode_Disable
FSMC_NAND_PCCARDTimingInitTypeDef * FSMC_AttributeSpaceTimingStruct
#define IS_FSMC_HOLD_TIME(TIME)
uint32_t FSMC_WaitSignalActive
uint32_t FSMC_TARSetupTime
void FSMC_NORSRAMInit(FSMC_NORSRAMInitTypeDef *FSMC_NORSRAMInitStruct)
Initializes the FSMC NOR/SRAM Banks according to the specified parameters in the FSMC_NORSRAMInitStru...
#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_ITConfig(uint32_t FSMC_Bank, uint32_t FSMC_IT, FunctionalState NewState)
Enables or disables the specified FSMC interrupts.
#define IS_FSMC_DATASETUP_TIME(TIME)
uint32_t FSMC_AsynchronousWait
#define IS_FSMC_WRITE_BURST(BURST)
#define FSMC_AsynchronousWait_Disable
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
ITStatus FSMC_GetITStatus(uint32_t FSMC_Bank, uint32_t FSMC_IT)
Checks whether the specified FSMC interrupt has occurred or not.
void assert_param(int val)
uint32_t FSMC_Waitfeature
#define IS_FSMC_HIZ_TIME(TIME)
void FSMC_NANDStructInit(FSMC_NANDInitTypeDef *FSMC_NANDInitStruct)
Fills each FSMC_NANDInitStruct member with its default value.
#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
FSMC NAND Init structure definition.
#define IS_FSMC_ACCESS_MODE(MODE)
FSMC_NAND_PCCARDTimingInitTypeDef * FSMC_CommonSpaceTimingStruct
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
FlagStatus FSMC_GetFlagStatus(uint32_t FSMC_Bank, uint32_t FSMC_FLAG)
Checks whether the specified FSMC flag is set or not.
uint32_t FSMC_AddressHoldTime
#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
void FSMC_PCCARDInit(FSMC_PCCARDInitTypeDef *FSMC_PCCARDInitStruct)
Initializes the FSMC PCCARD Bank according to the specified parameters in the FSMC_PCCARDInitStruct.
#define FSMC_ECCPageSize_256Bytes
FSMC_NORSRAMTimingInitTypeDef * FSMC_ReadWriteTimingStruct
#define FSMC_Bank1_NORSRAM1
#define FSMC_ExtendedMode_Disable
#define FSMC_WaitSignalPolarity_Low
uint32_t FSMC_WaitSignalPolarity
#define FSMC_WriteOperation_Enable
#define FSMC_MemoryType_SRAM
uint32_t FSMC_CLKDivision
#define FSMC_WaitSignalActive_BeforeWaitState
#define IS_FSMC_ECC_STATE(STATE)
#define IS_FSMC_NORSRAM_BANK(BANK)
#define IS_FSMC_GETFLAG_BANK(BANK)
#define FSMC_MemoryDataWidth_16b
This file contains all the functions prototypes for the FSMC firmware library.
#define FSMC_WriteBurst_Disable
uint32_t FSMC_DataLatency
uint32_t FSMC_HoldSetupTime
#define IS_FSMC_ADDRESS_SETUP_TIME(TIME)
uint32_t FSMC_AddressSetupTime
#define FSMC_AccessMode_A
#define FSMC_WaitSignal_Enable
void FSMC_NANDECCCmd(uint32_t FSMC_Bank, FunctionalState NewState)
Enables or disables the FSMC NAND ECC feature.
void FSMC_ClearFlag(uint32_t FSMC_Bank, uint32_t FSMC_FLAG)
Clears the FSMC's pending flags.
void FSMC_NANDDeInit(uint32_t FSMC_Bank)
De-initializes the FSMC NAND Banks registers to their default reset values.
uint32_t FSMC_BurstAccessMode
uint32_t FSMC_BusTurnAroundDuration
void FSMC_NORSRAMStructInit(FSMC_NORSRAMInitTypeDef *FSMC_NORSRAMInitStruct)
Fills each FSMC_NORSRAMInitStruct member with its default value.
#define IS_FSMC_TAR_TIME(TIME)
#define FSMC_BurstAccessMode_Disable
#define IS_FSMC_WAITE_SIGNAL(SIGNAL)
uint32_t FSMC_MemoryDataWidth
void FSMC_ClearITPendingBit(uint32_t FSMC_Bank, uint32_t FSMC_IT)
Clears the FSMC's interrupt pending bits.
#define IS_FSMC_ADDRESS_HOLD_TIME(TIME)
uint32_t FSMC_Waitfeature
uint32_t FSMC_ExtendedMode
#define IS_FSMC_EXTENDED_MODE(MODE)
#define IS_FSMC_NAND_BANK(BANK)
uint32_t FSMC_GetECC(uint32_t FSMC_Bank)
Returns the error correction code register value.
#define IS_FSMC_MEMORY(MEMORY)
#define IS_FSMC_CLK_DIV(DIV)
#define IS_FSMC_SETUP_TIME(TIME)
uint32_t FSMC_WaitSetupTime
void FSMC_PCCARDDeInit(void)
De-initializes the FSMC PCCARD Bank registers to their default reset values.
uint32_t FSMC_HiZSetupTime
#define IS_FSMC_GET_IT(IT)
void FSMC_PCCARDStructInit(FSMC_PCCARDInitTypeDef *FSMC_PCCARDInitStruct)
Fills each FSMC_PCCARDInitStruct member with its default value.
#define PCR_MEMORYTYPE_NAND
void FSMC_NORSRAMCmd(uint32_t FSMC_Bank, FunctionalState NewState)
Enables or disables the specified NOR/SRAM Memory Bank.
uint32_t FSMC_MemoryDataWidth
#define IS_FSMC_ECCPAGE_SIZE(SIZE)
#define FSMC_MemoryDataWidth_8b