![]() |
SyterKit 0.4.0.x
SyterKit is a bare-metal framework
|
#include <barrier.h>#include <io.h>#include <stdarg.h>#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <types.h>#include <log.h>#include <timer.h>#include <sys-clk.h>#include <sys-gpio.h>#include "sys-sdcard.h"#include "sys-sdhci.h"
Macros | |
| #define | FALSE 0 |
| #define | TRUE 1 |
Functions | |
| static void | set_read_timeout (sdhci_t *sdhci, uint32_t timeout) |
| static int | prepare_dma (sdhci_t *sdhci, sdhci_data_t *data) |
| static int | wait_done (sdhci_t *sdhci, sdhci_data_t *dat, uint32_t timeout_msecs, uint32_t flag, bool dma) |
| static bool | read_bytes (sdhci_t *sdhci, sdhci_data_t *dat) |
| static bool | write_bytes (sdhci_t *sdhci, sdhci_data_t *dat) |
| bool | sdhci_transfer (sdhci_t *sdhci, sdhci_cmd_t *cmd, sdhci_data_t *dat) |
| Perform a data transfer operation with the SD card controller. | |
| bool | sdhci_reset (sdhci_t *sdhci) |
| Reset the SD card controller. | |
| bool | sdhci_set_width (sdhci_t *sdhci, uint32_t width) |
| Set the data bus width for the SD card controller. | |
| static int | init_default_timing (sdhci_t *sdhci) |
| static int | config_delay (sdhci_t *sdhci) |
| static bool | update_card_clock (sdhci_t *sdhci) |
| bool | sdhci_set_clock (sdhci_t *sdhci, smhc_clk_t clock) |
| Set the clock frequency for the SD card controller. | |
| int | sunxi_sdhci_init (sdhci_t *sdhci) |
| Initialize the SD card controller for Sunxi platform. | |
| #define FALSE 0 |
| #define TRUE 1 |
|
static |
|
static |
|
static |
|
static |
Reset the SD card controller.
| hci | A pointer to the SD card controller structure. |
| bool sdhci_set_clock | ( | sdhci_t * | hci, |
| smhc_clk_t | hz | ||
| ) |
Set the clock frequency for the SD card controller.
| hci | A pointer to the SD card controller structure. |
| hz | The clock frequency value to be set. |
Set the data bus width for the SD card controller.
| hci | A pointer to the SD card controller structure. |
| width | The data bus width value to be set. |
| bool sdhci_transfer | ( | sdhci_t * | hci, |
| sdhci_cmd_t * | cmd, | ||
| sdhci_data_t * | dat | ||
| ) |
Perform a data transfer operation with the SD card controller.
| hci | A pointer to the SD card controller structure. |
| cmd | Pointer to the SD command structure. |
| dat | Pointer to the SD data structure. |
| int sunxi_sdhci_init | ( | sdhci_t * | sdhci | ) |
Initialize the SD card controller for Sunxi platform.
| sdhci | A pointer to the SD card controller structure. |
|
static |
|
static |