- fixed baudrate calculation [Bootloader] - set baudrate top 115200 [HendiCtrl] - set baudrate top 115200 - revised and fixed command interpreter - added new commands: SW_VERSION, SW_IDENTIFIER, DEBUG on/on, Remote enter, Remote exit - oven is switched off on entering / exiting remote git-svn-id: http://moon:8086/svn/projects/HendiControl@173 fda53097-d464-4ada-af97-ba876c37ca34
23 lines
423 B
C
23 lines
423 B
C
/*
|
|
* uart.h
|
|
*
|
|
* Created: 20.02.2019 20:50:01
|
|
* Author: jens
|
|
*/
|
|
|
|
|
|
#ifndef UART_H_
|
|
#define UART_H_
|
|
|
|
#include "machine.h"
|
|
#include "fifo.h"
|
|
|
|
#define UART_PRESCALE(baudrate, smpPerBit) ((5 + (10*F_CPU) / (baudrate*smpPerBit))/10)
|
|
|
|
void uart_init(Fifo *pFifo, uint32_t baudrate);
|
|
void uart_putc(char c);
|
|
int uart_putchar(char c, FILE *stream);
|
|
void uart_puts(char const *str);
|
|
|
|
|
|
#endif /* UART_H_ */ |