SD card reader as an USB mass storage device

Dependencies:   USBDevice USBMSD_SD mbed

Fork of USBMSD_SD_HelloWorld_FRDM-KL25Z by Samuel Mokrani

main.cpp

Committer:
icserny
Date:
2016-05-26
Revision:
1:99b14f22f15b
Parent:
0:44b579c983e0

File content as of revision 1:99b14f22f15b:

/* USBMSD_SD
 *
 * This is a fork of the USBMSD_SD_HelloWorld_FRDM-KL25Z program of Samuel Mokrani
 * Link: https://developer.mbed.org/users/samux/code/USBMSD_SD_HelloWorld_FRDM-KL25Z
 *
 * The program implements an SD card reader which acts as an USB mass storage device.
 *
 * Hardware requirements:
 *  - FRDM-KL25Z board
 *  - SD card in a socket connected to the SPI port of the FRDM board
 *  - USB FRDM socket should be connected to a PC (or to other USB host)
 */
 

#include "mbed.h"
#include "USBMSD_SD.h"
//USBMSD_SD(PinName mosi, PinName miso, PinName sclk, PinName cs); 
USBMSD_SD sd(PTD2, PTD3, PTD1, PTD0);
 
int main() {
    while(1);
}