Skip to content

File Debug.hpp

FileList > fw > rbcx-coprocessor > include > utils > Debug.hpp

Go to the source code of this file.

  • #include <array>
  • #include "FreeRTOS.h"
  • #include "task.h"

Public Functions

Type Name
void DEBUG_HEX (const uint8_t * data, size_t len)
bool isInInterrupt ()
void printTaskInfo ()
void rebootToDfu ()

Macros

Type Name
define DEBUG (fmt, ...)
define DEBUGLN (fmt, ...)
define STRINGIFY (x) #x
define TOSTRING (x) STRINGIFY(x)

Public Functions Documentation

function DEBUG_HEX

inline void DEBUG_HEX (
    const uint8_t * data,
    size_t len
) 

function isInInterrupt

inline bool isInInterrupt () 

function printTaskInfo

inline void printTaskInfo () 

function rebootToDfu

void rebootToDfu () 

Macro Definition Documentation

define DEBUG

#define DEBUG (
    fmt,
    ...
) printf("[%10lu][" __FILE__ ":" TOSTRING(__LINE__) "]: " fmt,               \
        xTaskGetTickCount(), ##__VA_ARGS__)

define DEBUGLN

#define DEBUGLN (
    fmt,
    ...
) DEBUG(fmt, ##__VA_ARGS__);                                                 \
    printf("\n");

define STRINGIFY

#define STRINGIFY (
    x
) #x

define TOSTRING

#define TOSTRING (
    x
) STRINGIFY(x)

The documentation for this class was generated from the following file fw/rbcx-coprocessor/include/utils/Debug.hpp