From 38f0dbf7f76ff2350f28e2a51702be3690fd5952 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> Date: Wed, 23 Aug 2006 20:25:41 +0000 Subject: - add some more comment - add missing include file git-svn-id: https://svn.openpcd.org:2342/trunk@126 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpcd/firmware/src/usb_handler.c | 4 ++++ openpcd/firmware/src/usb_handler.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/openpcd/firmware/src/usb_handler.c b/openpcd/firmware/src/usb_handler.c index 4252369..7a736e8 100644 --- a/openpcd/firmware/src/usb_handler.c +++ b/openpcd/firmware/src/usb_handler.c @@ -48,6 +48,8 @@ static int usb_in(struct req_ctx *rctx) DEBUGPCR("no handler for this class\n"); } +/* Process all pending request contexts that want to Tx on either + * IN or INTERRUPT endpoint */ void usb_out_process(void) { struct req_ctx *rctx; @@ -67,6 +69,8 @@ void usb_out_process(void) } } +/* process incoming USB packets (OUT pipe) that have already been + * put into request contexts by the UDP IRQ handler */ void usb_in_process(void) { struct req_ctx *rctx; diff --git a/openpcd/firmware/src/usb_handler.h b/openpcd/firmware/src/usb_handler.h index b4ecfbd..a281c66 100644 --- a/openpcd/firmware/src/usb_handler.h +++ b/openpcd/firmware/src/usb_handler.h @@ -1,6 +1,8 @@ #ifndef _USB_HANDLER_H #define _USB_HANDLER_H +#include "openpcd.h" + #define MAX_PAYLOAD_LEN (64 - sizeof(struct openpcd_hdr)) typedef int usb_cmd_fn(struct req_ctx *rctx); -- cgit v1.2.3