Transport CRC will not use table in UAVCAN_TINY builds

This commit is contained in:
Pavel Kirienko
2014-04-16 17:19:05 +04:00
parent f8b10ab003
commit a298ad9ba2
2 changed files with 25 additions and 1 deletions
+4 -1
View File
@@ -2,12 +2,13 @@
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
*/
#include <cassert>
#include <uavcan/transport/crc.hpp>
namespace uavcan
{
#if !UAVCAN_TINY
// print ', '.join(map(lambda x: '%04x' % x, map(lambda x: int(x, 0), c.crc_ccitt_tab)))
const uint16_t TransferCRC::Table[256] =
{
@@ -45,4 +46,6 @@ const uint16_t TransferCRC::Table[256] =
0x6e17, 0x7e36, 0x4e55, 0x5e74, 0x2e93, 0x3eb2, 0x0ed1, 0x1ef0
};
#endif
}