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

macros to handle interrupts and specific clock configurations More...

Macros

#define __SDMMC_ENABLE_IT(__INSTANCE__, __INTERRUPT__)   ((__INSTANCE__)->MASK |= (__INTERRUPT__))
 Enable the SDMMC device interrupt.
 
#define __SDMMC_DISABLE_IT(__INSTANCE__, __INTERRUPT__)   ((__INSTANCE__)->MASK &= ~(__INTERRUPT__))
 Disable the SDMMC device interrupt.
 
#define __SDMMC_GET_FLAG(__INSTANCE__, __FLAG__)   (((__INSTANCE__)->STA &(__FLAG__)) != 0U)
 Checks whether the specified SDMMC flag is set or not.
 
#define __SDMMC_CLEAR_FLAG(__INSTANCE__, __FLAG__)   ((__INSTANCE__)->ICR = (__FLAG__))
 Clears the SDMMC pending flags.
 
#define __SDMMC_GET_IT(__INSTANCE__, __INTERRUPT__)   (((__INSTANCE__)->STA &(__INTERRUPT__)) == (__INTERRUPT__))
 Checks whether the specified SDMMC interrupt has occurred or not.
 
#define __SDMMC_CLEAR_IT(__INSTANCE__, __INTERRUPT__)   ((__INSTANCE__)->ICR = (__INTERRUPT__))
 Clears the SDMMC's interrupt pending bits.
 
#define __SDMMC_START_READWAIT_ENABLE(__INSTANCE__)   ((__INSTANCE__)->DCTRL |= SDMMC_DCTRL_RWSTART)
 Enable Start the SD I/O Read Wait operation.
 
#define __SDMMC_START_READWAIT_DISABLE(__INSTANCE__)   ((__INSTANCE__)->DCTRL &= ~SDMMC_DCTRL_RWSTART)
 Disable Start the SD I/O Read Wait operations.
 
#define __SDMMC_STOP_READWAIT_ENABLE(__INSTANCE__)   ((__INSTANCE__)->DCTRL |= SDMMC_DCTRL_RWSTOP)
 Enable Start the SD I/O Read Wait operation.
 
#define __SDMMC_STOP_READWAIT_DISABLE(__INSTANCE__)   ((__INSTANCE__)->DCTRL &= ~SDMMC_DCTRL_RWSTOP)
 Disable Stop the SD I/O Read Wait operations.
 
#define __SDMMC_OPERATION_ENABLE(__INSTANCE__)   ((__INSTANCE__)->DCTRL |= SDMMC_DCTRL_SDIOEN)
 Enable the SD I/O Mode Operation.
 
#define __SDMMC_OPERATION_DISABLE(__INSTANCE__)   ((__INSTANCE__)->DCTRL &= ~SDMMC_DCTRL_SDIOEN)
 Disable the SD I/O Mode Operation.
 
#define __SDMMC_SUSPEND_CMD_ENABLE(__INSTANCE__)   ((__INSTANCE__)->CMD |= SDMMC_CMD_CMDSUSPEND)
 Enable the SD I/O Suspend command sending.
 
#define __SDMMC_SUSPEND_CMD_DISABLE(__INSTANCE__)   ((__INSTANCE__)->CMD &= ~SDMMC_CMD_CMDSUSPEND)
 Disable the SD I/O Suspend command sending.
 
#define __SDMMC_CMDTRANS_ENABLE(__INSTANCE__)   ((__INSTANCE__)->CMD |= SDMMC_CMD_CMDTRANS)
 Enable the CMDTRANS mode.
 
#define __SDMMC_CMDTRANS_DISABLE(__INSTANCE__)   ((__INSTANCE__)->CMD &= ~SDMMC_CMD_CMDTRANS)
 Disable the CMDTRANS mode.
 
#define __SDMMC_CMDSTOP_ENABLE(__INSTANCE__)   ((__INSTANCE__)->CMD |= SDMMC_CMD_CMDSTOP)
 Enable the CMDSTOP mode.
 
