summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-01-31 14:15:36 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-01-31 14:15:36 +0000
commit683c7dbd29a864ee20c792918fd32eedf9b53f69 (patch)
treeecf3cd73d71ad66b3c62fe2f86aff56f2d8b06fe /nuttx/include
parent7e732a9cb78f197c4b44892a574842ca1eba0823 (diff)
downloadpx4-nuttx-683c7dbd29a864ee20c792918fd32eedf9b53f69.tar.gz
px4-nuttx-683c7dbd29a864ee20c792918fd32eedf9b53f69.tar.bz2
px4-nuttx-683c7dbd29a864ee20c792918fd32eedf9b53f69.zip
Can't use 'class' as a field name! Backward conditional compilation in usbmsc.c
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4350 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/usb/usb.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/include/nuttx/usb/usb.h b/nuttx/include/nuttx/usb/usb.h
index 446acb4b2..b3c110dcd 100644
--- a/nuttx/include/nuttx/usb/usb.h
+++ b/nuttx/include/nuttx/usb/usb.h
@@ -1,8 +1,8 @@
/************************************************************************************
* include/nuttx/usb/usb.h
*
- * Copyright (C) 2008, 2009-2010 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ * Copyright (C) 2008, 2009-2010, 2012 Gregory Nutt. All rights reserved.
+ * Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -274,7 +274,7 @@ struct usb_devdesc_s
uint8_t len; /* Descriptor length */
uint8_t type; /* Descriptor type */
uint8_t usb[2]; /* USB version */
- uint8_t class; /* Device class */
+ uint8_t classid; /* Device class */
uint8_t subclass; /* Device sub-class */
uint8_t protocol; /* Device protocol */
uint8_t mxpacketsize; /* Max packet size (ep0) */
@@ -334,7 +334,7 @@ struct usb_ifdesc_s
uint8_t ifno; /* Interface number */
uint8_t alt; /* Alternate setting */
uint8_t neps; /* Number of endpoints */
- uint8_t class; /* Interface class */
+ uint8_t classid; /* Interface class */
uint8_t subclass; /* Interface sub-class */
uint8_t protocol; /* Interface protocol */
uint8_t iif; /* iInterface */
@@ -369,7 +369,7 @@ struct usb_qualdesc_s
uint8_t len; /* Descriptor length */
uint8_t type; /* Descriptor type */
uint8_t usb[2]; /* USB version */
- uint8_t class; /* Qualifier class */
+ uint8_t classid; /* Qualifier class */
uint8_t subclass; /* Qualifier sub-class */
uint8_t protocol; /* Qualifier protocol */
uint8_t mxpacketsize; /* Max packet size (ep0) */
@@ -394,7 +394,7 @@ struct usb_iaddesc_s
uint8_t type; /* Descriptor type */
uint8_t firstif; /* Number of first interface of the function */
uint8_t nifs; /* Number of interfaces associated with the function */
- uint8_t class; /* Class code*/
+ uint8_t classid; /* Class code */
uint8_t subclass; /* Sub-class code */
uint8_t protocol; /* Protocol code */
uint8_t ifunction; /* Index to string identifying the function */