Simple USBHost MSD(USB flash drive) for EA LPC4088 QSB test program

Dependencies:   LPC4088-USBHost mbed

EA LPC4088をUSBホストにしてUSBフラッシュメモリ(USB flash drive)を読み書きするテストプログラムです。
/media/uploads/va009039/lpc4088-msd-1.jpg
/media/uploads/va009039/lpc4088-msd-2.png

https://bitbucket.org/va009039/lpc4088_usbhost

Committer:
va009039
Date:
Tue Apr 22 10:54:52 2014 +0000
Revision:
0:11152e69fc05
first commit,sync rev.25.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
va009039 0:11152e69fc05 1 // BaseUsbHostTest.h 2014/4/22
va009039 0:11152e69fc05 2 #pragma once
va009039 0:11152e69fc05 3
va009039 0:11152e69fc05 4 #ifndef CTASSERT
va009039 0:11152e69fc05 5 template <bool>struct CtAssert;
va009039 0:11152e69fc05 6 template <>struct CtAssert<true> {};
va009039 0:11152e69fc05 7 #define CTASSERT(A) CtAssert<A>();
va009039 0:11152e69fc05 8 #endif //CTASSERT
va009039 0:11152e69fc05 9
va009039 0:11152e69fc05 10 #ifdef TEST
va009039 0:11152e69fc05 11 //#define USB_TEST_ASSERT(A) if(A){}else{assert_print(__PRETTY_FUNCTION__, __LINE__, #A);}
va009039 0:11152e69fc05 12 #define TEST_ASSERT(A) if(A){}else{assert_print(__PRETTY_FUNCTION__, __LINE__,#A);}
va009039 0:11152e69fc05 13 #define TEST_ASSERT_TRUE(A) if(A){}else{assert_print(__PRETTY_FUNCTION__, __LINE__, #A);}
va009039 0:11152e69fc05 14 #define TEST_ASSERT_FALSE(A) if(A){assert_print(__PRETTY_FUNCTION__, __LINE__, #A);}else{}
va009039 0:11152e69fc05 15 #define TEST_ASSERT_EQUAL(A,B) if (A == B){}else{assert_print(__PRETTY_FUNCTION__, __LINE__, #A);}
va009039 0:11152e69fc05 16 void assert_print(const char* pf, int line, const char* msg);
va009039 0:11152e69fc05 17 #else
va009039 0:11152e69fc05 18 #define TEST_ASSERT(A)
va009039 0:11152e69fc05 19 #define TEST_ASSERT_TRUE(A) while(0);
va009039 0:11152e69fc05 20 #define TEST_ASSERT_FALSE(A) while(0);
va009039 0:11152e69fc05 21 #define TEST_ASSERT_EQUAL(A,B) while(0);
va009039 0:11152e69fc05 22 #endif