
6 Sep
2009
6 Sep
'09
3:19 p.m.
Jean-Christophe PLAGNIOL-VILLARD wrote:
On 15:12 Fri 04 Sep , Tom Rix wrote:
When developing usb device features, it is useful to print out common usb structures.
Signed-off-by: Tom Rix Tom.Rix@windriver.com
include/usbdescriptors.h | 31 +++++++++++++ include/usbdevice.h | 105 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 136 insertions(+), 0 deletions(-)
diff --git a/include/usbdescriptors.h b/include/usbdescriptors.h index ea05672..f4e33b6 100644 --- a/include/usbdescriptors.h +++ b/include/usbdescriptors.h @@ -510,4 +510,35 @@ struct usb_class_descriptor {
} __attribute__ ((packed));
+#ifdef DEBUG +#define PRINT_DEVICE_DESCRIPTOR(d) \
inline will be better
Yes. I agree. Tom
Best Regards, J.