Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 4:fbf649bca9d0, committed 2018-12-10
- Comitter:
- dkato
- Date:
- Mon Dec 10 01:53:38 2018 +0000
- Parent:
- 3:19e7fc58da6b
- Commit message:
- Changed to mbed-os
Changed in this revision
diff -r 19e7fc58da6b -r fbf649bca9d0 USBDevice.lib --- a/USBDevice.lib Fri Mar 01 13:23:28 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/mbed_official/code/USBDevice/#335f2506f422
diff -r 19e7fc58da6b -r fbf649bca9d0 main.cpp --- a/main.cpp Fri Mar 01 13:23:28 2013 +0000 +++ b/main.cpp Mon Dec 10 01:53:38 2018 +0000 @@ -1,36 +1,36 @@ #include "mbed.h" #include "USBHID.h" - + //We declare a USBHID device. Input out output reports have a length of 8 bytes -USBHID hid(8, 8); - +USBHID hid(true, 8, 8); + //This report will contain data to be sent HID_REPORT send_report; HID_REPORT recv_report; - + Serial pc(USBTX, USBRX); - + int main(void) { send_report.length = 8; - + while (1) { //Fill the report for (int i = 0; i < send_report.length; i++) { send_report.data[i] = rand() & 0xff; } - + //Send the report hid.send(&send_report); - + //try to read a msg - if(hid.readNB(&recv_report)) { + if(hid.read_nb(&recv_report)) { pc.printf("recv: "); for(int i = 0; i < recv_report.length; i++) { pc.printf("%d ", recv_report.data[i]); } pc.printf("\r\n"); } - + wait(0.1); } -} \ No newline at end of file +}
diff -r 19e7fc58da6b -r fbf649bca9d0 mbed-gr-libs.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-gr-libs.lib Mon Dec 10 01:53:38 2018 +0000 @@ -0,0 +1,1 @@ +https://github.com/d-kato/mbed-gr-libs/#809a7d55292aa42ebafc3a44232be5fadd585abe
diff -r 19e7fc58da6b -r fbf649bca9d0 mbed-os.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Mon Dec 10 01:53:38 2018 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#2fd0c5cfbd83fce62da6308f9d64c0ab64e1f0d6
diff -r 19e7fc58da6b -r fbf649bca9d0 mbed.bld --- a/mbed.bld Fri Mar 01 13:23:28 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/3d0ef94e36ec \ No newline at end of file