uart1.h 579 B

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