USB host library, support isochronous,bulk,interrupt and control.
Dependents: BaseUsbHost_example BaseJpegDecode_example SimpleJpegDecode_example
Import programBaseUsbHost_example
BaseUsbHost example program
Diff: BaseUsbHostTest.h
- Revision:
- 0:b7d6879637a8
- Child:
- 3:ae77d63a1eda
diff -r 000000000000 -r b7d6879637a8 BaseUsbHostTest.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BaseUsbHostTest.h Tue Dec 04 13:29:41 2012 +0000 @@ -0,0 +1,15 @@ +// BaseUsbHostTest.h 2012/12/2 +#ifndef BASE_USB_HOST_TEST_H +#define BASE_USB_HOST_TEST_H +#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);}; +#define TEST_ASSERT_FALSE(A) while((A)){fprintf(stderr,"\n\n%s@%d %s ASSERT!\n\n",__PRETTY_FUNCTION__,__LINE__,#A);exit(1);}; +#define TEST_ASSERT_EQUAL(A,B) while(!(A == B)){fprintf(stderr,"\n\n%s@%d %s ASSERT!\n\n",__PRETTY_FUNCTION__,__LINE__,#A);exit(1);}; +#else +#define TEST_ASSERT(A) +#define TEST_ASSERT_TRUE(A) while(0); +#define TEST_ASSERT_FALSE(A) while(0); +#define TEST_ASSERT_EQUAL(A,B) while(0); +#endif +#endif // BASE_USB_HOST_TEST_H