Consolidate EventDispatcher client code.

This commit is contained in:
Jared Boone 2015-12-10 17:20:10 -08:00
parent 4b3fa25cef
commit 95fe57c9aa

View File

@ -194,13 +194,12 @@ int main(void) {
events_initialize(chThdSelf());
m0apptxevent_interrupt_enable();
EventDispatcher event_dispatcher;
/* TODO: Ensure DMAs are configured to point at first LLI in chain. */
touch::dma::allocate();
touch::dma::enable();
EventDispatcher event_dispatcher;
event_dispatcher.run();
shutdown();