Microchip® Advanced Software Framework

print_funcs.c File Reference
#include "compiler.h"
#include "gpio.h"
#include "usart.h"
#include "print_funcs.h"

Functions

void init_dbg_rs232 (long pba_hz)
 Sets up DBG_USART with 8N1 at DBG_USART_BAUDRATE. More...
 
void init_dbg_rs232_ex (unsigned long baudrate, long pba_hz)
 Sets up DBG_USART with 8N1 at a given baud rate. More...
 
void print (volatile avr32_usart_t *usart, const char *str)
 Prints a string of characters to a given USART. More...
 
void print_char (volatile avr32_usart_t *usart, int c)
 Prints a character to a given USART. More...
 
void print_char_hex (volatile avr32_usart_t *usart, unsigned char n)
 Prints a char to a given USART in an hexadecimal representation. More...
 
void print_dbg (const char *str)
 Prints a string of characters to DBG_USART. More...
 
void print_dbg_char (int c)
 Prints a character to DBG_USART. More...
 
void print_dbg_char_hex (unsigned char n)
 Prints a char to DBG_USART in an hexadecimal representation. More...
 
void print_dbg_hex (unsigned long n)
 Prints an integer to DBG_USART in an hexadecimal representation. More...
 
void print_dbg_short_hex (unsigned short n)
 Prints a short integer to DBG_USART in an hexadecimal representation. More...
 
void print_dbg_ulong (unsigned long n)
 Prints an integer to DBG_USART in a decimal representation. More...
 
void print_hex (volatile avr32_usart_t *usart, unsigned long n)
 Prints an integer to a given USART in an hexadecimal representation. More...
 
void print_short_hex (volatile avr32_usart_t *usart, unsigned short n)
 Prints a short integer to a given USART in an hexadecimal representation. More...
 
void print_ulong (volatile avr32_usart_t *usart, unsigned long n)
 Prints an integer to a given USART in a decimal representation. More...
 

Variables

static const char HEX_DIGITS [16] = "0123456789ABCDEF"
 ASCII representation of hexadecimal digits. More...
 

const char HEX_DIGITS[16] = "0123456789ABCDEF"
static

ASCII representation of hexadecimal digits.

Referenced by print_char_hex(), print_hex(), and print_short_hex().