diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-10-08 20:17:08 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-10-08 20:17:08 +0000 |
commit | 914088df89ab31a51855da97ecfd55f20f207324 (patch) | |
tree | 70481601eb97ded7970eb8ccdf6aff752c743d5c /nuttx/include | |
parent | 20cc24e53cd2993ab048065f42d7a6149f45eef4 (diff) | |
download | px4-nuttx-914088df89ab31a51855da97ecfd55f20f207324.tar.gz px4-nuttx-914088df89ab31a51855da97ecfd55f20f207324.tar.bz2 px4-nuttx-914088df89ab31a51855da97ecfd55f20f207324.zip |
Add comments
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1000 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/usbdev.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/include/nuttx/usbdev.h b/nuttx/include/nuttx/usbdev.h index da8616252..9ab836406 100644 --- a/nuttx/include/nuttx/usbdev.h +++ b/nuttx/include/nuttx/usbdev.h @@ -65,12 +65,12 @@ #define EP_DISABLE(ep) (ep)->ops->disable(ep) -/* Allocate/free I/O requests */ +/* Allocate/free I/O requests. Should not be called from interrupt processing! */ #define EP_ALLOCREQ(ep) (ep)->ops->allocreq(ep) #define EP_FREEREQ(ep,req) (ep)->ops->freereq(ep,req) -/* Allocate/free an I/O buffer */ +/* Allocate/free an I/O buffer. Should not be called from interrupt processing! */ #ifdef CONFIG_ARCH_USBDEV_DMA # define EP_ALLOCBUFFER(ep,nb) (ep)->ops->alloc(ep,nb) @@ -135,8 +135,9 @@ #define DEV_DISCONNECT(dev) (dev)->ops->pullup ? (dev)->ops->pullup(dev,FALSE) : -EOPNOTSUPP /* USB Class Driver Helpsers ********************************************************/ +/* All may be called from interupt handling logic except bind() and unbind() */ -/* Invoked when the driver is bound to a USB device driver */ +/* Invoked when the driver is bound to a USB device driver. */ #define CLASS_BIND(drvr,dev) (drvr)->ops->bind(dev, drvr) |