![]() |
RTEMS 6.1
|
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. | |
macros to handle interrupts and specific clock configurations
| #define __SDMMC_CLEAR_FLAG | ( | __INSTANCE__, | |
| __FLAG__ | |||
| ) | ((__INSTANCE__)->ICR = (__FLAG__)) |
Clears the SDMMC pending flags.
| __INSTANCE__ | Pointer to SDMMC register base |
| __FLAG__ | specifies the flag to clear. This parameter can be one or a combination of the following values:
|
| None |
| #define __SDMMC_CLEAR_IT | ( | __INSTANCE__, | |
| __INTERRUPT__ | |||
| ) | ((__INSTANCE__)->ICR = (__INTERRUPT__)) |
Clears the SDMMC's interrupt pending bits.
| __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:
|
| None |
| #define __SDMMC_CMDSTOP_DISABLE | ( | __INSTANCE__ | ) | ((__INSTANCE__)->CMD &= ~SDMMC_CMD_CMDSTOP) |
Disable the CMDSTOP mode.
| __INSTANCE__ | Pointer to SDMMC register base |
| None |
| #define __SDMMC_CMDSTOP_ENABLE | ( | __INSTANCE__ | ) | ((__INSTANCE__)->CMD |= SDMMC_CMD_CMDSTOP) |
Enable the CMDSTOP mode.
| __INSTANCE__ | Pointer to SDMMC register base |
| None |
| #define __SDMMC_CMDTRANS_DISABLE | ( | __INSTANCE__ | ) | ((__INSTANCE__)->CMD &= ~SDMMC_CMD_CMDTRANS) |
Disable the CMDTRANS mode.
| __INSTANCE__ | Pointer to SDMMC register base |
| None |
| #define __SDMMC_CMDTRANS_ENABLE | ( | __INSTANCE__ | ) | ((__INSTANCE__)->CMD |= SDMMC_CMD_CMDTRANS) |
Enable the CMDTRANS mode.
| __INSTANCE__ | Pointer to SDMMC register base |
| None |
| #define __SDMMC_DISABLE_IT | ( | __INSTANCE__, | |
| __INTERRUPT__ | |||
| ) | ((__INSTANCE__)->MASK &= ~(__INTERRUPT__)) |
Disable the SDMMC device interrupt.
| __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:
|
| None |
| #define __SDMMC_ENABLE_IT | ( | __INSTANCE__, | |
| __INTERRUPT__ | |||
| ) | ((__INSTANCE__)->MASK |= (__INTERRUPT__)) |
Enable the SDMMC device interrupt.
| __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:
|
| None |
| #define __SDMMC_GET_FLAG | ( | __INSTANCE__, | |
| __FLAG__ | |||
| ) | (((__INSTANCE__)->STA &(__FLAG__)) != 0U) |
Checks whether the specified SDMMC flag is set or not.
| __INSTANCE__ | Pointer to SDMMC register base |
| __FLAG__ | specifies the flag to check. This parameter can be one of the following values:
|
| The | new state of SDMMC_FLAG (SET or RESET). |
| #define __SDMMC_GET_IT | ( | __INSTANCE__, | |
| __INTERRUPT__ | |||
| ) | (((__INSTANCE__)->STA &(__INTERRUPT__)) == (__INTERRUPT__)) |
Checks whether the specified SDMMC interrupt has occurred or not.
| __INSTANCE__ | Pointer to SDMMC register base |
| __INTERRUPT__ | specifies the SDMMC interrupt source to check. This parameter can be one of the following values:
|
| The | new state of SDMMC_IT (SET or RESET). |
| #define __SDMMC_OPERATION_DISABLE | ( | __INSTANCE__ | ) | ((__INSTANCE__)->DCTRL &= ~SDMMC_DCTRL_SDIOEN) |
Disable the SD I/O Mode Operation.
| __INSTANCE__ | Pointer to SDMMC register base |
| None |
| #define __SDMMC_OPERATION_ENABLE | ( | __INSTANCE__ | ) | ((__INSTANCE__)->DCTRL |= SDMMC_DCTRL_SDIOEN) |
Enable the SD I/O Mode Operation.
| __INSTANCE__ | Pointer to SDMMC register base |
| None |
| #define __SDMMC_START_READWAIT_DISABLE | ( | __INSTANCE__ | ) | ((__INSTANCE__)->DCTRL &= ~SDMMC_DCTRL_RWSTART) |
Disable Start the SD I/O Read Wait operations.
| __INSTANCE__ | Pointer to SDMMC register base |
| None |
| #define __SDMMC_START_READWAIT_ENABLE | ( | __INSTANCE__ | ) | ((__INSTANCE__)->DCTRL |= SDMMC_DCTRL_RWSTART) |
Enable Start the SD I/O Read Wait operation.
| __INSTANCE__ | Pointer to SDMMC register base |
| None |
| #define __SDMMC_STOP_READWAIT_DISABLE | ( | __INSTANCE__ | ) | ((__INSTANCE__)->DCTRL &= ~SDMMC_DCTRL_RWSTOP) |
Disable Stop the SD I/O Read Wait operations.
| __INSTANCE__ | Pointer to SDMMC register base |
| None |
| #define __SDMMC_STOP_READWAIT_ENABLE | ( | __INSTANCE__ | ) | ((__INSTANCE__)->DCTRL |= SDMMC_DCTRL_RWSTOP) |
Enable Start the SD I/O Read Wait operation.
| __INSTANCE__ | Pointer to SDMMC register base |
| None |
| #define __SDMMC_SUSPEND_CMD_DISABLE | ( | __INSTANCE__ | ) | ((__INSTANCE__)->CMD &= ~SDMMC_CMD_CMDSUSPEND) |
Disable the SD I/O Suspend command sending.
| __INSTANCE__ | Pointer to SDMMC register base |
| None |
| #define __SDMMC_SUSPEND_CMD_ENABLE | ( | __INSTANCE__ | ) | ((__INSTANCE__)->CMD |= SDMMC_CMD_CMDSUSPEND) |
Enable the SD I/O Suspend command sending.
| __INSTANCE__ | Pointer to SDMMC register base |
| None |