1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-25 21:18:26 +02:00
ben-wpan/atusb/fw/uart.h
Josef Filzmaier 8c574484b8 atusb/fw: Introduce DEBUG flag
This flag can be used to enable debugging over uart. Currently only
available for boards with the at90usb1287 chip.

Signed-off-by: Josef Filzmaier <j.filzmaier@gmx.at>
2017-09-13 17:45:54 +02:00

26 lines
559 B
C

/*
* fw/uart.h - Functions needed for debugging over uart
*
* Code adapted from http://www.roboternetz.de/wissen/index.php/UART_mit_avr-gcc
* and http://www.mikrocontroller.net/articles/AVR-GCC-Tutorial
*
* Published under the Creative Commons Share-Alike licence
* https://creativecommons.org/licenses/by-sa/2.0/de/
*
* S. Salewski 2007
*
* Adapted by
* Josef Filzmaier 2017
*/
#ifndef UART_H_
#define UART_H_
#include <stdio.h>
void uart_init(void);
int uart_write_char(char c, FILE* stream);
void uart_new_line(void);
#endif /* UART_H_ */