18 extern unsigned long _heap_start;
19 extern unsigned long _heap_end;
20 extern char *__brkval;
44 template <
typename Arg>
void print_args(std::ostream &oss,
const Arg &arg) {
74 template <
typename Arg,
typename... Args>
75 void print_args(std::ostream &oss,
const Arg &arg,
const Args &...args) {
87 template <
typename... Args>
90 std::ostringstream oss;
115 Serial.println(oss.str().c_str());
126 template <
typename... Args>
128 #ifdef DEBUG_PRINT_RAPID
Headers and definitions common to all COSMOS Kernel.
Helper functions and debugging tools.
Definition: helpers.cpp:10
void connect_serial_debug(long baud)
Connects to a computer over USB Serial for debugging.
Definition: helpers.cpp:16
void print_args(std::ostream &oss, const Arg &arg)
Base case of the recursive debug print.
Definition: helpers.h:44
void print_debug_rapid(Short_Name channel, const Args &...args)
Helper function to print debug messages quickly.
Definition: helpers.h:127
void print_hexdump(Short_Name channel, const char *msg, uint8_t *src, uint8_t size)
Helper function to print the hexdump of a region of memory.
Definition: helpers.cpp:32
Short_Name
Enumeration of channels calling helper functions.
Definition: helpers.h:25
void print_debug(Short_Name channel, const Args &...args)
Helper function to print debug messages.
Definition: helpers.h:88