2018-07-09 11:57:36 +00:00
|
|
|
//uart2.h
|
|
|
|
#ifndef _UART2_H
|
|
|
|
#define _UART2_H
|
|
|
|
|
|
|
|
#include <inttypes.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif //defined(__cplusplus)
|
|
|
|
|
|
|
|
|
|
|
|
extern FILE _uart2io;
|
|
|
|
#define uart2io (&_uart2io)
|
|
|
|
|
|
|
|
//extern uint8_t uart2_ibuf[10];
|
|
|
|
|
|
|
|
extern void uart2_init(void);
|
|
|
|
|
2018-07-17 09:28:44 +00:00
|
|
|
extern uint8_t uart2_rx_clr(void);
|
2018-07-09 11:57:36 +00:00
|
|
|
|
|
|
|
extern uint8_t uart2_rx_ok(void);
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif //defined(__cplusplus)
|
2018-07-17 09:28:44 +00:00
|
|
|
#endif //_UART2_H
|