hid_listen.mac + cores-master/usb_midi/usb.c ? Or not?

Status
Not open for further replies.
How does the DEBUG_INTERFACE in /cores-master/usb_midi/usb.c differ from the DEBUG_INTERFACE in blinky/usb_debug_only.c ? i.e. can hid_listen.mac be used for usb_midi's DEBUG_INTERFACE -or- what is the DEBUG_INTERFACE in usb_midi/usb.c ?

I noticed this difference for example, in Usage page below, and there are a few other differences. I am building a bare C implementation based on the usb_midi code with avr-gcc now. The goal here is to have a method of debugging.

Code:
$ grep -r -4 Usage ../../code/cores-master/usb_midi/
../../code/cores-master/usb_midi/usb.c-static const uint8_t PROGMEM debug_hid_report_desc[] = {
../../code/cores-master/usb_midi/usb.c:        0x06, 0xC9, 0xFF,                       // Usage Page 0xFFC9 (vendor defined)
../../code/cores-master/usb_midi/usb.c:        0x09, 0x04,                             // Usage 0x04
../../code/cores-master/usb_midi/usb.c-        0xA1, 0x5C,                             // Collection 0x5C


$ grep -r -4 Usage ../../build/blinky/
../../build/blinky/usb_debug_only.c-
../../build/blinky/usb_debug_only.c-const static uint8_t PROGMEM hid_report_descriptor[] = {
../../build/blinky/usb_debug_only.c:	0x06, 0x31, 0xFF,			// Usage Page 0xFF31 (vendor defined)
../../build/blinky/usb_debug_only.c:	0x09, 0x74,				// Usage 0x74
../../build/blinky/usb_debug_only.c-	0xA1, 0x53,				// Collection 0x53

$ grep -r 0x ../../sdk/hid_listen
../../sdk/hid_listen/hid_listen.c:		hid = rawhid_open_only1(0, 0, 0xFF31, 0x0074);
 
Status
Not open for further replies.
Back
Top