1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-10 18:24:11 +01:00
LibrePilot/flight/targets/CopterControl/System/inc
Oleg Semyonov ce4b2f4446 pios_debug: use PIOS_INCLUDE_DEBUG_CONSOLE to DEBUG_PRINTF(level, ...)
Inconsistent use of debug macros in board definition files resulted in
BU compilation error. It was attempted to use PIOS_COM_SendFormattedStringNonBlocking()
directly even if PIOS_COM was not included (like for BootloaderUpdater).

So this function in pios_debug.c was replaced by DEBUG_PRINTF() macro.
The macro itself is defined in pios_debug.h file. Its definitions are
removed from board files. And to use it one has to define in pios_config.h:

#define PIOS_INCLUDE_DEBUG_CONSOLE
#define DEBUG_LEVEL <number>

in addition to PIOS_INCLUDE_COM with aux port.

Conflicts:
	flight/PiOS/Boards/STM32103CB_PIPXTREME_Rev1.h
	flight/PiOS/Boards/STM32F4xx_RevoMini.h
2013-03-24 13:05:51 +02:00
..
alarms.h rename: move board-specific dirs into flight/targets 2013-01-28 01:52:44 +02:00
FreeRTOSConfig.h rename: move board-specific dirs into flight/targets 2013-01-28 01:52:44 +02:00
op_config.h rename: move board-specific dirs into flight/targets 2013-01-28 01:52:44 +02:00
openpilot.h rename: move board-specific dirs into flight/targets 2013-01-28 01:52:44 +02:00
pios_board_posix.h rename: move board-specific dirs into flight/targets 2013-01-28 01:52:44 +02:00
pios_config_posix.h rename: move board-specific dirs into flight/targets 2013-01-28 01:52:44 +02:00
pios_config.h pios_debug: use PIOS_INCLUDE_DEBUG_CONSOLE to DEBUG_PRINTF(level, ...) 2013-03-24 13:05:51 +02:00
pios_usb_board_data.h rename: move board-specific dirs into flight/targets 2013-01-28 01:52:44 +02:00