CARME-M4 BSP
V1.5
|
#include "stm32f4xx.h"
Go to the source code of this file.
Macros | |
#define | SD_DETECT_USE 1 |
#define | SD_DETECT_PIN GPIO_Pin_11 |
#define | SD_DETECT_GPIO_PORT GPIOI |
#define | SD_DETECT_GPIO_CLK RCC_AHB1Periph_GPIOI |
#define | SDIO_FIFO_ADDRESS ((uint32_t)0x40012C80) |
#define | SDIO_INIT_CLK_DIV ((uint8_t)0x76) |
SDIO Intialization Frequency (400KHz max) | |
#define | SDIO_TRANSFER_CLK_DIV ((uint8_t)0x0) |
SDIO Data Transfer Frequency (25MHz max) | |
#define | SD_SDIO_DMA DMA2 |
#define | SD_SDIO_DMA_CLK RCC_AHB1Periph_DMA2 |
#define | SD_SDIO_DMA_STREAM3 3 |
#define | SD_SDIO_DMA_STREAM DMA2_Stream3 |
#define | SD_SDIO_DMA_CHANNEL DMA_Channel_4 |
#define | SD_SDIO_DMA_FLAG_FEIF DMA_FLAG_FEIF3 |
#define | SD_SDIO_DMA_FLAG_DMEIF DMA_FLAG_DMEIF3 |
#define | SD_SDIO_DMA_FLAG_TEIF DMA_FLAG_TEIF3 |
#define | SD_SDIO_DMA_FLAG_HTIF DMA_FLAG_HTIF3 |
#define | SD_SDIO_DMA_FLAG_TCIF DMA_FLAG_TCIF3 |
#define | SD_SDIO_DMA_IRQn DMA2_Stream3_IRQn |
#define | SD_SDIO_DMA_IRQHANDLER DMA2_Stream3_IRQHandler |
Functions | |
void | SD_LowLevel_DeInit (void) |
DeInitializes the SDIO interface. Disable SDIO Clock, Set Power State to OFF, DeInitializes the SDIO peripheral, Disable the SDIO APB2 Clock. | |
void | SD_LowLevel_Init (void) |
Initializes the SD Card and put it into StandBy State (Ready for data transfer). | |
void | SD_LowLevel_DMA_TxConfig (uint32_t *BufferSRC, uint32_t BufferSize) |
Configures the DMA2 Channel4 for SDIO Tx request. More... | |
void | SD_LowLevel_DMA_RxConfig (uint32_t *BufferDST, uint32_t BufferSize) |
Configures the DMA2 Channel4 for SDIO Rx request. More... | |