forked from mirror/qmk_firmware
Add new functions to the HID host class driver, refine HID interface protocol matching.
Remove stray state variable from the CDC host class driver.
This commit is contained in:
@@ -47,7 +47,8 @@
|
||||
#include <LUFA/Drivers/Misc/TerminalCodes.h>
|
||||
#include <LUFA/Drivers/Peripheral/SerialStream.h>
|
||||
#include <LUFA/Drivers/Board/LEDs.h>
|
||||
#include <LUFA/Drivers/USB/USB.h>\
|
||||
#include <LUFA/Drivers/USB/USB.h>
|
||||
#include <LUFA/Drivers/USB/Class/CDC.h>
|
||||
|
||||
/* Macros: */
|
||||
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
|
||||
|
||||
@@ -47,7 +47,6 @@ USB_ClassInfo_HID_Host_t Mouse_HID_Interface =
|
||||
.DataINPipeNumber = 1,
|
||||
.DataOUTPipeNumber = 2,
|
||||
|
||||
.MatchInterfaceProtocol = true,
|
||||
.HIDInterfaceProtocol = 0x02,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
#include <LUFA/Drivers/Peripheral/SerialStream.h>
|
||||
#include <LUFA/Drivers/Board/LEDs.h>
|
||||
#include <LUFA/Drivers/USB/USB.h>
|
||||
#include <LUFA/Drivers/USB/Class/Host/HID.h>
|
||||
#include <LUFA/Drivers/USB/Class/HID.h>
|
||||
|
||||
/* Macros: */
|
||||
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
|
||||
|
||||
25
Demos/Host/ClassDriver/makefile
Normal file
25
Demos/Host/ClassDriver/makefile
Normal file
@@ -0,0 +1,25 @@
|
||||
#
|
||||
# LUFA Library
|
||||
# Copyright (C) Dean Camera, 2009.
|
||||
#
|
||||
# dean [at] fourwalledcubicle [dot] com
|
||||
# www.fourwalledcubicle.com
|
||||
#
|
||||
|
||||
# Makefile to build all the LUFA Host Demos. Call with "make all" to
|
||||
# rebuild all Host demos.
|
||||
|
||||
# Projects are pre-cleaned before each one is built, to ensure any
|
||||
# custom LUFA library build options are reflected in the compiled
|
||||
# code.
|
||||
|
||||
all:
|
||||
make -C CDCHost clean
|
||||
make -C CDCHost all
|
||||
|
||||
make -C MouseHost clean
|
||||
make -C MouseHost all
|
||||
|
||||
%:
|
||||
make -C CDCHost $@
|
||||
make -C MouseHost $@
|
||||
Reference in New Issue
Block a user