USB host library, support isochronous,bulk,interrupt and control.
Dependents: BaseUsbHost_example BaseJpegDecode_example SimpleJpegDecode_example
Import programBaseUsbHost_example
BaseUsbHost example program
BaseUsbHostTest.h@0:b7d6879637a8, 2012-12-04 (annotated)
- Committer:
- va009039
- Date:
- Tue Dec 04 13:29:41 2012 +0000
- Revision:
- 0:b7d6879637a8
- Child:
- 3:ae77d63a1eda
first commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
va009039 | 0:b7d6879637a8 | 1 | // BaseUsbHostTest.h 2012/12/2 |
va009039 | 0:b7d6879637a8 | 2 | #ifndef BASE_USB_HOST_TEST_H |
va009039 | 0:b7d6879637a8 | 3 | #define BASE_USB_HOST_TEST_H |
va009039 | 0:b7d6879637a8 | 4 | #ifdef TEST |
va009039 | 0:b7d6879637a8 | 5 | #define TEST_ASSERT(A) while(!(A)){fprintf(stderr,"\n\n%s@%d %s ASSERT!\n\n",__PRETTY_FUNCTION__,__LINE__,#A);exit(1);}; |
va009039 | 0:b7d6879637a8 | 6 | #define TEST_ASSERT_TRUE(A) while(!(A)){fprintf(stderr,"\n\n%s@%d %s ASSERT!\n\n",__PRETTY_FUNCTION__,__LINE__,#A);exit(1);}; |
va009039 | 0:b7d6879637a8 | 7 | #define TEST_ASSERT_FALSE(A) while((A)){fprintf(stderr,"\n\n%s@%d %s ASSERT!\n\n",__PRETTY_FUNCTION__,__LINE__,#A);exit(1);}; |
va009039 | 0:b7d6879637a8 | 8 | #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);}; |
va009039 | 0:b7d6879637a8 | 9 | #else |
va009039 | 0:b7d6879637a8 | 10 | #define TEST_ASSERT(A) |
va009039 | 0:b7d6879637a8 | 11 | #define TEST_ASSERT_TRUE(A) while(0); |
va009039 | 0:b7d6879637a8 | 12 | #define TEST_ASSERT_FALSE(A) while(0); |
va009039 | 0:b7d6879637a8 | 13 | #define TEST_ASSERT_EQUAL(A,B) while(0); |
va009039 | 0:b7d6879637a8 | 14 | #endif |
va009039 | 0:b7d6879637a8 | 15 | #endif // BASE_USB_HOST_TEST_H |