uart2.h 420 B

1234567891011121314151617181920212223242526272829
  1. //uart2.h
  2. #ifndef _UART2_H
  3. #define _UART2_H
  4. #include <inttypes.h>
  5. #include <stdio.h>
  6. #if defined(__cplusplus)
  7. extern "C" {
  8. #endif //defined(__cplusplus)
  9. extern FILE _uart2io;
  10. #define uart2io (&_uart2io)
  11. //extern uint8_t uart2_ibuf[10];
  12. extern void uart2_init(void);
  13. extern uint8_t uart2_rx_clr(void);
  14. extern uint8_t uart2_rx_ok(void);
  15. #if defined(__cplusplus)
  16. }
  17. #endif //defined(__cplusplus)
  18. #endif //_UART2_H