StaticTransferBuffer extracted for standalone usage

This commit is contained in:
Pavel Kirienko
2014-02-20 14:06:09 +04:00
parent 4f49d61de6
commit 7c4902deb5
2 changed files with 46 additions and 18 deletions
+2 -2
View File
@@ -85,8 +85,8 @@ static const int TEST_BUFFER_SIZE = 200;
TEST(StaticTransferBuffer, Basic)
{
using uavcan::StaticTransferBuffer;
StaticTransferBuffer<TEST_BUFFER_SIZE> buf;
using uavcan::StaticTransferBufferManagerEntry;
StaticTransferBufferManagerEntry<TEST_BUFFER_SIZE> buf;
uint8_t local_buffer[TEST_BUFFER_SIZE * 2];
const uint8_t* const test_data_ptr = reinterpret_cast<const uint8_t*>(TEST_DATA.c_str());