STM32F2 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F2 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
Interrupts and flags management functions

Interrupts and flags management functions. More...

Functions

void FSMC_ITConfig (uint32_t FSMC_Bank, uint32_t FSMC_IT, FunctionalState NewState)
 Enables or disables the specified FSMC interrupts. More...
 
FlagStatus FSMC_GetFlagStatus (uint32_t FSMC_Bank, uint32_t FSMC_FLAG)
 Checks whether the specified FSMC flag is set or not. More...
 
void FSMC_ClearFlag (uint32_t FSMC_Bank, uint32_t FSMC_FLAG)
 Clears the FSMC's pending flags. 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_ClearITPendingBit (uint32_t FSMC_Bank, uint32_t FSMC_IT)
 Clears the FSMC's interrupt pending bits. More...
 

Detailed Description

Interrupts and flags management functions.

 ===============================================================================
                     Interrupts and flags management functions
 ===============================================================================  

Function Documentation

void FSMC_ClearFlag ( uint32_t  FSMC_Bank,
uint32_t  FSMC_FLAG 
)

Clears the FSMC's pending flags.

Parameters
FSMC_Bank,:specifies the FSMC Bank to be used This parameter can be one of the following values:
  • FSMC_Bank2_NAND: FSMC Bank2 NAND
  • FSMC_Bank3_NAND: FSMC Bank3 NAND
  • FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD
FSMC_FLAG,:specifies the flag to clear. This parameter can be any combination of the following values:
  • FSMC_FLAG_RisingEdge: Rising edge detection Flag.
  • FSMC_FLAG_Level: Level detection Flag.
  • FSMC_FLAG_FallingEdge: Falling edge detection Flag.
Return values
None
void FSMC_ClearITPendingBit ( uint32_t  FSMC_Bank,
uint32_t  FSMC_IT 
)

Clears the FSMC's interrupt pending bits.

Parameters
FSMC_Bank,:specifies the FSMC Bank to be used This parameter can be one of the following values:
  • FSMC_Bank2_NAND: FSMC Bank2 NAND
  • FSMC_Bank3_NAND: FSMC Bank3 NAND
  • FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD
FSMC_IT,:specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
  • FSMC_IT_RisingEdge: Rising edge detection interrupt.
  • FSMC_IT_Level: Level edge detection interrupt.
  • FSMC_IT_FallingEdge: Falling edge detection interrupt.
Return values
None
FlagStatus FSMC_GetFlagStatus ( uint32_t  FSMC_Bank,
uint32_t  FSMC_FLAG 
)

Checks whether the specified FSMC flag is set or not.

Parameters
FSMC_Bank,:specifies the FSMC Bank to be used This parameter can be one of the following values:
  • FSMC_Bank2_NAND: FSMC Bank2 NAND
  • FSMC_Bank3_NAND: FSMC Bank3 NAND
  • FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD
FSMC_FLAG,:specifies the flag to check. This parameter can be one of the following values:
  • FSMC_FLAG_RisingEdge: Rising edge detection Flag.
  • FSMC_FLAG_Level: Level detection Flag.
  • FSMC_FLAG_FallingEdge: Falling edge detection Flag.
  • FSMC_FLAG_FEMPT: Fifo empty Flag.
Return values
Thenew state of FSMC_FLAG (SET or RESET).
ITStatus FSMC_GetITStatus ( uint32_t  FSMC_Bank,
uint32_t  FSMC_IT 
)

Checks whether the specified FSMC interrupt has occurred or not.

Parameters
FSMC_Bank,:specifies the FSMC Bank to be used This parameter can be one of the following values:
  • FSMC_Bank2_NAND: FSMC Bank2 NAND
  • FSMC_Bank3_NAND: FSMC Bank3 NAND
  • FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD
FSMC_IT,:specifies the FSMC interrupt source to check. This parameter can be one of the following values:
  • FSMC_IT_RisingEdge: Rising edge detection interrupt.
  • FSMC_IT_Level: Level edge detection interrupt.
  • FSMC_IT_FallingEdge: Falling edge detection interrupt.
Return values
Thenew state of FSMC_IT (SET or RESET).
void FSMC_ITConfig ( uint32_t  FSMC_Bank,
uint32_t  FSMC_IT,
FunctionalState  NewState 
)

Enables or disables the specified FSMC interrupts.

Parameters
FSMC_Bank,:specifies the FSMC Bank to be used This parameter can be one of the following values:
  • FSMC_Bank2_NAND: FSMC Bank2 NAND
  • FSMC_Bank3_NAND: FSMC Bank3 NAND
  • FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD
FSMC_IT,:specifies the FSMC interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:
  • FSMC_IT_RisingEdge: Rising edge detection interrupt.
  • FSMC_IT_Level: Level edge detection interrupt.
  • FSMC_IT_FallingEdge: Falling edge detection interrupt.
NewState,:new state of the specified FSMC interrupts. This parameter can be: ENABLE or DISABLE.
Return values
None