Example description
This example describes how to use the SD/MMC interface with a SD card and a FATFS filesystem.
To use the example, plug a SD card, connect a serial cable to the board's RS232/UART port and start a terminal program to monitor the port. The terminal program on the host PC should be setup for 115K8N1.
Special connection requirements
There are no special connection requirements for this example.
Build procedures:
LPC17xx/40xx example quickstart for Keil uVision4
LPC17xx/40xx example quickstart for IAR EWARM
LPC17xx/40xx example quickstart for Code Red Xpresso
Supported boards and board setup:
Embedded Artists' LPC1788 Developer's Kit
Embedded Artists' LPC4088 Developer's Kit
Submitting LPCOpen issues:
Community support for LPCOpen
Error processing function: stop with dying message.
- Parameters
-
- Returns
- Nothing
Definition at line 164 of file sdmmc.c.
| STATIC void initAppTimer |
( |
void |
| ) |
|
Main routine for SDMMC example.
Main program body.
- Returns
- Nothing
Definition at line 230 of file sdmmc.c.
| void SDIO_IRQHandler |
( |
void |
| ) |
|
SDC interrupt handler sub-routine.
- Returns
- Nothing
Definition at line 196 of file sdmmc.c.
| STATIC void setupEvWakeup |
( |
void * |
pEvent | ) |
|
Sets up the event driven wakeup.
- Parameters
-
| pEvent | : Event information |
- Returns
- Nothing
Definition at line 106 of file sdmmc.c.
| void SysTick_Handler |
( |
void |
| ) |
|
System tick interrupt handler.
SysTick 1mS tick handler.
- Returns
- Nothing
Definition at line 174 of file sdmmc.c.
A better wait callback for SDMMC driven by the IRQ flag.
- Returns
- 0 on success, or failure condition (Nonzero)
Definition at line 124 of file sdmmc.c.
Type used for SD Card handle
Definition at line 85 of file sdmmc.c.
| STATIC volatile int32_t sdcWaitExit = 0 |