summaryrefslogtreecommitdiff
path: root/nuttx/include/nuttx/usb_storage.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-14 23:32:23 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-14 23:32:23 +0000
commitd7d4a0d765d12cc152c62a37b490702c39d76447 (patch)
treed3969c50e49cd742124e05349431556344a93f54 /nuttx/include/nuttx/usb_storage.h
parent313eb5bb780f9e9baa353651996b51ce33a85fca (diff)
downloadnuttx-d7d4a0d765d12cc152c62a37b490702c39d76447.tar.gz
nuttx-d7d4a0d765d12cc152c62a37b490702c39d76447.tar.bz2
nuttx-d7d4a0d765d12cc152c62a37b490702c39d76447.zip
Switching to C99 stdint.h types
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2340 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/nuttx/usb_storage.h')
-rw-r--r--nuttx/include/nuttx/usb_storage.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/nuttx/include/nuttx/usb_storage.h b/nuttx/include/nuttx/usb_storage.h
index 41dc33075..c980b9f56 100644
--- a/nuttx/include/nuttx/usb_storage.h
+++ b/nuttx/include/nuttx/usb_storage.h
@@ -1,7 +1,7 @@
/************************************************************************************
* include/nuttx/usb_storage.h
*
- * Copyright (C) 2008 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* References:
@@ -48,10 +48,10 @@
************************************************************************************/
#include <nuttx/config.h>
-#include <sys/types.h>
+#include <stdint.h>
/************************************************************************************
- * Definitions
+ * Pre-processor Definitions
************************************************************************************/
/* Mass storage requests */
@@ -101,23 +101,23 @@
struct usbstrg_cbw_s
{
- ubyte signature[4]; /* 'USBC' = 0x43425355 */
- ubyte tag[4]; /* Depends on command id */
- ubyte datlen[4]; /* Number of bytes that host expects to transfer */
- ubyte flags; /* Bit 7: Direction=IN (other obsolete or reserved) */
- ubyte lun; /* LUN (normally 0) */
- ubyte cdblen; /* len of cdb[] */
- ubyte cdb[USBSTRG_MAXCDBLEN]; /* Command Data Block */
+ uint8_t signature[4]; /* 'USBC' = 0x43425355 */
+ uint8_t tag[4]; /* Depends on command id */
+ uint8_t datlen[4]; /* Number of bytes that host expects to transfer */
+ uint8_t flags; /* Bit 7: Direction=IN (other obsolete or reserved) */
+ uint8_t lun; /* LUN (normally 0) */
+ uint8_t cdblen; /* len of cdb[] */
+ uint8_t cdb[USBSTRG_MAXCDBLEN]; /* Command Data Block */
};
/* Command Status Wrapper (CSW) */
struct usbstrg_csw_s
{
- ubyte signature[4]; /* 'USBS' = 0x53425355 */
- ubyte tag[4]; /* Same tag as original command */
- ubyte residue[4]; /* Amount not transferred */
- ubyte status; /* Status of transfer */
+ uint8_t signature[4]; /* 'USBS' = 0x53425355 */
+ uint8_t tag[4]; /* Same tag as original command */
+ uint8_t residue[4]; /* Amount not transferred */
+ uint8_t status; /* Status of transfer */
};
/************************************************************************************