Added to LPC4088-USBHost the USBHostMidi class. Plugin an usb midi interface to the usb host of lpc4088 allows to send midi event to the midi interface. For the moment I can not be able to get event from the interface by using the attacheNoteOn or other triggers...
Dependencies: FATFileSystem mbed-rtos
Fork of LPC4088-USBHost by
USBHost/BaseUsbHostTest.h
- Committer:
- Grag38
- Date:
- 2015-04-06
- Revision:
- 1:d652de69bd1a
- Parent:
- 0:148fca6fd246
File content as of revision 1:d652de69bd1a:
// 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