RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Macros

macros to handle SDRAM interrupts More...

Macros

#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.
 

Detailed Description

macros to handle SDRAM interrupts

Macro Definition Documentation

◆ __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
None

◆ __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
None

◆ __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
None

◆ __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
Thestate of FLAG (SET or RESET).