1
0
Fork 0

usb_hid: workaround for compile on Windows.

This commit is contained in:
tmk 2012-09-04 13:29:21 +09:00
parent c77c5043a1
commit 232ab308e3
7 changed files with 52 additions and 78 deletions

View file

@ -65,3 +65,9 @@ VPATH += $(TOP_DIR)/$(ARDUINO_CORES_DIR)
# for #include "pins_arduino.h"
VPATH += $(TOP_DIR)/$(ARDUINO_DIR)/variants/leonardo
# ad hoc workaround for compile problem on Windows:
# Windows doesn't know difference between common/print.h and arduino/Print.h.
# On Linux no problem.
# Change file name common/print.h to console.h ?
VPATH := $(TOP_DIR)/common $(VPATH)

10
protocol/usb_hid/README Normal file → Executable file
View file

@ -27,6 +27,11 @@ Restriction and Bug
-------------------
Not statble yet.
Switching power on VBUS:
To power reset device.
http://www.circuitsathome.com/camera-control/simulating-cable-disconnect-on-usb-host-shield-2-0
This is needed for a device which are not initilized with 'USB Bus Reset'(long SE0)
Can't bus-reset a keyboard which already attached on bus properly.
Slow start up of Leonardo's bootloader causes this?
Need to unplug/plug a keyboard after firmware starts up.
@ -34,3 +39,8 @@ Can't bus-reset a keyboard which already attached on bus properly.
Keyboard with other endpoints than boot keyboard may go wrong.
On my keyboard with mouse key the converter locks up when using mouse key function.
Can't compile on Windows filesystem.
On Linux no problem.
Windows doesn't know difference between common/print.h and arduino/Print.h.
Change file name common/print.h to console.h ?