diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-01-31 14:15:36 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-01-31 14:15:36 +0000 |
commit | 5d7909fa42f0cd0801ebc51edc3e56ef9b346db4 (patch) | |
tree | ecf3cd73d71ad66b3c62fe2f86aff56f2d8b06fe /nuttx/include | |
parent | 019b83fc5459a0f7df9a5f1e8bfcff7251447f7e (diff) | |
download | px4-firmware-5d7909fa42f0cd0801ebc51edc3e56ef9b346db4.tar.gz px4-firmware-5d7909fa42f0cd0801ebc51edc3e56ef9b346db4.tar.bz2 px4-firmware-5d7909fa42f0cd0801ebc51edc3e56ef9b346db4.zip |
Can't use 'class' as a field name! Backward conditional compilation in usbmsc.c
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4350 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/usb/usb.h | 12 |
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 */ |