![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
#include "board.h"
#include "chip.h"
#include "fatfs\diskio.h"
#include "fatfs\rtc.h"
#include "fs_mci.h"
#include "fatfs\ff.h"
#include <string.h>
Go to the source code of this file.
Macros | |
#define | xstrlen(x) strlen(x) |
#define | xstrcpy(x, y) strcpy(x, y) |
#define | xmemset(x, y, z) memset(x, y, z) |
#define | xstrchr(x, y) strchr(x, y) |
#define | debugstr(str) DEBUGSTR(str) |
#define | BUFFER_SIZE 4096 |
#define | TIME_INTERVAL 1/* 1ms */ |
Functions | |
static void | sdmmc_waitms (uint32_t time) |
static void | sdmmc_setup_wakeup (uint32_t bits) |
Sets up the SD event driven wakeup. | |
static uint32_t | sdmmc_irq_driven_wait (void) |
A better wait callback for SDMMC driven by the IRQ flag. | |
static void | App_Timer_Init (void) |
static void | App_SDMMC_Init () |
void | die (FRESULT rc) |
Error processing function: stop with dying message. | |
void | SysTick_Handler (void) |
System tick interrupt handler. | |
void | SDIO_IRQHandler (void) |
SDIO controller interrupt handler. | |
void | RIT_IRQHandler (void) |
RIT interrupt handler sub-routine. | |
DWORD | get_fattime () |
User Provided Timer Function for FatFs module. | |
int | main (void) |
Main routine for SDMMC example. | |
Variables | |
static FATFS | Fatfs |
static FIL | Fil |
static volatile UINT | Timer = 0 |
static volatile int32_t | sdio_wait_exit = 0 |
static volatile uint32_t | u32Milliseconds |
static volatile uint32_t | timerCntms = 0 |
mci_card_struct | sdcardinfo |