macros to handle NAND interrupts
More...
|
#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...
|
|
macros to handle NAND interrupts
◆ __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
-
◆ __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
-
◆ __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
-
◆ __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
-
The | state of FLAG (SET or RESET). |