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
- Committer:
- embeddedartists
- Date:
- 2015-04-24
- Revision:
- 1:5402b105b911
- Parent:
- 0:148fca6fd246
File content as of revision 1:5402b105b911:
// BaseUsbHostTest.h 2014/4/22 #pragma once #ifndef CTASSERT template <bool>struct CtAssert; template <>struct CtAssert<true> {}; #define CTASSERT(A) CtAssert<A>(); #endif //CTASSERT #ifdef TEST //#define USB_TEST_ASSERT(A) if(A){}else{assert_print(__PRETTY_FUNCTION__, __LINE__, #A);} #define TEST_ASSERT(A) if(A){}else{assert_print(__PRETTY_FUNCTION__, __LINE__,#A);} #define TEST_ASSERT_TRUE(A) if(A){}else{assert_print(__PRETTY_FUNCTION__, __LINE__, #A);} #define TEST_ASSERT_FALSE(A) if(A){assert_print(__PRETTY_FUNCTION__, __LINE__, #A);}else{} #define TEST_ASSERT_EQUAL(A,B) if (A == B){}else{assert_print(__PRETTY_FUNCTION__, __LINE__, #A);} void assert_print(const char* pf, int line, const char* msg); #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