This is the David Smart RA8875 Library with mods for working with FRDM-K64F
Diff: RA8875.cpp
- Revision:
- 155:b3f225ae572c
- Parent:
- 154:ad2450fc3dc3
- Child:
- 157:1565f38ca44b
--- a/RA8875.cpp Fri Aug 17 01:29:06 2018 +0000 +++ b/RA8875.cpp Tue Nov 13 01:33:41 2018 +0000 @@ -142,7 +142,10 @@ // Interrupt m_irq->mode(PullUp); m_irq->enable_irq(); - #if (MBED_MAJOR_VERSION >= 5) || (MBED_LIBRARY_VERSION > 128) // Is this the right version? + #if MBED_VERSION >= MBED_ENCODE_VERSION(5,8,0) + eventThread.start(callback(&queue, &EventQueue::dispatch_forever)); + m_irq->fall(queue.event(callback(this, &RA8875::TouchPanelISR))); + #elif (MBED_MAJOR_VERSION >= 5) || (MBED_LIBRARY_VERSION > 128) // Is this the right version? m_irq->fall(callback(this, &RA8875::TouchPanelISR)); #else m_irq->fall(this, &RA8875::TouchPanelISR);