Functions | |
| void | hal_sdhci_reset (SDHCI_HandleTypeDef *handle, uint8_t mask) |
| reset SDHCI . More... | |
| void | hal_sdhci_init (SDHCI_HandleTypeDef *handle, int soft) |
| initial sd hardware . More... | |
| void | hal_sdhci_reinit (SDHCI_HandleTypeDef *handle) |
| reinitial sd with command and data . More... | |
| int | hal_sdhci_command_finish (SDHCI_HandleTypeDef *handle, uint32_t timeout) |
| Wait command finish or error . More... | |
| int | hal_sdhci_data_finish (SDHCI_HandleTypeDef *handle, uint32_t timeout) |
| Wait data transfer finish or error . More... | |
| uint32_t | hal_sdhci_read_fifo (SDHCI_HandleTypeDef *handle) |
| Read SD data in fifo. More... | |
| void | hal_sdhci_write_fifo (SDHCI_HandleTypeDef *handle, uint32_t value) |
| Write data to SD fifo. More... | |
| void | HAL_SDHCI_MspInit (SDHCI_HandleTypeDef *handle) |
| Initial SD msp. More... | |
| int hal_sdhci_command_finish | ( | SDHCI_HandleTypeDef * | handle, |
| uint32_t | timeout | ||
| ) |
Wait command finish or error .
| handle | SDHCI handle. |
| timeout | wait time out in ms. |
| irq | value, -1 if fail |
| int hal_sdhci_data_finish | ( | SDHCI_HandleTypeDef * | handle, |
| uint32_t | timeout | ||
| ) |
Wait data transfer finish or error .
| handle | SDHCI handle. |
| timeout | wait time out in ms. |
| irq | value, -1 if fail |
| void hal_sdhci_init | ( | SDHCI_HandleTypeDef * | handle, |
| int | soft | ||
| ) |
initial sd hardware .
| handle | SDHCI handle. |
| soft | just reset command and data. |
| none |
| void HAL_SDHCI_MspInit | ( | SDHCI_HandleTypeDef * | handle | ) |
Initial SD msp.
| handle | SDHCI handle. |
| none. |
| uint32_t hal_sdhci_read_fifo | ( | SDHCI_HandleTypeDef * | handle | ) |
Read SD data in fifo.
| handle | SDHCI handle. |
| data | in fifo |
| void hal_sdhci_reinit | ( | SDHCI_HandleTypeDef * | handle | ) |
reinitial sd with command and data .
| handle | SDHCI handle. |
| none |
| void hal_sdhci_reset | ( | SDHCI_HandleTypeDef * | handle, |
| uint8_t | mask | ||
| ) |
reset SDHCI .
| handle | SDHCI handle. |
| mask | mask bit. |
| none |
| void hal_sdhci_write_fifo | ( | SDHCI_HandleTypeDef * | handle, |
| uint32_t | value | ||
| ) |
Write data to SD fifo.
| handle | SDHCI handle. |
| value | data with 32 bits. |
| none |