aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/LowLevel/Pipe.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-08-26 07:34:31 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-08-26 07:34:31 +0000
commit31d8ebebc0796873f7c70db80a04acdcbb307ed8 (patch)
tree175e917bd85a7e5a449dfd80e8e8dfff55f1b334 /LUFA/Drivers/USB/LowLevel/Pipe.h
parentee744abb7efd5fef49782991d58895e10696809a (diff)
downloadlufa-31d8ebebc0796873f7c70db80a04acdcbb307ed8.tar.gz
lufa-31d8ebebc0796873f7c70db80a04acdcbb307ed8.tar.bz2
lufa-31d8ebebc0796873f7c70db80a04acdcbb307ed8.zip
Oops: Really disable building of Projects/Host/ClassDriver directory in the Projects/Host/ makefile.
Add more skeleton functions and definitions to the Mass Storage Host mode Class driver. Made Endpoint_Write_DWord_* functions echo the structure of the matching Endpoint routines for clarity.
Diffstat (limited to 'LUFA/Drivers/USB/LowLevel/Pipe.h')
-rw-r--r--LUFA/Drivers/USB/LowLevel/Pipe.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/Pipe.h b/LUFA/Drivers/USB/LowLevel/Pipe.h
index beee2eb85..1057ec8bc 100644
--- a/LUFA/Drivers/USB/LowLevel/Pipe.h
+++ b/LUFA/Drivers/USB/LowLevel/Pipe.h
@@ -699,8 +699,10 @@
static inline void Pipe_Write_DWord_LE(const uint32_t DWord) ATTR_ALWAYS_INLINE;
static inline void Pipe_Write_DWord_LE(const uint32_t DWord)
{
- Pipe_Write_Word_LE(DWord);
- Pipe_Write_Word_LE(DWord >> 16);
+ UPDATX = (DWord & 0xFF);
+ UPDATX = (DWord >> 8);
+ UPDATX = (DWord >> 16);
+ UPDATX = (DWord >> 24);
}
/** Writes four bytes to the currently selected pipe's bank in big endian format, for IN
@@ -713,8 +715,10 @@
static inline void Pipe_Write_DWord_BE(const uint32_t DWord) ATTR_ALWAYS_INLINE;
static inline void Pipe_Write_DWord_BE(const uint32_t DWord)
{
- Pipe_Write_Word_BE(DWord >> 16);
- Pipe_Write_Word_BE(DWord);
+ UPDATX = (DWord >> 24);
+ UPDATX = (DWord >> 16);
+ UPDATX = (DWord >> 8);
+ UPDATX = (DWord & 0xFF);
}
/** Discards four bytes from the currently selected pipe's bank, for OUT direction pipes.