Author: wmb
Date: 2009-04-07 20:05:50 +0200 (Tue, 07 Apr 2009)
New Revision: 1141
Modified:
dev/usb2/device/generic/generic.bth
dev/usb2/device/generic/generic.fth
Log:
USB generic device support - patch from Luke Gorrie
Modified: dev/usb2/device/generic/generic.bth
===================================================================
--- dev/usb2/device/generic/generic.bth 2009-04-06 03:01:41 UTC (rev 1140)
+++ dev/usb2/device/generic/generic.bth 2009-04-07 18:05:50 UTC (rev 1141)
@@ -9,7 +9,7 @@
FCode-version2
-fload ${BP}/dev/usb2/hcd/hcd-call.fth \ HCD interface forwarded to children
+fload ${BP}/dev/usb2/device/common.fth \ HCD interface forwarded to children
fload ${BP}/dev/usb2/device/generic/generic.fth \ Hub driver
end0
Modified: dev/usb2/device/generic/generic.fth
===================================================================
--- dev/usb2/device/generic/generic.fth 2009-04-06 03:01:41 UTC (rev 1140)
+++ dev/usb2/device/generic/generic.fth 2009-04-07 18:05:50 UTC (rev 1141)
@@ -1,5 +1,9 @@
purpose: Generic USB device stub driver, useful for client programs
external
-: open ( -- flag ) true ;
+: open ( -- flag ) device set-target true ;
: close ( -- ) ;
+
+: init ( -- ) init device set-target ;
+init
+