| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
sdmmc.c File Reference
`#include <string.h>`
`#include "board.h"`
`#include "chip.h"`
`#include "ff.h"`

Go to the source code of this file.

## Macros
#define | debugstr(str) DEBUGOUT(str)
#define | BUFFER_SIZE 4096

## Functions
STATIC void | waitMs (uint32_t time)
STATIC void | setupEvWakeup (void *pEvent)
| Sets up the event driven wakeup.
STATIC uint32_t | waitEvIRQDriven (void)
| A better wait callback for SDMMC driven by the IRQ flag.
STATIC void | initAppTimer (void)
STATIC void | initAppSDMMC ()
void | die (FRESULT rc)
| Error processing function: stop with dying message.
void | SysTick_Handler (void)
| System tick interrupt handler.
void | SDIO_IRQHandler (void)
| SDC interrupt handler sub-routine.
int | main (void)
| Main routine for SDMMC example.

## Variables
STATIC FATFS | fatFS
STATIC FIL | fileObj
STATIC INT | buffer [BUFFER_SIZE/4]
STATIC volatile int32_t | sdcWaitExit = 0
STATIC SDMMC_EVENT_T * | event
STATIC volatile Status | eventResult = ERROR
SDMMC_CARD_T | sdCardInfo
volatile uint32_t | timerCntms = 0