GHOSCHT
076ee11c92
Switch from mutex to bin-semaphore (thread overarching) & Proper failure handling
13 lines
378 B
C++
13 lines
378 B
C++
#pragma once
|
|
#include <Arduino.h>
|
|
#include <FreeRTOS/BinarySemaphore.h>
|
|
#include <Messages/Protocol.h>
|
|
#include <etl/utility.h>
|
|
#include <etl/vector.h>
|
|
|
|
namespace message {
|
|
/// @brief first: data, second: data ready to reuse
|
|
using Message =
|
|
etl::pair<etl::vector<uint8_t, message::protocol::MAX_PAYLOAD_LEN>,
|
|
freertos::BinarySemaphore>;
|
|
} // namespace message
|