Simple USBHost MSD(USB flash drive) for EA LPC4088 QSB test program
Dependencies: LPC4088-USBHost mbed
EA LPC4088をUSBホストにしてUSBフラッシュメモリ(USB flash drive)を読み書きするテストプログラムです。
https://bitbucket.org/va009039/lpc4088_usbhost
LPC4088-USBHost/USBHost/BaseUsbHostTest.h
- Committer:
- va009039
- Date:
- 2014-04-22
- Revision:
- 0:11152e69fc05
File content as of revision 0:11152e69fc05:
// 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