#define __SDMMC_CMDSTOP_DISABLE(__INSTANCE__)   ((__INSTANCE__)->CMD &= ~SDMMC_CMD_CMDSTOP)
 Disable the CMDSTOP mode.
 

Detailed Description

macros to handle interrupts and specific clock configurations

Macro Definition Documentation

◆ __SDMMC_CLEAR_FLAG

#define __SDMMC_CLEAR_FLAG (   __INSTANCE__,
  __FLAG__ 
)    ((__INSTANCE__)->ICR = (__FLAG__))

Clears the SDMMC pending flags.

Parameters
__INSTANCE__Pointer to SDMMC register base
__FLAG__specifies the flag to clear. This parameter can be one or a combination of the following values:
  • SDMMC_FLAG_CCRCFAIL: Command response received (CRC check failed)
  • SDMMC_FLAG_DCRCFAIL: Data block sent/received (CRC check failed)
  • SDMMC_FLAG_CTIMEOUT: Command response timeout
  • SDMMC_FLAG_DTIMEOUT: Data timeout
  • SDMMC_FLAG_TXUNDERR: Transmit FIFO underrun error
  • SDMMC_FLAG_RXOVERR: Received FIFO overrun error
  • SDMMC_FLAG_CMDREND: Command response received (CRC check passed)
  • SDMMC_FLAG_CMDSENT: Command sent (no response required)
  • SDMMC_FLAG_DATAEND: Data end (data counter, DATACOUNT, is zero)
  • SDMMC_FLAG_DHOLD: Data transfer Hold
  • SDMMC_FLAG_DBCKEND: Data block sent/received (CRC check passed)
  • SDMMC_FLAG_DABORT: Data transfer aborted by CMD12
  • SDMMC_FLAG_BUSYD0END: End of SDMMC_D0 Busy following a CMD response detected
  • SDMMC_FLAG_SDIOIT: SDIO interrupt received
  • SDMMC_FLAG_ACKFAIL: Boot Acknowledgment received
  • SDMMC_FLAG_ACKTIMEOUT: Boot Acknowledgment timeout
  • SDMMC_FLAG_VSWEND: Voltage switch critical timing section completion
  • SDMMC_FLAG_CKSTOP: SDMMC_CK stopped in Voltage switch procedure
  • SDMMC_FLAG_IDMATE: IDMA transfer error
  • SDMMC_FLAG_IDMABTC: IDMA buffer transfer complete
Return values
None

◆ __SDMMC_CLEAR_IT

#define __SDMMC_CLEAR_IT (   __INSTANCE__,
  __INTERRUPT__ 
)    ((__INSTANCE__)->ICR = (__INTERRUPT__))

Clears the SDMMC's interrupt pending bits.

Parameters
__INSTANCE__Pointer to SDMMC register base
__INTERRUPT__specifies the interrupt pending bit to clear. This parameter can be one or a combination of the following values:
  • SDMMC_IT_CCRCFAIL: Command response received (CRC check failed) interrupt
  • SDMMC_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt
  • SDMMC_IT_CTIMEOUT: Command response timeout interrupt
  • SDMMC_IT_DTIMEOUT: Data timeout interrupt
  • SDMMC_IT_TXUNDERR: Transmit FIFO underrun error interrupt
  • SDMMC_IT_RXOVERR: Received FIFO overrun error interrupt
  • SDMMC_IT_CMDREND: Command response received (CRC check passed) interrupt
  • SDMMC_IT_CMDSENT: Command sent (no response required) interrupt
  • SDMMC_IT_DATAEND: Data end (data counter, DATACOUNT, is zero) interrupt
  • SDMMC_IT_DHOLD: Data transfer Hold interrupt
  • SDMMC_IT_DBCKEND: Data block sent/received (CRC check passed) interrupt
  • SDMMC_IT_DABORT: Data transfer aborted by CMD12 interrupt
  • SDMMC_IT_BUSYD0END: End of SDMMC_D0 Busy following a CMD response detected interrupt
  • SDMMC_IT_SDIOIT: SDIO interrupt received interrupt
  • SDMMC_IT_ACKFAIL: Boot Acknowledgment received interrupt
  • SDMMC_IT_ACKTIMEOUT: Boot Acknowledgment timeout interrupt
  • SDMMC_IT_VSWEND: Voltage switch critical timing section completion interrupt
  • SDMMC_IT_CKSTOP: SDMMC_CK stopped in Voltage switch procedure interrupt
  • SDMMC_IT_IDMABTC: IDMA buffer transfer complete interrupt
