USB composite device example program, drag-and-drop flash writer.

Dependencies:   SWD USBDevice mbed BaseDAP

Committer:
va009039
Date:
Tue Sep 17 04:33:44 2013 +0000
Revision:
0:2385683c867a
Child:
1:ea8e179320d7
first commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
va009039 0:2385683c867a 1 #if 1
va009039 0:2385683c867a 2 #include "mbed.h"
va009039 0:2385683c867a 3 #include "USBMSD_LPC.h"
va009039 0:2385683c867a 4
va009039 0:2385683c867a 5 Serial pc(USBTX, USBRX);
va009039 0:2385683c867a 6
va009039 0:2385683c867a 7 int main() {
va009039 0:2385683c867a 8
va009039 0:2385683c867a 9 #ifdef TARGET_KL25Z
va009039 0:2385683c867a 10 USBMSD_LPC* LPC1114 = new USBMSD_LPC(PTB8,PTB9,PTB10,&pc); // SWDIO(dp12),SWCLK(dp3),nReset(dp23)
va009039 0:2385683c867a 11 #endif
va009039 0:2385683c867a 12
va009039 0:2385683c867a 13 #ifdef TARGET_LPC1768
va009039 0:2385683c867a 14 USBMSD_LPC* LPC1114 = new USBMSD_LPC(p21,p22,p17,&pc); // SWDIO(dp12),SWCLK(dp3),nReset(dp23)
va009039 0:2385683c867a 15 #endif
va009039 0:2385683c867a 16
va009039 0:2385683c867a 17 while(1); // forever
va009039 0:2385683c867a 18 }
va009039 0:2385683c867a 19 #endif