1
0

uart0.h 424 B

1234567891011121314
  1. #ifndef UART0_DEFINED
  2. #define UART0_DEFINED
  3. #include <stdint.h>
  4. #include <avr/io.h>
  5. #include <avr/interrupt.h>
  6. void uart0_init(void); /* Initialize UART and Flush FIFOs */
  7. void uart0_deinit(void); /* Deinitialize UART */
  8. uint8_t uart0_get (void); /* Get a byte from UART Rx FIFO */
  9. uint8_t uart0_test(void); /* Check number of data in UART Rx FIFO */
  10. void uart0_put (uint8_t); /* Put a byte into UART Tx FIFO */
  11. #endif