git-svn-id: http://moon:8086/svn/projects/HendiControl@165 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
2019-03-30 01:04:04 +00:00
parent 54ac3a2834
commit ef0daf1143
8 changed files with 0 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
/*
* uart.h
*
* Created: 20.02.2019 20:50:01
* Author: jens
*/
#ifndef UART_H_
#define UART_H_
#include "machine.h"
#define XON 17 /* XON Zeichen */
#define XOFF 19 /* XOFF Zeichen */
#define UART_PRESCALE(baudrate, smpPerBit) ((5+ 10*F_CPU / (baudrate*smpPerBit) - 1)/10)
void uart_init(uint32_t baudrate);
void uart_putc(char c);
char uart_getc(void);
void uart_puts(char const *str);
void print_byte(char byte);
void print_word(uint16_t word);
#endif /* UART_H_ */