cueOS  2.4
cueOS - Universal Show Control OS for ARM
mmc_driver.c
1/*
2 * mmc_driver.c
3 *
4 * Created on: 31 Jan 2020
5 * Author: root
6 */
7
8#include "mmc_driver.h"
9
15SD_HandleTypeDef hsd;
16DMA_HandleTypeDef hdma_sdio_rx;
17DMA_HandleTypeDef hdma_sdio_tx;
18
23void mmc_init(void){
24 hsd.Instance = SDIO;
25 hsd.Init.ClockEdge = SDIO_CLOCK_EDGE_RISING;
26 hsd.Init.ClockBypass = SDIO_CLOCK_BYPASS_DISABLE;
27 hsd.Init.ClockPowerSave = SDIO_CLOCK_POWER_SAVE_DISABLE;
28 hsd.Init.BusWide = SDIO_BUS_WIDE_1B;
29 hsd.Init.HardwareFlowControl = SDIO_HARDWARE_FLOW_CONTROL_DISABLE;
30 hsd.Init.ClockDiv = SDIO_TRANSFER_CLK_DIV;
31}
SD_HandleTypeDef hsd
Definition: mmc_driver.c:15