From 59fd0224e0d8edcb453f7b225450a1530987930f Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Fri, 11 Apr 2014 00:01:34 +0400 Subject: [PATCH] STM32: UAVCAN_STM32_DEBUG removed --- .../stm32/driver/src/internal.hpp | 21 ------------------- .../stm32/test_stm32f107/Makefile | 1 - 2 files changed, 22 deletions(-) diff --git a/libuavcan_drivers/stm32/driver/src/internal.hpp b/libuavcan_drivers/stm32/driver/src/internal.hpp index 76e041e31a..f367717e83 100644 --- a/libuavcan_drivers/stm32/driver/src/internal.hpp +++ b/libuavcan_drivers/stm32/driver/src/internal.hpp @@ -47,27 +47,6 @@ # error UAVCAN_STM32_TIMER_NUMBER #endif -/** - * Driver debug output - */ -#if UAVCAN_STM32_DEBUG -# if __GNUC__ -__attribute__ ((format(printf, 1, 2))) -# endif -static void UAVCAN_STM32_TRACE(const char* fmt, ...) -{ - (void)UAVCAN_STM32_TRACE; - va_list args; - (void)std::printf("UAVCAN: STM32: "); - va_start(args, fmt); - (void)std::vprintf(fmt, args); - va_end(args); - (void)std::puts(""); -} -#else -# define UAVCAN_STM32_TRACE(...) ((void)0) -#endif - /** * Glue macros */ diff --git a/libuavcan_drivers/stm32/test_stm32f107/Makefile b/libuavcan_drivers/stm32/test_stm32f107/Makefile index 6f4e8d1abd..433059fa7a 100644 --- a/libuavcan_drivers/stm32/test_stm32f107/Makefile +++ b/libuavcan_drivers/stm32/test_stm32f107/Makefile @@ -16,7 +16,6 @@ CPPSRC = src/main.cpp src/dummy.cpp UDEFS = -DUAVCAN_STM32_CHIBIOS=1 \ -DUAVCAN_STM32_TIMER_NUMBER=6 \ - -DUAVCAN_STM32_DEBUG=1 \ -DUAVCAN_MEM_POOL_BLOCK_SIZE=56 \ -DUAVCAN_TOSTRING=0