Fork to update libraries and fix disk_read/disk_write functions
Dependencies: FATFileSystem mbed-rtos
Dependents: lpc4088_qsb_usbhost
Fork of LPC4088-USBHost by
USBHost/BaseUsbHostTest.h@1:5402b105b911, 2015-04-24 (annotated)
- Committer:
- embeddedartists
- Date:
- Fri Apr 24 06:11:09 2015 +0000
- Revision:
- 1:5402b105b911
- Parent:
- 0:148fca6fd246
Updated libraries and had to fix the parameters to disk_read/disk_write
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
va009039 | 0:148fca6fd246 | 1 | // BaseUsbHostTest.h 2014/4/22 |
va009039 | 0:148fca6fd246 | 2 | #pragma once |
va009039 | 0:148fca6fd246 | 3 | |
va009039 | 0:148fca6fd246 | 4 | #ifndef CTASSERT |
va009039 | 0:148fca6fd246 | 5 | template <bool>struct CtAssert; |
va009039 | 0:148fca6fd246 | 6 | template <>struct CtAssert<true> {}; |
va009039 | 0:148fca6fd246 | 7 | #define CTASSERT(A) CtAssert<A>(); |
va009039 | 0:148fca6fd246 | 8 | #endif //CTASSERT |
va009039 | 0:148fca6fd246 | 9 | |
va009039 | 0:148fca6fd246 | 10 | #ifdef TEST |
va009039 | 0:148fca6fd246 | 11 | //#define USB_TEST_ASSERT(A) if(A){}else{assert_print(__PRETTY_FUNCTION__, __LINE__, #A);} |
va009039 | 0:148fca6fd246 | 12 | #define TEST_ASSERT(A) if(A){}else{assert_print(__PRETTY_FUNCTION__, __LINE__,#A);} |
va009039 | 0:148fca6fd246 | 13 | #define TEST_ASSERT_TRUE(A) if(A){}else{assert_print(__PRETTY_FUNCTION__, __LINE__, #A);} |
va009039 | 0:148fca6fd246 | 14 | #define TEST_ASSERT_FALSE(A) if(A){assert_print(__PRETTY_FUNCTION__, __LINE__, #A);}else{} |
va009039 | 0:148fca6fd246 | 15 | #define TEST_ASSERT_EQUAL(A,B) if (A == B){}else{assert_print(__PRETTY_FUNCTION__, __LINE__, #A);} |
va009039 | 0:148fca6fd246 | 16 | void assert_print(const char* pf, int line, const char* msg); |
va009039 | 0:148fca6fd246 | 17 | #else |
va009039 | 0:148fca6fd246 | 18 | #define TEST_ASSERT(A) |
va009039 | 0:148fca6fd246 | 19 | #define TEST_ASSERT_TRUE(A) while(0); |
va009039 | 0:148fca6fd246 | 20 | #define TEST_ASSERT_FALSE(A) while(0); |
va009039 | 0:148fca6fd246 | 21 | #define TEST_ASSERT_EQUAL(A,B) while(0); |
va009039 | 0:148fca6fd246 | 22 | #endif |