Return values
None

◆ __SDMMC_CMDSTOP_DISABLE

#define __SDMMC_CMDSTOP_DISABLE (   __INSTANCE__)    ((__INSTANCE__)->CMD &= ~SDMMC_CMD_CMDSTOP)

Disable the CMDSTOP mode.

Parameters
__INSTANCE__Pointer to SDMMC register base
Return values
None

◆ __SDMMC_CMDSTOP_ENABLE

#define __SDMMC_CMDSTOP_ENABLE (   __INSTANCE__)    ((__INSTANCE__)->CMD |= SDMMC_CMD_CMDSTOP)

Enable the CMDSTOP mode.

Parameters
__INSTANCE__Pointer to SDMMC register base
Return values
None

◆ __SDMMC_CMDTRANS_DISABLE

#define __SDMMC_CMDTRANS_DISABLE (   __INSTANCE__)    ((__INSTANCE__)->CMD &= ~SDMMC_CMD_CMDTRANS)

Disable the CMDTRANS mode.

Parameters
__INSTANCE__Pointer to SDMMC register base
Return values
None

◆ __SDMMC_CMDTRANS_ENABLE

#define __SDMMC_CMDTRANS_ENABLE (   __INSTANCE__)    ((__INSTANCE__)->CMD |= SDMMC_CMD_CMDTRANS)

Enable the CMDTRANS mode.

Parameters
__INSTANCE__Pointer to SDMMC register base
Return values
None

◆ __SDMMC_DISABLE_IT

#define __SDMMC_DISABLE_IT (   __INSTANCE__,
  __INTERRUPT__ 
)    ((__INSTANCE__)->MASK &= ~(__INTERRUPT__))

Disable the SDMMC device interrupt.

Parameters
__INSTANCE__Pointer to SDMMC register base
__INTERRUPT__specifies the SDMMC interrupt sources to be disabled. This parameter can be one or a combination of the following values:
  • SDMMC_IT_CCRCFAIL: Command response received (CRC check failed) interrupt
  • SDMMC_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt
  • SDMMC_IT_CTIMEOUT: Command response timeout interrupt
  • SDMMC_IT_DTIMEOUT: Data timeout interrupt
  • SDMMC_IT_TXUNDERR: Transmit FIFO underrun error interrupt
  • SDMMC_IT_RXOVERR: Received FIFO overrun error interrupt
  • SDMMC_IT_CMDREND: Command response received (CRC check passed) interrupt
  • SDMMC_IT_CMDSENT: Command sent (no response required) interrupt
  • SDMMC_IT_DATAEND: Data end (data counter, DATACOUNT, is zero) interrupt
  • SDMMC_IT_DHOLD: Data transfer Hold interrupt
  • SDMMC_IT_DBCKEND: Data block sent/received (CRC check passed) interrupt
  • SDMMC_IT_DABORT: Data transfer aborted by CMD12 interrupt
  • SDMMC_IT_TXFIFOHE: Transmit FIFO Half Empty interrupt
  • SDMMC_IT_RXFIFOHF: Receive FIFO Half Full interrupt
  • SDMMC_IT_RXFIFOF: Receive FIFO full interrupt
  • SDMMC_IT_TXFIFOE: Transmit FIFO empty interrupt
  • SDMMC_IT_BUSYD0END: End of SDMMC_D0 Busy following a CMD response detected interrupt
  • SDMMC_IT_SDIOIT: SDIO interrupt received interrupt
  • SDMMC_IT_ACKFAIL: Boot Acknowledgment received interrupt
  • SDMMC_IT_ACKTIMEOUT: Boot Acknowledgment timeout interrupt
  • SDMMC_IT_VSWEND: Voltage switch critical timing section completion interrupt
  • SDMMC_IT_CKSTOP: SDMMC_CK stopped in Voltage switch procedure interrupt
  • SDMMC_IT_IDMABTC: IDMA buffer transfer complete interrupt
