modified to compile for me
Fork of F401RE-USBHost by
Diff: USBHostMouse.h
- Revision:
- 0:5160ee0c522d
diff -r 000000000000 -r 5160ee0c522d USBHostMouse.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/USBHostMouse.h Sat Jan 18 13:30:22 2014 +0000 @@ -0,0 +1,16 @@ +// Simple USBHost Mouse for FRDM-KL46Z +#include "USBHost.h" + +class USBHostMouse { +public: + USBHostMouse() { + host = USBHost::getHostInst(); + } + int readReport(uint8_t* data) { + return host->InterruptRead(data, 4); + } + +private: + USBHost * host; +}; +