This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#include<avr/io.h>
#include<avr/pgmspace.h>
/*
** This is a simple set of UART routines for debug purposes
** It's Tx only and the baud rate is fixed (see UART_init)
*/
// Just enable the UART Tx and set baud rate for 38400 on 3.6864MHz (STK500)
voidUART_init(void);
// The classic Tx one character routine
voidUART_put(uint8_tc);
// classic Tx a C-string routine (string in PROGMEM)
voidUART_puts(constchar*str);
// this expect the first parameter to be a string in dlash (that is PSTR())
// and then the second to be a value to print out in hex. typically used in
// the form UART_putsP(PSTR("SecPerClus = "), SecPerClus)
voidUART_putsP(constchar*str,uint16_tn);
// Just outputs "\r\n"
voidUART_newline(void);
// used in printing a 2 digit hex number, outputs one of the two nibbles
// the parameter is expected to be 0..F
voidUART_putnibble(uint8_tc);
// print both nibbles of an 8 bit hex number
voidUART_puthex(uint8_tc);
// print both bytes of a 16 bit hex number
voidUART_puthex16(uint16_tn);
// print both bytes of a 32 bit hex number
voidUART_puthex32(uint32_tn);
// dump the 512 bytes at the given address in the form: