Prusa-Firmware/Firmware/uart2.h

29 lines
420 B
C
Raw Normal View History

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);
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)
#endif //_UART2_H