2023-03-25 18:10:25 +01:00
|
|
|
#pragma once
|
|
|
|
#include <Arduino.h>
|
2023-03-30 17:53:27 +02:00
|
|
|
#include <FreeRTOS/BinarySemaphore.h>
|
2023-03-25 18:10:25 +01:00
|
|
|
#include <Messages/Protocol.h>
|
|
|
|
#include <etl/utility.h>
|
|
|
|
#include <etl/vector.h>
|
|
|
|
|
|
|
|
namespace message {
|
2023-03-30 17:53:27 +02:00
|
|
|
/// @brief first: data, second: data ready to reuse
|
2023-03-25 18:10:25 +01:00
|
|
|
using Message =
|
|
|
|
etl::pair<etl::vector<uint8_t, message::protocol::MAX_PAYLOAD_LEN>,
|
2023-03-30 17:53:27 +02:00
|
|
|
freertos::BinarySemaphore>;
|
2023-03-25 18:10:25 +01:00
|
|
|
} // namespace message
|