RTEMS 6.1-rc1
Macros

macros to handle NAND interrupts More...

Macros

#define __FMC_NAND_ENABLE_IT(__INSTANCE__, __INTERRUPT__)   ((__INSTANCE__)->SR |= (__INTERRUPT__))
 Enable the NAND device interrupt. More...
 
#define __FMC_NAND_DISABLE_IT(__INSTANCE__, __INTERRUPT__)   ((__INSTANCE__)->SR &= ~(__INTERRUPT__))
 Disable the NAND device interrupt. More...
 
#define __FMC_NAND_GET_FLAG(__INSTANCE__, __BANK__, __FLAG__)   (((__INSTANCE__)->SR &(__FLAG__)) == (__FLAG__))
 Get flag status of the NAND device. More...
 
#define __FMC_NAND_CLEAR_FLAG(__INSTANCE__, __FLAG__)   ((__INSTANCE__)->SR &= ~(__FLAG__))
 Clear flag status of the NAND device. More...
 

Detailed Description

macros to handle NAND interrupts

Macro Definition Documentation

◆ __FMC_NAND_CLEAR_FLAG

#define __FMC_NAND_CLEAR_FLAG (   __INSTANCE__,
  __FLAG__ 
)    ((__INSTANCE__)->SR &= ~(__FLAG__))

Clear flag status of the NAND device.

Parameters
__INSTANCE__FMC_NAND Instance
__FLAG__FMC_NAND flag This parameter can be any combination of the following values:
  • FMC_FLAG_RISING_EDGE: Interrupt rising edge flag.
  • FMC_FLAG_LEVEL: Interrupt level edge flag.
  • FMC_FLAG_FALLING_EDGE: Interrupt falling edge flag.
  • FMC_FLAG_FEMPT: FIFO empty flag.
Return values
None

◆ __FMC_NAND_DISABLE_IT

#define __FMC_NAND_DISABLE_IT (   __INSTANCE__,
  __INTERRUPT__ 
)    ((__INSTANCE__)->SR &= ~(__INTERRUPT__))

Disable the NAND device interrupt.

Parameters
__INSTANCE__FMC_NAND Instance
__INTERRUPT__FMC_NAND interrupt This parameter can be any combination of the following values:
  • FMC_IT_RISING_EDGE: Interrupt rising edge.
  • FMC_IT_LEVEL: Interrupt level.
  • FMC_IT_FALLING_EDGE: Interrupt falling edge.
Return values
None

◆ __FMC_NAND_ENABLE_IT

#define __FMC_NAND_ENABLE_IT (   __INSTANCE__,
  __INTERRUPT__ 
)    ((__INSTANCE__)->SR |= (__INTERRUPT__))

Enable the NAND device interrupt.

Parameters
__INSTANCE__FMC_NAND instance
__INTERRUPT__FMC_NAND interrupt This parameter can be any combination of the following values:
  • FMC_IT_RISING_EDGE: Interrupt rising edge.
  • FMC_IT_LEVEL: Interrupt level.
  • FMC_IT_FALLING_EDGE: Interrupt falling edge.
Return values
None

◆ __FMC_NAND_GET_FLAG

#define __FMC_NAND_GET_FLAG (   __INSTANCE__,
  __BANK__,
  __FLAG__ 
)    (((__INSTANCE__)->SR &(__FLAG__)) == (__FLAG__))

Get flag status of the NAND device.

Parameters
__INSTANCE__FMC_NAND Instance
__BANK__FMC_NAND Bank
__FLAG__FMC_NAND flag This parameter can be any combination of the following values:
  • FMC_FLAG_RISING_EDGE: Interrupt rising edge flag.
  • FMC_FLAG_LEVEL: Interrupt level edge flag.
  • FMC_FLAG_FALLING_EDGE: Interrupt falling edge flag.
  • FMC_FLAG_FEMPT: FIFO empty flag.
Return values
Thestate of FLAG (SET or RESET).