mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 01:59:13 -04:00
A little code consolidation -- M0APP IRQ.
This commit is contained in:
parent
cd17f414b7
commit
778e2d2381
6 changed files with 31 additions and 87 deletions
|
@ -30,8 +30,6 @@
|
|||
|
||||
#include "event_m4.hpp"
|
||||
|
||||
#include "irq_ipc_m4.hpp"
|
||||
|
||||
#include "touch_dma.hpp"
|
||||
|
||||
#include "baseband_thread.hpp"
|
||||
|
@ -123,7 +121,7 @@ class EventDispatcher {
|
|||
public:
|
||||
void run() {
|
||||
events_initialize(chThdSelf());
|
||||
m0apptxevent_interrupt_enable();
|
||||
lpc43xx::creg::m0apptxevent::enable();
|
||||
|
||||
baseband_thread.thread_main = chThdSelf();
|
||||
baseband_thread.thread_rssi = rssi_thread.start(NORMALPRIO + 10);
|
||||
|
@ -134,7 +132,7 @@ public:
|
|||
dispatch(events);
|
||||
}
|
||||
|
||||
m0apptxevent_interrupt_disable();
|
||||
lpc43xx::creg::m0apptxevent::disable();
|
||||
}
|
||||
|
||||
void request_stop() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue