Simple USBHost WebCam for EA LPC4088 QSB/LPC1768 test program

Dependencies:   LPC4088-USBHost mbed

EA LPC4088 QSB/LPC1768をUSBホストにしてWebカメラからJPEG画像を読み取るテストプログラムです。

The usage is the same as KL46Z-USBHostC270_example.
使い方はKL46Z-USBHostC270_exampleと同じです。
動作確認: Logitech C270,Logitech Q200R(Qcam Orbit AF)
/media/uploads/va009039/lpc4088-c270-480x360.jpg

Committer:
va009039
Date:
Thu Apr 24 05:38:45 2014 +0000
Revision:
0:c972ee42b455
first commit,sync rev.29.

Who changed what in which revision?

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