uart.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * =====================================================================================
  3. *
  4. * ________ .__ __ ________ ____ ________
  5. * \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
  6. * / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
  7. * / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
  8. * \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
  9. * \__> \/ \/ \/ \/ \/
  10. *
  11. * www.optixx.org
  12. *
  13. *
  14. * Version: 1.0
  15. * Created: 07/21/2009 03:32:16 PM
  16. * Author: david@optixx.org
  17. *
  18. * =====================================================================================
  19. */
  20. #ifndef __UART_H__
  21. #define __UART_H__
  22. #define CR "\r\n"
  23. #include <avr/io.h>
  24. #include <avr/pgmspace.h>
  25. #include <stdio.h>
  26. void uart_init(void);
  27. void uart_putc(const uint8_t);
  28. void uart_puts(const char *s);
  29. void uart_puts_P(PGM_P s);
  30. #endif