mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-02-08 18:58:34 -05:00
Move MessageQueue::signal into .cpp file.
This commit is contained in:
parent
c585f3d4ea
commit
ed3ac5249f
@ -20,3 +20,18 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "message_queue.hpp"
|
#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
|
||||||
|
@ -27,9 +27,6 @@
|
|||||||
#include "message.hpp"
|
#include "message.hpp"
|
||||||
#include "fifo.hpp"
|
#include "fifo.hpp"
|
||||||
|
|
||||||
#include "lpc43xx_cpp.hpp"
|
|
||||||
using namespace lpc43xx;
|
|
||||||
|
|
||||||
#include <ch.h>
|
#include <ch.h>
|
||||||
|
|
||||||
class MessageQueue {
|
class MessageQueue {
|
||||||
@ -111,18 +108,7 @@ private:
|
|||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void signal();
|
||||||
#if defined(LPC43XX_M0)
|
|
||||||
void signal() {
|
|
||||||
creg::m0apptxevent::assert();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(LPC43XX_M4)
|
|
||||||
void signal() {
|
|
||||||
creg::m4txevent::assert();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif/*__MESSAGE_QUEUE_H__*/
|
#endif/*__MESSAGE_QUEUE_H__*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user