uart2.h 378 B

1234567891011121314151617181920212223242526
  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 void uart2_init(uint32_t baudRate);
  12. extern int8_t uart2_rx_str_P(const char* str);
  13. #if defined(__cplusplus)
  14. }
  15. #endif //defined(__cplusplus)
  16. #endif //_UART2_H