mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-19 04:19:30 -04:00
Move M4TXEVENT interrupt control into event handler run().
This commit is contained in:
parent
69b258cc2b
commit
0fe5409357
1 changed files with 4 additions and 1 deletions
|
@ -86,10 +86,14 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
void run() {
|
void run() {
|
||||||
|
creg::m4txevent::enable();
|
||||||
|
|
||||||
while(is_running) {
|
while(is_running) {
|
||||||
const auto events = wait();
|
const auto events = wait();
|
||||||
dispatch(events);
|
dispatch(events);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
creg::m4txevent::disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
void request_stop() {
|
void request_stop() {
|
||||||
|
@ -274,7 +278,6 @@ int main(void) {
|
||||||
controls_init();
|
controls_init();
|
||||||
lcd_frame_sync_configure();
|
lcd_frame_sync_configure();
|
||||||
rtc_interrupt_enable();
|
rtc_interrupt_enable();
|
||||||
lpc43xx::creg::m4txevent::enable();
|
|
||||||
|
|
||||||
event_dispatcher.run();
|
event_dispatcher.run();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue