From aa7eaeea2e03f8b54c2377e16383bc79a796664e Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 8 Oct 2008 20:17:08 +0000 Subject: [PATCH] Add comments git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1000 42af7a65-404d-4744-a932-0658087f49c3 --- include/nuttx/usbdev.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/nuttx/usbdev.h b/include/nuttx/usbdev.h index da861625239..9ab836406da 100644 --- a/include/nuttx/usbdev.h +++ b/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)