USB Device ROM Stack API example program

Dependencies:   mbed

LPC1549のROM APIを使ったRAMディスクです。PCからはUSBメモリとして見えます。

参考:
http://docs.lpcware.com/usbromlib/v1.0/

Committer:
va009039
Date:
Fri Mar 14 09:14:16 2014 +0000
Revision:
0:ef2c0c52abc4
first commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
va009039 0:ef2c0c52abc4 1 #if defined(TARGET_LPC1549)
va009039 0:ef2c0c52abc4 2 #include "mbed.h"
va009039 0:ef2c0c52abc4 3 #include <rl_usb.h>
va009039 0:ef2c0c52abc4 4
va009039 0:ef2c0c52abc4 5 DigitalOut led1(LED1);
va009039 0:ef2c0c52abc4 6
va009039 0:ef2c0c52abc4 7 int main() {
va009039 0:ef2c0c52abc4 8 usbd_init();
va009039 0:ef2c0c52abc4 9 usbd_connect(1);
va009039 0:ef2c0c52abc4 10 while(1) {
va009039 0:ef2c0c52abc4 11 led1 = !led1;
va009039 0:ef2c0c52abc4 12 wait_ms(500);
va009039 0:ef2c0c52abc4 13 }
va009039 0:ef2c0c52abc4 14 }
va009039 0:ef2c0c52abc4 15
va009039 0:ef2c0c52abc4 16 #endif