All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
APme Debugging Console

APme debugging console. Debug messages are logged here. More...

Macros

#define CON_STR_SZ   1024
 

Functions

void con_init (void)
 
void con_printf (char *fmt,...)
 
void con_dump (void)
 

Variables

static char con_buf [16384]
 
static char con_str [CON_STR_SZ]
 
static uint32_t con_str_rep
 
struct txtbuf con_tb
 

Detailed Description

APme debugging console. Debug messages are logged here.

Macro Definition Documentation

#define CON_STR_SZ   1024

Maximum size of a con_printf string

Function Documentation

void con_dump ( void  )

Dumps the console to standard output

void con_init ( void  )

Initialize the APme console

This just initializes the con_tb textbuffer

Note
Must be called before other con_* functions
void con_printf ( char *  fmt,
  ... 
)

Logs a text to the console; it uses a printf-like format

Parameters
[in]fmtprintf-like format
[in]...Additional arguments

Variable Documentation

char con_buf[16384]
static

Debugging console buffer, used for con_tb

char con_str[CON_STR_SZ]
static

Console string

uint32_t con_str_rep
static

Number of times the last message was repeated

struct txtbuf con_tb

Console textbuffer

See Also
txtbuf