dbgu.h
Default mainpageat91libperipheralsdbgudbgu.h
Description Overview  
Description
Purpose
This module provides definitions and functions for using the Debug Unit (DBGU).

It also overloads the fputc(), fputs() & putchar() functions so the printf() method outputs its data on the DBGU. This behavior can be suppressed by defining NOFPUT during compilation.

Usage
  1. Enable the DBGU pins (see pio & board.h).
  2. Configure the DBGU using DBGU_Configure with the desired operating mode.
  3. Send characters using DBGU_PutChar() or the printf() method.
  4. Receive characters using DBGU_GetChar().
Notes
  • Unless specified, all the functions defined here operate synchronously; i.e. they all wait the data is sent/received before returning.