mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-24 01:11:39 -04:00
Remove "K" parameter from FIFO template.
This commit is contained in:
parent
dfbcf5bc75
commit
d125a5c662
5 changed files with 39 additions and 15 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue