Debug#

Debug Component.

This Component provides the bootloader with support for debugging functions. The Component implements two types of debugging functionality:

  • Defining SL_DEBUG_ASSERT enables assertions on compile-time configurable parameters in the bootloader

  • Defining SL_DEBUG_PRINT enables debug prints at strategic points in the code.

Macros#

#define

Assertion in bootloader.

#define

Initialize debug output.

#define

Print a string to debug out.

#define

Print a string followed by a newline to debug out.

#define

Print a character to debut out.

#define

Print a single hex byte.

#define

Print two hex bytes.

#define

Print a hex word.

#define

Print a newline.

Macro Definition Documentation#

BTL_ASSERT#

#define BTL_ASSERT
Value:
(exp)

Assertion in bootloader.


Definition at line 61 of file platform/bootloader/debug/btl_debug.h

BTL_DEBUG_INIT#

#define BTL_DEBUG_INIT
Value:
()

Initialize debug output.


Definition at line 97 of file platform/bootloader/debug/btl_debug.h

BTL_DEBUG_PRINT#

#define BTL_DEBUG_PRINT
Value:
(str)

Print a string to debug out.


Definition at line 99 of file platform/bootloader/debug/btl_debug.h

BTL_DEBUG_PRINTLN#

#define BTL_DEBUG_PRINTLN
Value:
(str)

Print a string followed by a newline to debug out.


Definition at line 101 of file platform/bootloader/debug/btl_debug.h

BTL_DEBUG_PRINTC#

#define BTL_DEBUG_PRINTC
Value:
(chr)

Print a character to debut out.


Definition at line 103 of file platform/bootloader/debug/btl_debug.h

BTL_DEBUG_PRINT_CHAR_HEX#

#define BTL_DEBUG_PRINT_CHAR_HEX
Value:
(number)

Print a single hex byte.


Definition at line 105 of file platform/bootloader/debug/btl_debug.h

BTL_DEBUG_PRINT_SHORT_HEX#

#define BTL_DEBUG_PRINT_SHORT_HEX
Value:
(number)

Print two hex bytes.


Definition at line 107 of file platform/bootloader/debug/btl_debug.h

BTL_DEBUG_PRINT_WORD_HEX#

#define BTL_DEBUG_PRINT_WORD_HEX
Value:
(number)

Print a hex word.


Definition at line 109 of file platform/bootloader/debug/btl_debug.h

BTL_DEBUG_PRINT_LF#

#define BTL_DEBUG_PRINT_LF
Value:
()

Print a newline.


Definition at line 111 of file platform/bootloader/debug/btl_debug.h