mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-21 17:18:06 +00:00
Consolidate EventDispatcher client code.
This commit is contained in:
@@ -194,13 +194,12 @@ int main(void) {
|
|||||||
events_initialize(chThdSelf());
|
events_initialize(chThdSelf());
|
||||||
m0apptxevent_interrupt_enable();
|
m0apptxevent_interrupt_enable();
|
||||||
|
|
||||||
EventDispatcher event_dispatcher;
|
|
||||||
|
|
||||||
/* TODO: Ensure DMAs are configured to point at first LLI in chain. */
|
/* TODO: Ensure DMAs are configured to point at first LLI in chain. */
|
||||||
|
|
||||||
touch::dma::allocate();
|
touch::dma::allocate();
|
||||||
touch::dma::enable();
|
touch::dma::enable();
|
||||||
|
|
||||||
|
EventDispatcher event_dispatcher;
|
||||||
event_dispatcher.run();
|
event_dispatcher.run();
|
||||||
|
|
||||||
shutdown();
|
shutdown();
|
||||||
|
Reference in New Issue
Block a user