You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
545 B

  1. #ifndef __UART_H__
  2. #define __UART_H__
  3. #include <avr/pgmspace.h>
  4. /* *********************************************************************** */
  5. void uart_init (void);
  6. void uart_putc (uint8_t data);
  7. uint8_t uart_getc (void);
  8. uint8_t uart_rx_count (void);
  9. void uart_putstr (const char *str);
  10. void uart_putstr_p (const char *str);
  11. void uart_put_hex (uint8_t data);
  12. uint8_t uart_get_hex (void);
  13. /* *********************************************************************** */
  14. #endif /* __UART_H__ */