macros to handle SDRAM interrupts
More...
|
| #define | __FMC_SDRAM_ENABLE_IT(__INSTANCE__, __INTERRUPT__) ((__INSTANCE__)->SDRTR |= (__INTERRUPT__)) |
| | Enable the SDRAM device interrupt.
|
| |
| #define | __FMC_SDRAM_DISABLE_IT(__INSTANCE__, __INTERRUPT__) ((__INSTANCE__)->SDRTR &= ~(__INTERRUPT__)) |
| | Disable the SDRAM device interrupt.
|
| |
| #define | __FMC_SDRAM_GET_FLAG(__INSTANCE__, __FLAG__) (((__INSTANCE__)->SDSR &(__FLAG__)) == (__FLAG__)) |
| | Get flag status of the SDRAM device.
|
| |
| #define | __FMC_SDRAM_CLEAR_FLAG(__INSTANCE__, __FLAG__) ((__INSTANCE__)->SDRTR |= (__FLAG__)) |
| | Clear flag status of the SDRAM device.
|
| |
macros to handle SDRAM interrupts
◆ __FMC_SDRAM_CLEAR_FLAG
| #define __FMC_SDRAM_CLEAR_FLAG |
( |
|
__INSTANCE__, |
|
|
|
__FLAG__ |
|
) |
| ((__INSTANCE__)->SDRTR |= (__FLAG__)) |
Clear flag status of the SDRAM device.
- Parameters
-
| __INSTANCE__ | FMC_SDRAM instance |
| __FLAG__ | FMC_SDRAM flag This parameter can be any combination of the following values:
- FMC_SDRAM_FLAG_REFRESH_ERROR
|
- Return values
-
◆ __FMC_SDRAM_DISABLE_IT
| #define __FMC_SDRAM_DISABLE_IT |
( |
|
__INSTANCE__, |
|
|
|
__INTERRUPT__ |
|
) |
| ((__INSTANCE__)->SDRTR &= ~(__INTERRUPT__)) |
Disable the SDRAM device interrupt.
- Parameters
-
| __INSTANCE__ | FMC_SDRAM instance |
| __INTERRUPT__ | FMC_SDRAM interrupt This parameter can be any combination of the following values:
- FMC_IT_REFRESH_ERROR: Interrupt refresh error
|
- Return values
-
◆ __FMC_SDRAM_ENABLE_IT
| #define __FMC_SDRAM_ENABLE_IT |
( |
|
__INSTANCE__, |
|
|
|
__INTERRUPT__ |
|
) |
| ((__INSTANCE__)->SDRTR |= (__INTERRUPT__)) |
Enable the SDRAM device interrupt.
- Parameters
-
| __INSTANCE__ | FMC_SDRAM instance |
| __INTERRUPT__ | FMC_SDRAM interrupt This parameter can be any combination of the following values:
- FMC_IT_REFRESH_ERROR: Interrupt refresh error
|
- Return values
-
◆ __FMC_SDRAM_GET_FLAG
| #define __FMC_SDRAM_GET_FLAG |
( |
|
__INSTANCE__, |
|
|
|
__FLAG__ |
|
) |
| (((__INSTANCE__)->SDSR &(__FLAG__)) == (__FLAG__)) |
Get flag status of the SDRAM device.
- Parameters
-
| __INSTANCE__ | FMC_SDRAM instance |
| __FLAG__ | FMC_SDRAM flag This parameter can be any combination of the following values:
- FMC_SDRAM_FLAG_REFRESH_IT: Interrupt refresh error.
- FMC_SDRAM_FLAG_BUSY: SDRAM busy flag.
- FMC_SDRAM_FLAG_REFRESH_ERROR: Refresh error flag.
|
- Return values
-
| The | state of FLAG (SET or RESET). |