uart.h 291 B

123456789101112131415161718
  1. #ifndef __UART_H__
  2. #define __UART_H__
  3. #define CR "\r\n"
  4. #include <avr/io.h>
  5. #include <avr/pgmspace.h>
  6. #include <stdio.h>
  7. void uart_init(void);
  8. void uart_putc(const uint8_t);
  9. void uart_puts(const char *s);
  10. void uart_puts_P(PGM_P s);
  11. static int uart_stream(char c, FILE *stream);
  12. #endif