Setup UART framework
This commit is contained in:
+1
-1
@@ -25,6 +25,6 @@
|
||||
/*
|
||||
* Functions
|
||||
*/
|
||||
unsigned short crc16(unsigned char *buf, unsigned int len);
|
||||
unsigned short crc16(const unsigned char *buf, unsigned int len);
|
||||
|
||||
#endif /* CRC_H_ */
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef USART_H_
|
||||
#define USART_H_
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
void USART1_SendPacket(const uint8_t *data, uint8_t length);
|
||||
uint8_t USART1_ReceiveByte(void);
|
||||
uint8_t USART1_ReceiveByteTimeout(uint32_t timeout);
|
||||
void USART1_Flush(void);
|
||||
|
||||
|
||||
uint16_t USART1_ReceiveUInt16(void);
|
||||
int16_t USART1_ReceiveInt16(void);
|
||||
uint32_t USART1_ReceiveUInt32(void);
|
||||
int32_t USART1_ReceiveInt32(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user