Library to control a Graphics TFT connected to 4-wire SPI - revised for the Raio RA8875 Display Controller.
Dependents:
FRDM_RA8875_mPaint
RA8875_Demo
RA8875_KeyPadDemo
SignalGenerator
... more
Fork of
SPI_TFT
by Peter Drescher
1 comment:
This is an incredibly old Issue report - and in an area of the code that has changed a lot since the original MBED OS2 that this library was created for.
Callbacks and ISR are the two areas where I personally have not put in a lot of work. My personal projects stabilized on OS2 for a very long time. You can find in the code some attempts to circumvent this issue with MBED OS version checks.
for example, here was my attempt that sort-of worked, but I haven't found the right solution for OS6 [I can get it to compile, but at boot it crashes with an error about a mutex in an interrupt context]
// Interrupt
m_irq->mode(PullUp);
#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 > 127)
m_irq->fall(callback(this, &RA8875::TouchPanelISR));
#else
m_irq->fall(this, &RA8875::TouchPanelISR);
#endif
Let me appeal to experts in the newer MBED OS versions. If you can help refine this code to work from OS2 to OS6, or at least identify how to make it work right in OS6, I and others would appreciate it.
This is an incredibly old Issue report - and in an area of the code that has changed a lot since the original MBED OS2 that this library was created for.
Callbacks and ISR are the two areas where I personally have not put in a lot of work. My personal projects stabilized on OS2 for a very long time. You can find in the code some attempts to circumvent this issue with MBED OS version checks.
for example, here was my attempt that sort-of worked, but I haven't found the right solution for OS6 [I can get it to compile, but at boot it crashes with an error about a mutex in an interrupt context]
Let me appeal to experts in the newer MBED OS versions. If you can help refine this code to work from OS2 to OS6, or at least identify how to make it work right in OS6, I and others would appreciate it.