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@1:d652de69bd1a, 2015-04-06 (annotated)
- Committer:
- Grag38
- Date:
- Mon Apr 06 12:46:58 2015 +0000
- Revision:
- 1:d652de69bd1a
- Parent:
- 0:148fca6fd246
Added USBHostMidi to drive midi interface.; ; Tested to send Midi messages from LPC4088. This works.; ; Need to test with incomming events.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
va009039 | 0:148fca6fd246 | 1 | // BaseUsbHostTest.h 2014/4/22 |
va009039 | 0:148fca6fd246 | 2 | #pragma once |
va009039 | 0:148fca6fd246 | 3 | |
va009039 | 0:148fca6fd246 | 4 | #ifndef CTASSERT |
va009039 | 0:148fca6fd246 | 5 | template <bool>struct CtAssert; |
va009039 | 0:148fca6fd246 | 6 | template <>struct CtAssert<true> {}; |
va009039 | 0:148fca6fd246 | 7 | #define CTASSERT(A) CtAssert<A>(); |
va009039 | 0:148fca6fd246 | 8 | #endif //CTASSERT |
va009039 | 0:148fca6fd246 | 9 | |
va009039 | 0:148fca6fd246 | 10 | #ifdef TEST |
va009039 | 0:148fca6fd246 | 11 | //#define USB_TEST_ASSERT(A) if(A){}else{assert_print(__PRETTY_FUNCTION__, __LINE__, #A);} |
va009039 | 0:148fca6fd246 | 12 | #define TEST_ASSERT(A) if(A){}else{assert_print(__PRETTY_FUNCTION__, __LINE__,#A);} |
va009039 | 0:148fca6fd246 | 13 | #define TEST_ASSERT_TRUE(A) if(A){}else{assert_print(__PRETTY_FUNCTION__, __LINE__, #A);} |
va009039 | 0:148fca6fd246 | 14 | #define TEST_ASSERT_FALSE(A) if(A){assert_print(__PRETTY_FUNCTION__, __LINE__, #A);}else{} |
va009039 | 0:148fca6fd246 | 15 | #define TEST_ASSERT_EQUAL(A,B) if (A == B){}else{assert_print(__PRETTY_FUNCTION__, __LINE__, #A);} |
va009039 | 0:148fca6fd246 | 16 | void assert_print(const char* pf, int line, const char* msg); |
va009039 | 0:148fca6fd246 | 17 | #else |
va009039 | 0:148fca6fd246 | 18 | #define TEST_ASSERT(A) |
va009039 | 0:148fca6fd246 | 19 | #define TEST_ASSERT_TRUE(A) while(0); |
va009039 | 0:148fca6fd246 | 20 | #define TEST_ASSERT_FALSE(A) while(0); |
va009039 | 0:148fca6fd246 | 21 | #define TEST_ASSERT_EQUAL(A,B) while(0); |
va009039 | 0:148fca6fd246 | 22 | #endif |