mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 04:03:34 +08:00
STM32: UAVCAN_STM32_DEBUG removed
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user