USB host library, support isochronous,bulk,interrupt and control.

Dependents:   BaseUsbHost_example BaseJpegDecode_example SimpleJpegDecode_example

Import programBaseUsbHost_example

BaseUsbHost example program

Revision:
3:ae77d63a1eda
Parent:
0:b7d6879637a8
--- a/BaseUsbHostTest.h	Tue Dec 11 15:26:54 2012 +0000
+++ b/BaseUsbHostTest.h	Sun Jan 06 11:45:18 2013 +0000
@@ -1,6 +1,12 @@
-// BaseUsbHostTest.h 2012/12/2
-#ifndef BASE_USB_HOST_TEST_H
-#define BASE_USB_HOST_TEST_H
+// BaseUsbHostTest.h 2013/1/5
+#pragma once
+
+#ifndef CTASSERT
+template <bool>struct CtAssert;
+template <>struct CtAssert<true> {};
+#define CTASSERT(A) CtAssert<A>();
+#endif //CTASSERT
+
 #ifdef TEST
 #define TEST_ASSERT(A) while(!(A)){fprintf(stderr,"\n\n%s@%d %s ASSERT!\n\n",__PRETTY_FUNCTION__,__LINE__,#A);exit(1);};
 #define TEST_ASSERT_TRUE(A) while(!(A)){fprintf(stderr,"\n\n%s@%d %s ASSERT!\n\n",__PRETTY_FUNCTION__,__LINE__,#A);exit(1);};
@@ -12,4 +18,3 @@
 #define TEST_ASSERT_FALSE(A) while(0);
 #define TEST_ASSERT_EQUAL(A,B) while(0);
 #endif
-#endif // BASE_USB_HOST_TEST_H