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

Dependents:   BaseUsbHost_example BaseJpegDecode_example SimpleJpegDecode_example

Import programBaseUsbHost_example

BaseUsbHost example program

BaseUsbHostTest.h

Committer:
va009039
Date:
2012-12-04
Revision:
0:b7d6879637a8
Child:
3:ae77d63a1eda

File content as of revision 0:b7d6879637a8:

// 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