Return values
None

◆ __SDMMC_ENABLE_IT

#define __SDMMC_ENABLE_IT (   __INSTANCE__,
  __INTERRUPT__ 
)    ((__INSTANCE__)->MASK |= (__INTERRUPT__))

Enable the SDMMC device interrupt.

Parameters
__INSTANCE__Pointer to SDMMC register base
__INTERRUPT__specifies the SDMMC interrupt sources to be enabled. This parameter can be one or a combination of the following values:
  • SDMMC_IT_CCRCFAIL: Command response received (CRC check failed) interrupt
  • SDMMC_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt
  • SDMMC_IT_CTIMEOUT: Command response timeout interrupt
  • SDMMC_IT_DTIMEOUT: Data timeout interrupt
  • SDMMC_IT_TXUNDERR: Transmit FIFO underrun error interrupt
  • SDMMC_IT_RXOVERR: Received FIFO overrun error interrupt
  • SDMMC_IT_CMDREND: Command response received (CRC check passed) interrupt
  • SDMMC_IT_CMDSENT: Command sent (no response required) interrupt
  • SDMMC_IT_DATAEND: Data end (data counter, DATACOUNT, is zero) interrupt
  • SDMMC_IT_DHOLD: Data transfer Hold interrupt
  • SDMMC_IT_DBCKEND: Data block sent/received (CRC check passed) interrupt
  • SDMMC_IT_DABORT: Data transfer aborted by CMD12 interrupt
  • SDMMC_IT_TXFIFOHE: Transmit FIFO Half Empty interrupt
  • SDMMC_IT_RXFIFOHF: Receive FIFO Half Full interrupt
  • SDMMC_IT_RXFIFOF: Receive FIFO full interrupt
  • SDMMC_IT_TXFIFOE: Transmit FIFO empty interrupt
  • SDMMC_IT_BUSYD0END: End of SDMMC_D0 Busy following a CMD response detected interrupt
  • SDMMC_IT_SDIOIT: SDIO interrupt received interrupt
  • SDMMC_IT_ACKFAIL: Boot Acknowledgment received interrupt
  • SDMMC_IT_ACKTIMEOUT: Boot Acknowledgment timeout interrupt
  • SDMMC_IT_VSWEND: Voltage switch critical timing section completion interrupt
  • SDMMC_IT_CKSTOP: SDMMC_CK stopped in Voltage switch procedure interrupt
  • SDMMC_IT_IDMABTC: IDMA buffer transfer complete interrupt
Return values
None

◆ __SDMMC_GET_FLAG

#define __SDMMC_GET_FLAG (   __INSTANCE__,
  __FLAG__ 
)    (((__INSTANCE__)->STA &(__FLAG__)) != 0U)

Checks whether the specified SDMMC flag is set or not.

