uart.h 433 B

123456789101112131415161718192021
  1. #ifndef UART_DRIVER_H_
  2. #define UART_DRIVER_H_
  3. #include "util.h"
  4. /* UART port baud rate */
  5. #define UART_BAUD 115200
  6. #define UART_USE_2X 0
  7. void uart_putchar(char c) noinstrument;
  8. void _uart_putstr(const char PROGPTR *pstr) noinstrument;
  9. #define uart_putstr(str) _uart_putstr(PSTR(str))
  10. void uart_puthex(uint8_t val) noinstrument;
  11. void uart_init(void) noinstrument;
  12. void uart_exit(void) noinstrument;
  13. #endif /* UART_DRIVER_H_ */