base-station/Firmware/src/Messages/Message.h
GHOSCHT 076ee11c92 Make receiver work
Switch from mutex to bin-semaphore (thread overarching) & Proper failure handling
2023-03-30 17:53:27 +02:00

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