Parameters
__INSTANCE__Pointer to SDMMC register base
__FLAG__specifies the flag to check. This parameter can be one of the following values:
  • SDMMC_FLAG_CCRCFAIL: Command response received (CRC check failed)
  • SDMMC_FLAG_DCRCFAIL: Data block sent/received (CRC check failed)
  • SDMMC_FLAG_CTIMEOUT: Command response timeout
  • SDMMC_FLAG_DTIMEOUT: Data timeout
  • SDMMC_FLAG_TXUNDERR: Transmit FIFO underrun error
  • SDMMC_FLAG_RXOVERR: Received FIFO overrun error
  • SDMMC_FLAG_CMDREND: Command response received (CRC check passed)
  • SDMMC_FLAG_CMDSENT: Command sent (no response required)
  • SDMMC_FLAG_DATAEND: Data end (data counter, DATACOUNT, is zero)
  • SDMMC_FLAG_DHOLD: Data transfer Hold
  • SDMMC_FLAG_DBCKEND: Data block sent/received (CRC check passed)
  • SDMMC_FLAG_DABORT: Data transfer aborted by CMD12
  • SDMMC_FLAG_DPSMACT: Data path state machine active
  • SDMMC_FLAG_CPSMACT: Command path state machine active
  • SDMMC_FLAG_TXFIFOHE: Transmit FIFO Half Empty
  • SDMMC_FLAG_RXFIFOHF: Receive FIFO Half Full
  • SDMMC_FLAG_TXFIFOF: Transmit FIFO full
  • SDMMC_FLAG_RXFIFOF: Receive FIFO full
  • SDMMC_FLAG_TXFIFOE: Transmit FIFO empty
  • SDMMC_FLAG_RXFIFOE: Receive FIFO empty
  • SDMMC_FLAG_BUSYD0: Inverted value of SDMMC_D0 line (Busy)
  • SDMMC_FLAG_BUSYD0END: End of SDMMC_D0 Busy following a CMD response detected
  • SDMMC_FLAG_SDIOIT: SDIO interrupt received
  • SDMMC_FLAG_ACKFAIL: Boot Acknowledgment received
  • SDMMC_FLAG_ACKTIMEOUT: Boot Acknowledgment timeout
  • SDMMC_FLAG_VSWEND: Voltage switch critical timing section completion
  • SDMMC_FLAG_CKSTOP: SDMMC_CK stopped in Voltage switch procedure
  • SDMMC_FLAG_IDMATE: IDMA transfer error
  • SDMMC_FLAG_IDMABTC: IDMA buffer transfer complete
Return values
Thenew state of SDMMC_FLAG (SET or RESET).

◆ __SDMMC_GET_IT

#define __SDMMC_GET_IT (   __INSTANCE__,
  __INTERRUPT__ 
)    (((__INSTANCE__)->STA &(__INTERRUPT__)) == (__INTERRUPT__))

Checks whether the specified SDMMC interrupt has occurred or not.

Parameters
__INSTANCE__Pointer to SDMMC register base
__INTERRUPT__specifies the SDMMC interrupt source to check. This parameter can be one of the following values:
  • SDMMC_IT_CCRCFAIL: Command response received (CRC check failed) interrupt
  • SDMMC_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt
  • SDMMC_IT_CTIMEOUT: Command response timeout interrupt
  • SDMMC_IT_DTIMEOUT: Data timeout interrupt
  • SDMMC_IT_TXUNDERR: Transmit FIFO underrun error interrupt
  • SDMMC_IT_RXOVERR: Received FIFO overrun error interrupt
  • SDMMC_IT_CMDREND: Command response received (CRC check passed) interrupt
  • SDMMC_IT_CMDSENT: Command sent (no response required) interrupt
  • SDMMC_IT_DATAEND: Data end (data counter, DATACOUNT, is zero) interrupt
  • SDMMC_IT_DHOLD: Data transfer Hold interrupt
  • SDMMC_IT_DBCKEND: Data block sent/received (CRC check passed) interrupt
  • SDMMC_IT_DABORT: Data transfer aborted by CMD12 interrupt
  • SDMMC_IT_TXFIFOHE: Transmit FIFO Half Empty interrupt
  • SDMMC_IT_RXFIFOHF: Receive FIFO Half Full interrupt
  • SDMMC_IT_RXFIFOF: Receive FIFO full interrupt
  • SDMMC_IT_TXFIFOE: Transmit FIFO empty interrupt
  • SDMMC_IT_BUSYD0END: End of SDMMC_D0 Busy following a CMD response detected interrupt
  • SDMMC_IT_SDIOIT: SDIO interrupt received interrupt
  • SDMMC_IT_ACKFAIL: Boot Acknowledgment received interrupt
  • SDMMC_IT_ACKTIMEOUT: Boot Acknowledgment timeout interrupt
  • SDMMC_IT_VSWEND: Voltage switch critical timing section completion interrupt
  • SDMMC_IT_CKSTOP: SDMMC_CK stopped in Voltage switch procedure interrupt
  • SDMMC_IT_IDMABTC: IDMA buffer transfer complete interrupt
