...so it continues when M4 is shut down. It's not as pretty as using DMA, but it's far simpler, even if it involves letting the ADC run continuously and taking the last samples even if not synchronizing to the phase of the sampling of the channels.
Slightly more duplication of code now. Need a base class...
event.* is common code, _m0 and _m4 contain specific event mask definitions.
No need to change voltages on touch panel when no touch is detected. This should reduce noise a bit.