mirror of
https://gitea.ecohim.ru:3000/RS485_Relay/RS485_Relay2_fw.git
synced 2025-08-08 00:30:30 +03:00
initial commit
This commit is contained in:
13
Core/Inc/uart.h
Normal file
13
Core/Inc/uart.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#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
|
Reference in New Issue
Block a user