USB composite device example program, drag-and-drop flash writer.
Dependencies: SWD USBDevice mbed BaseDAP
Diff: tests/test_RomDisk.cpp
- Revision:
- 0:2385683c867a
- Child:
- 1:ea8e179320d7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test_RomDisk.cpp Tue Sep 17 04:33:44 2013 +0000 @@ -0,0 +1,29 @@ +#if 0 +#include "mbed.h" +#include "USBMSD_LPC.h" + +#include "mytest.h" +#include "mydebug.h" + +Serial pc(USBTX, USBRX); + +TEST(RomDisk1,test1) { +#ifdef TARGET_LPC1768 + USBMSD_LPC* LPC1114 = new USBMSD_LPC(p21,p22,p17,&pc); // SWDIO(dp12),SWCLK(dp3),nReset(dp23) +#endif +#ifdef TARGET_KL25Z + USBMSD_LPC* LPC1114 = new USBMSD_LPC(PTB8,PTB9,PTB10,&pc); // SWDIO(dp12),SWCLK(dp3),nReset(dp23) +#endif + + while(1); // forever +} + +int main() { + pc.baud(921600); + //pc.baud(9600); + DBG("%s", __FILE__); + + RUN_ALL_TESTS(); + exit(0); +} +#endif