uart.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * =====================================================================================
  3. *
  4. * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
  5. * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
  6. * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
  7. * X88 888 888 Y8b. X88 888 888 888 888 888 888
  8. * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
  9. *
  10. * www.optixx.org
  11. *
  12. *
  13. * Version: 1.0
  14. * Created: 07/21/2009 03:32:16 PM
  15. * Author: david@optixx.org
  16. *
  17. * =====================================================================================
  18. */
  19. #ifndef __UART_H__
  20. #define __UART_H__
  21. #define CR "\r\n"
  22. #include <avr/io.h>
  23. #include <avr/pgmspace.h>
  24. #include <stdio.h>
  25. void uart_init(void);
  26. void uart_putc(const uint8_t);
  27. void uart_puts(const char *s);
  28. void uart_puts_P(PGM_P s);
  29. static int uart_stream(char c, FILE *stream);
  30. #endif