1
0

uart1.h 424 B

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