mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-20 21:47:41 +00:00
Remove "K" parameter from FIFO template.
This commit is contained in:
@@ -32,10 +32,13 @@ using namespace lpc43xx;
|
||||
|
||||
#include <ch.h>
|
||||
|
||||
template<size_t K>
|
||||
class MessageQueue {
|
||||
public:
|
||||
MessageQueue() {
|
||||
MessageQueue(
|
||||
uint8_t* const data,
|
||||
size_t k
|
||||
) : fifo { data, k }
|
||||
{
|
||||
chMtxInit(&mutex_write);
|
||||
}
|
||||
|
||||
@@ -80,7 +83,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
FIFO<uint8_t, K> fifo;
|
||||
FIFO<uint8_t> fifo;
|
||||
Mutex mutex_write;
|
||||
|
||||
bool push(const void* const buf, const size_t len) {
|
||||
|
Reference in New Issue
Block a user