FSMC driver modules. More...
Classes | |
struct | FSMC_NAND_PCCARDTimingInitTypeDef |
Timing parameters For FSMC NAND and PCCARD Banks. More... | |
struct | FSMC_NANDInitTypeDef |
FSMC NAND Init structure definition. More... | |
struct | FSMC_NORSRAMInitTypeDef |
FSMC NOR/SRAM Init structure definition. More... | |
struct | FSMC_NORSRAMTimingInitTypeDef |
Timing parameters For NOR/SRAM Banks. More... | |
struct | FSMC_PCCARDInitTypeDef |
FSMC PCCARD Init structure definition. More... | |
Macros | |
#define | BCR_FACCEN_SET ((uint32_t)0x00000040) |
#define | BCR_MBKEN_RESET ((uint32_t)0x000FFFFE) |
#define | BCR_MBKEN_SET ((uint32_t)0x00000001) |
#define | PCR_ECCEN_RESET ((uint32_t)0x000FFFBF) |
#define | PCR_ECCEN_SET ((uint32_t)0x00000040) |
#define | PCR_MEMORYTYPE_NAND ((uint32_t)0x00000008) |
#define | PCR_PBKEN_RESET ((uint32_t)0x000FFFFB) |
#define | PCR_PBKEN_SET ((uint32_t)0x00000004) |
Functions | |
void | FSMC_ClearFlag (uint32_t FSMC_Bank, uint32_t FSMC_FLAG) |
Clears the FSMC's pending flags. More... | |
void | FSMC_ClearITPendingBit (uint32_t FSMC_Bank, uint32_t FSMC_IT) |
Clears the FSMC's interrupt pending bits. More... | |
uint32_t | FSMC_GetECC (uint32_t FSMC_Bank) |
Returns the error correction code register value. More... | |
FlagStatus | FSMC_GetFlagStatus (uint32_t FSMC_Bank, uint32_t FSMC_FLAG) |
Checks whether the specified FSMC flag is set or not. More... | |
ITStatus | FSMC_GetITStatus (uint32_t FSMC_Bank, uint32_t FSMC_IT) |
Checks whether the specified FSMC interrupt has occurred or not. More... | |
void | FSMC_ITConfig (uint32_t FSMC_Bank, uint32_t FSMC_IT, FunctionalState NewState) |
Enables or disables the specified FSMC interrupts. More... | |
void | FSMC_NANDCmd (uint32_t FSMC_Bank, FunctionalState NewState) |
Enables or disables the specified NAND Memory Bank. More... | |
void | FSMC_NANDDeInit (uint32_t FSMC_Bank) |
De-initializes the FSMC NAND Banks registers to their default reset values. More... | |
void | FSMC_NANDECCCmd (uint32_t FSMC_Bank, FunctionalState NewState) |
Enables or disables the FSMC NAND ECC feature. More... | |
void | FSMC_NANDInit (FSMC_NANDInitTypeDef *FSMC_NANDInitStruct) |
Initializes the FSMC NAND Banks according to the specified parameters in the FSMC_NANDInitStruct. More... | |
void | FSMC_NANDStructInit (FSMC_NANDInitTypeDef *FSMC_NANDInitStruct) |
Fills each FSMC_NANDInitStruct member with its default value. More... | |
void | FSMC_NORSRAMCmd (uint32_t FSMC_Bank, FunctionalState NewState) |
Enables or disables the specified NOR/SRAM Memory Bank. More... | |
void | FSMC_NORSRAMDeInit (uint32_t FSMC_Bank) |
De-initializes the FSMC NOR/SRAM Banks registers to their default reset values. More... | |
void | FSMC_NORSRAMInit (FSMC_NORSRAMInitTypeDef *FSMC_NORSRAMInitStruct) |
Initializes the FSMC NOR/SRAM Banks according to the specified parameters in the FSMC_NORSRAMInitStruct. More... | |
void | FSMC_NORSRAMStructInit (FSMC_NORSRAMInitTypeDef *FSMC_NORSRAMInitStruct) |
Fills each FSMC_NORSRAMInitStruct member with its default value. More... | |
void | FSMC_PCCARDCmd (FunctionalState NewState) |
Enables or disables the PCCARD Memory Bank. More... | |
void | FSMC_PCCARDDeInit (void) |
De-initializes the FSMC PCCARD Bank registers to their default reset values. More... | |
void | FSMC_PCCARDInit (FSMC_PCCARDInitTypeDef *FSMC_PCCARDInitStruct) |
Initializes the FSMC PCCARD Bank according to the specified parameters in the FSMC_PCCARDInitStruct. More... | |
void | FSMC_PCCARDStructInit (FSMC_PCCARDInitTypeDef *FSMC_PCCARDInitStruct) |
Fills each FSMC_PCCARDInitStruct member with its default value. More... | |
FSMC driver modules.
#define BCR_FACCEN_SET ((uint32_t)0x00000040) |
Definition at line 54 of file stm32f4xx_fsmc.c.
#define BCR_MBKEN_RESET ((uint32_t)0x000FFFFE) |
Definition at line 53 of file stm32f4xx_fsmc.c.
#define BCR_MBKEN_SET ((uint32_t)0x00000001) |
Definition at line 52 of file stm32f4xx_fsmc.c.
#define PCR_ECCEN_RESET ((uint32_t)0x000FFFBF) |
Definition at line 60 of file stm32f4xx_fsmc.c.
#define PCR_ECCEN_SET ((uint32_t)0x00000040) |
Definition at line 59 of file stm32f4xx_fsmc.c.
#define PCR_MEMORYTYPE_NAND ((uint32_t)0x00000008) |
Definition at line 61 of file stm32f4xx_fsmc.c.
#define PCR_PBKEN_RESET ((uint32_t)0x000FFFFB) |
Definition at line 58 of file stm32f4xx_fsmc.c.
#define PCR_PBKEN_SET ((uint32_t)0x00000004) |
Definition at line 57 of file stm32f4xx_fsmc.c.
void FSMC_ClearFlag | ( | uint32_t | FSMC_Bank, |
uint32_t | FSMC_FLAG | ||
) |
Clears the FSMC's pending flags.
FSMC_Bank | specifies the FSMC Bank to be used This parameter can be one of the following values:
|
FSMC_FLAG | specifies the flag to clear. This parameter can be any combination of the following values:
|
None |
FSMC_Bank | specifies the FSMC Bank to be used This parameter can be one of the following values:
|
FSMC_FLAG | specifies the flag to clear. This parameter can be any combination of the following values:
|
None |
Definition at line 866 of file stm32f4xx_fsmc.c.
void FSMC_ClearITPendingBit | ( | uint32_t | FSMC_Bank, |
uint32_t | FSMC_IT | ||
) |
Clears the FSMC's interrupt pending bits.
FSMC_Bank | specifies the FSMC Bank to be used This parameter can be one of the following values:
|
FSMC_IT | specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
|
None |
Definition at line 952 of file stm32f4xx_fsmc.c.
uint32_t FSMC_GetECC | ( | uint32_t | FSMC_Bank | ) |
Returns the error correction code register value.
FSMC_Bank | specifies the FSMC Bank to be used This parameter can be one of the following values:
|
The | Error Correction Code (ECC) value. |
Definition at line 550 of file stm32f4xx_fsmc.c.
FlagStatus FSMC_GetFlagStatus | ( | uint32_t | FSMC_Bank, |
uint32_t | FSMC_FLAG | ||
) |
Checks whether the specified FSMC flag is set or not.
FSMC_Bank | specifies the FSMC Bank to be used This parameter can be one of the following values:
|
FSMC_FLAG | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of FSMC_FLAG (SET or RESET). |
FSMC_Bank | specifies the FSMC Bank to be used This parameter can be one of the following values:
|
FSMC_FLAG | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of FSMC_FLAG (SET or RESET). |
Definition at line 816 of file stm32f4xx_fsmc.c.
ITStatus FSMC_GetITStatus | ( | uint32_t | FSMC_Bank, |
uint32_t | FSMC_IT | ||
) |
Checks whether the specified FSMC interrupt has occurred or not.
FSMC_Bank | specifies the FSMC Bank to be used This parameter can be one of the following values:
|
FSMC_IT | specifies the FSMC interrupt source to check. This parameter can be one of the following values:
|
The | new state of FSMC_IT (SET or RESET). |
Definition at line 901 of file stm32f4xx_fsmc.c.
void FSMC_ITConfig | ( | uint32_t | FSMC_Bank, |
uint32_t | FSMC_IT, | ||
FunctionalState | NewState | ||
) |
Enables or disables the specified FSMC interrupts.
FSMC_Bank | specifies the FSMC Bank to be used This parameter can be one of the following values:
|
FSMC_IT | specifies the FSMC interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:
|
NewState | new state of the specified FSMC interrupts. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 756 of file stm32f4xx_fsmc.c.
void FSMC_NANDCmd | ( | uint32_t | FSMC_Bank, |
FunctionalState | NewState | ||
) |
Enables or disables the specified NAND Memory Bank.
FSMC_Bank | specifies the FSMC Bank to be used This parameter can be one of the following values:
|
NewState | new state of the FSMC_Bank. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 471 of file stm32f4xx_fsmc.c.
void FSMC_NANDDeInit | ( | uint32_t | FSMC_Bank | ) |
De-initializes the FSMC NAND Banks registers to their default reset values.
FSMC_Bank | specifies the FSMC Bank to be used This parameter can be one of the following values:
|
None | De-initializes the FSMC NAND Banks registers to their default reset values. |
FSMC_Bank | specifies the FSMC Bank to be used This parameter can be one of the following values:
|
None |
Definition at line 346 of file stm32f4xx_fsmc.c.
void FSMC_NANDECCCmd | ( | uint32_t | FSMC_Bank, |
FunctionalState | NewState | ||
) |
Enables or disables the FSMC NAND ECC feature.
FSMC_Bank | specifies the FSMC Bank to be used This parameter can be one of the following values:
|
NewState | new state of the FSMC NAND ECC feature. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 511 of file stm32f4xx_fsmc.c.
void FSMC_NANDInit | ( | FSMC_NANDInitTypeDef * | FSMC_NANDInitStruct | ) |
Initializes the FSMC NAND Banks according to the specified parameters in the FSMC_NANDInitStruct.
FSMC_NANDInitStruct | : pointer to a FSMC_NANDInitTypeDef structure that contains the configuration information for the FSMC NAND specified Banks. |
None |
Definition at line 377 of file stm32f4xx_fsmc.c.
void FSMC_NANDStructInit | ( | FSMC_NANDInitTypeDef * | FSMC_NANDInitStruct | ) |
Fills each FSMC_NANDInitStruct member with its default value.
FSMC_NANDInitStruct | pointer to a FSMC_NANDInitTypeDef structure which will be initialized. |
None |
Definition at line 442 of file stm32f4xx_fsmc.c.
void FSMC_NORSRAMCmd | ( | uint32_t | FSMC_Bank, |
FunctionalState | NewState | ||
) |
Enables or disables the specified NOR/SRAM Memory Bank.
FSMC_Bank | specifies the FSMC Bank to be used This parameter can be one of the following values:
|
NewState | new state of the FSMC_Bank. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 273 of file stm32f4xx_fsmc.c.
void FSMC_NORSRAMDeInit | ( | uint32_t | FSMC_Bank | ) |
De-initializes the FSMC NOR/SRAM Banks registers to their default reset values.
FSMC_Bank | specifies the FSMC Bank to be used This parameter can be one of the following values:
|
None | De-initializes the FSMC NOR/SRAM Banks registers to their default reset values. |
FSMC_Bank | specifies the FSMC Bank to be used This parameter can be one of the following values:
|
None |
Definition at line 121 of file stm32f4xx_fsmc.c.
void FSMC_NORSRAMInit | ( | FSMC_NORSRAMInitTypeDef * | FSMC_NORSRAMInitStruct | ) |
Initializes the FSMC NOR/SRAM Banks according to the specified parameters in the FSMC_NORSRAMInitStruct.
FSMC_NORSRAMInitStruct | : pointer to a FSMC_NORSRAMInitTypeDef structure that contains the configuration information for the FSMC NOR/SRAM specified Banks. |
None |
Definition at line 148 of file stm32f4xx_fsmc.c.
void FSMC_NORSRAMStructInit | ( | FSMC_NORSRAMInitTypeDef * | FSMC_NORSRAMInitStruct | ) |
Fills each FSMC_NORSRAMInitStruct member with its default value.
FSMC_NORSRAMInitStruct | pointer to a FSMC_NORSRAMInitTypeDef structure which will be initialized. |
None |
Definition at line 230 of file stm32f4xx_fsmc.c.
void FSMC_PCCARDCmd | ( | FunctionalState | NewState | ) |
Enables or disables the PCCARD Memory Bank.
NewState | new state of the PCCARD Memory Bank. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 709 of file stm32f4xx_fsmc.c.
void FSMC_PCCARDDeInit | ( | void | ) |
De-initializes the FSMC PCCARD Bank registers to their default reset values.
None |
None | De-initializes the FSMC PCCARD Bank registers to their default reset values. |
None |
None |
Definition at line 614 of file stm32f4xx_fsmc.c.
void FSMC_PCCARDInit | ( | FSMC_PCCARDInitTypeDef * | FSMC_PCCARDInitStruct | ) |
Initializes the FSMC PCCARD Bank according to the specified parameters in the FSMC_PCCARDInitStruct.
FSMC_PCCARDInitStruct | : pointer to a FSMC_PCCARDInitTypeDef structure that contains the configuration information for the FSMC PCCARD Bank. |
None |
Definition at line 631 of file stm32f4xx_fsmc.c.
void FSMC_PCCARDStructInit | ( | FSMC_PCCARDInitTypeDef * | FSMC_PCCARDInitStruct | ) |
Fills each FSMC_PCCARDInitStruct member with its default value.
FSMC_PCCARDInitStruct | pointer to a FSMC_PCCARDInitTypeDef structure which will be initialized. |
None |
Definition at line 683 of file stm32f4xx_fsmc.c.