Midi_USB_Host with a timer interrupt #12
Replies: 1 comment
-
I can certainly get the timer interrupt code to work inside the midi module but to make it do anything significant ... due to memory restrictions. Seems unlikely at this point, unless i bring the code from the library and make it memory resident but the library for usbh_midi is non-trivial. For example to call this in the UsbMidi_Poll()
calls
which makes other calls ... so even if I was to fork usbh_midi.cpp and redesign it to operate with timer_interrupts i don't know that this is feasible given the constraints on how its memory resident and has to lock memory up with portENTER_CRITICAl_ISR and EXIT. Rapidly goes into "nah, its not going to work" space. You'd really have to fully design the library
|
Beta Was this translation helpful? Give feedback.
-
Just starting a thread because I'm investigating
https://github.com/khoih-prog/ESP32TimerInterrupt
if I set it up in Core0 the idea is that it will execute at a higher priority to make sure we don't lose notes. That way I can service the scope without suddenly finding that each loop in core0 task is just too slow.
Starting this thread before I have results to help document but also if there is feedback if anyone tried this or why it isn't going to work?
Beta Was this translation helpful? Give feedback.
All reactions