
SD card reader as an USB mass storage device
Dependencies: USBDevice USBMSD_SD mbed
Fork of USBMSD_SD_HelloWorld_FRDM-KL25Z by
main.cpp
00001 /* USBMSD_SD 00002 * 00003 * This is a fork of the USBMSD_SD_HelloWorld_FRDM-KL25Z program of Samuel Mokrani 00004 * Link: https://developer.mbed.org/users/samux/code/USBMSD_SD_HelloWorld_FRDM-KL25Z 00005 * 00006 * The program implements an SD card reader which acts as an USB mass storage device. 00007 * 00008 * Hardware requirements: 00009 * - FRDM-KL25Z board 00010 * - SD card in a socket connected to the SPI port of the FRDM board 00011 * - USB FRDM socket should be connected to a PC (or to other USB host) 00012 */ 00013 00014 00015 #include "mbed.h" 00016 #include "USBMSD_SD.h" 00017 //USBMSD_SD(PinName mosi, PinName miso, PinName sclk, PinName cs); 00018 USBMSD_SD sd(PTD2, PTD3, PTD1, PTD0); 00019 00020 int main() { 00021 while(1); 00022 }
Generated on Wed Feb 6 2019 06:25:29 by
