mirror of
https://gitea.ecohim.ru:3000/RS485_Relay/RS485_Relay2_fw.git
synced 2025-08-07 16:20:30 +03:00
14 lines
366 B
C
14 lines
366 B
C
#ifndef __UART_H
|
|
#define __UART_H
|
|
#include <stdint.h>
|
|
|
|
#define RET_OK 0
|
|
#define RET_OVERFLOW 1
|
|
#define RET_TIMEOUT 2
|
|
|
|
uint8_t UART_Transmit_IT(uint8_t * data, uint16_t len, uint16_t timeout);
|
|
uint8_t UART_Receive_IT(uint8_t * data, uint16_t len, uint16_t timeout);
|
|
extern void UART_TxCpltCallback(void);
|
|
extern void UART_RxCpltCallback(void);
|
|
#endif
|