Extract BufferExchange, simplify threading.

This commit is contained in:
Jared Boone 2016-10-06 13:38:56 -07:00
parent 84334ef818
commit 5dfb53263a
6 changed files with 161 additions and 81 deletions

View file

@ -31,7 +31,7 @@
#include "irq_controls.hpp"
#include "capture_thread.hpp"
#include "buffer_exchange.hpp"
#include "ch.h"
@ -48,7 +48,7 @@ CH_IRQ_HANDLER(M4Core_IRQHandler) {
CH_IRQ_PROLOGUE();
chSysLockFromIsr();
CaptureThread::check_fifo_isr();
BufferExchange::handle_isr();
EventDispatcher::check_fifo_isr();
chSysUnlockFromIsr();