From ed3ac5249fefd21f82aa312cdf21a444405b2b99 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Sat, 23 Apr 2016 21:55:45 -0700 Subject: [PATCH] Move MessageQueue::signal into .cpp file. --- firmware/common/message_queue.cpp | 15 +++++++++++++++ firmware/common/message_queue.hpp | 16 +--------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/firmware/common/message_queue.cpp b/firmware/common/message_queue.cpp index 54e9a233..3001127d 100644 --- a/firmware/common/message_queue.cpp +++ b/firmware/common/message_queue.cpp @@ -20,3 +20,18 @@ */ #include "message_queue.hpp" + +#include "lpc43xx_cpp.hpp" +using namespace lpc43xx; + +#if defined(LPC43XX_M0) +void MessageQueue::signal() { + creg::m0apptxevent::assert(); +} +#endif + +#if defined(LPC43XX_M4) +void MessageQueue::signal() { + creg::m4txevent::assert(); +} +#endif diff --git a/firmware/common/message_queue.hpp b/firmware/common/message_queue.hpp index 76404be0..cd2bacd7 100644 --- a/firmware/common/message_queue.hpp +++ b/firmware/common/message_queue.hpp @@ -27,9 +27,6 @@ #include "message.hpp" #include "fifo.hpp" -#include "lpc43xx_cpp.hpp" -using namespace lpc43xx; - #include class MessageQueue { @@ -111,18 +108,7 @@ private: return success; } - -#if defined(LPC43XX_M0) - void signal() { - creg::m0apptxevent::assert(); - } -#endif - -#if defined(LPC43XX_M4) - void signal() { - creg::m4txevent::assert(); - } -#endif + void signal(); }; #endif/*__MESSAGE_QUEUE_H__*/