OLE Developer Guide  Latest Git
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
usb_console.h File Reference

Detailed Description

A logging transport that uses a USB serial console.

This module is an implementation of the logging transport, that uses a CDC USB device (serial console). This has the advantage of allowing users to monitor the device's logs without requiring custom software. This worked with both minicom and Hyperterminal.

The USB Console uses a statically allocated circular buffer for the logs. If the buffer overflows, the most recent logs are discarded.

Go to the source code of this file.

Functions

void USBConsole_Initialize ()
 Initialize the USB Console module.
 
void USBConsole_Log (const char *message)
 Write a message to the console. More...
 
void USBConsole_Tasks ()
 Perform the housekeeping tasks for the USB Console.