From b18daa070be10e87fe7a4ed4444334f7e41fe7dd Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Wed, 16 Apr 2014 17:27:46 +0400 Subject: [PATCH] UAVCAN_TINY does not support GTSM, NCC, TSP - saves ~900 bytes --- libuavcan/src/protocol/uc_global_time_sync_master.cpp | 5 +++++ libuavcan/src/protocol/uc_network_compat_checker.cpp | 5 +++++ libuavcan/src/protocol/uc_transport_stats_provider.cpp | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/libuavcan/src/protocol/uc_global_time_sync_master.cpp b/libuavcan/src/protocol/uc_global_time_sync_master.cpp index 3d37189759..5a29d72daf 100644 --- a/libuavcan/src/protocol/uc_global_time_sync_master.cpp +++ b/libuavcan/src/protocol/uc_global_time_sync_master.cpp @@ -2,6 +2,9 @@ * Copyright (C) 2014 Pavel Kirienko */ +#include +#if !UAVCAN_TINY + #include #include #include @@ -192,3 +195,5 @@ int GlobalTimeSyncMaster::publish() } } + +#endif diff --git a/libuavcan/src/protocol/uc_network_compat_checker.cpp b/libuavcan/src/protocol/uc_network_compat_checker.cpp index fc0e9506dc..2aa367fac1 100644 --- a/libuavcan/src/protocol/uc_network_compat_checker.cpp +++ b/libuavcan/src/protocol/uc_network_compat_checker.cpp @@ -2,6 +2,9 @@ * Copyright (C) 2014 Pavel Kirienko */ +#include +#if !UAVCAN_TINY + #include #include #include @@ -194,3 +197,5 @@ int NetworkCompatibilityChecker::publishGlobalDiscoveryRequest(INode& node) } } + +#endif diff --git a/libuavcan/src/protocol/uc_transport_stats_provider.cpp b/libuavcan/src/protocol/uc_transport_stats_provider.cpp index be56f7f82e..a8da9160b9 100644 --- a/libuavcan/src/protocol/uc_transport_stats_provider.cpp +++ b/libuavcan/src/protocol/uc_transport_stats_provider.cpp @@ -2,6 +2,9 @@ * Copyright (C) 2014 Pavel Kirienko */ +#include +#if !UAVCAN_TINY + #include namespace uavcan @@ -33,3 +36,5 @@ int TransportStatsProvider::start() } } + +#endif