Return values
Thenew state of SDMMC_IT (SET or RESET).

◆ __SDMMC_OPERATION_DISABLE

#define __SDMMC_OPERATION_DISABLE (   __INSTANCE__)    ((__INSTANCE__)->DCTRL &= ~SDMMC_DCTRL_SDIOEN)

Disable the SD I/O Mode Operation.

Parameters
__INSTANCE__Pointer to SDMMC register base
Return values
None

◆ __SDMMC_OPERATION_ENABLE

#define __SDMMC_OPERATION_ENABLE (   __INSTANCE__)    ((__INSTANCE__)->DCTRL |= SDMMC_DCTRL_SDIOEN)

Enable the SD I/O Mode Operation.

Parameters
__INSTANCE__Pointer to SDMMC register base
Return values
None

◆ __SDMMC_START_READWAIT_DISABLE

#define __SDMMC_START_READWAIT_DISABLE (   __INSTANCE__)    ((__INSTANCE__)->DCTRL &= ~SDMMC_DCTRL_RWSTART)

Disable Start the SD I/O Read Wait operations.

Parameters
__INSTANCE__Pointer to SDMMC register base
Return values
None

◆ __SDMMC_START_READWAIT_ENABLE

#define __SDMMC_START_READWAIT_ENABLE (   __INSTANCE__)    ((__INSTANCE__)->DCTRL |= SDMMC_DCTRL_RWSTART)

Enable Start the SD I/O Read Wait operation.

Parameters
__INSTANCE__Pointer to SDMMC register base
Return values
None

◆ __SDMMC_STOP_READWAIT_DISABLE

#define __SDMMC_STOP_READWAIT_DISABLE (   __INSTANCE__)    ((__INSTANCE__)->DCTRL &= ~SDMMC_DCTRL_RWSTOP)

Disable Stop the SD I/O Read Wait operations.

Parameters
__INSTANCE__Pointer to SDMMC register base
Return values
None

◆ __SDMMC_STOP_READWAIT_ENABLE

#define __SDMMC_STOP_READWAIT_ENABLE (   __INSTANCE__)    ((__INSTANCE__)->DCTRL |= SDMMC_DCTRL_RWSTOP)

Enable Start the SD I/O Read Wait operation.

Parameters
__INSTANCE__Pointer to SDMMC register base
Return values
None

◆ __SDMMC_SUSPEND_CMD_DISABLE

#define __SDMMC_SUSPEND_CMD_DISABLE (   __INSTANCE__)    ((__INSTANCE__)->CMD &= ~SDMMC_CMD_CMDSUSPEND)

Disable the SD I/O Suspend command sending.

Parameters
__INSTANCE__Pointer to SDMMC register base
Return values
None

◆ __SDMMC_SUSPEND_CMD_ENABLE

#define __SDMMC_SUSPEND_CMD_ENABLE (   __INSTANCE__)    ((__INSTANCE__)->CMD |= SDMMC_CMD_CMDSUSPEND)

Enable the SD I/O Suspend command sending.

Parameters
__INSTANCE__Pointer to SDMMC register base
Return values
None