diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-10-10 16:45:17 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-10-10 16:45:17 +0000 |
commit | 2e3c93708f069c2a6ef0511e12ba12282ae7ed6b (patch) | |
tree | a4a7451ac91aca496e7d4ceeaa8b16df08ab44cc /nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c | |
parent | 18289d868d53c24e10197fd2d5f4c250dd4bceb6 (diff) | |
download | px4-nuttx-2e3c93708f069c2a6ef0511e12ba12282ae7ed6b.tar.gz px4-nuttx-2e3c93708f069c2a6ef0511e12ba12282ae7ed6b.tar.bz2 px4-nuttx-2e3c93708f069c2a6ef0511e12ba12282ae7ed6b.zip |
updated comments
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1024 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c')
-rw-r--r-- | nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c b/nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c index 31098a6e7..9ab55b79e 100644 --- a/nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c +++ b/nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c @@ -787,7 +787,9 @@ static void lpc214x_epwrite(ubyte epphy, const ubyte *data, uint32 nbytes) uint32 value; boolean aligned = (((uint32)data & 3) == 0); - /* Set the write enable bit for this physical EP address */ + /* Set the write enable bit for this physical EP address. Bits 2-5 are + * the logical endpoint number (0-15) + */ lpc214x_putreg(((epphy << 1) & LPC214X_USBCTRL_EPMASK) | LPC214X_USBCTRL_WREN, LPC214X_USBDEV_CTRL); @@ -865,7 +867,9 @@ static int lpc214x_epread(ubyte epphy, ubyte *data, uint32 nbytes) } } - /* Set the read enable bit for this physical EP address */ + /* Set the read enable bit for this physical EP address. Bits 2-5 are + * the logical endpoint number (0-15). + */ lpc214x_putreg(((epphy << 1) & LPC214X_USBCTRL_EPMASK) | LPC214X_USBCTRL_RDEN, LPC214X_USBDEV_CTRL); |