Setup UART framework

This commit is contained in:
Clément Grennerat
2025-09-16 12:44:17 +02:00
parent 0fa53919e0
commit a4c071bbd0
5 changed files with 137 additions and 7 deletions
+1 -1
View File
@@ -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_ */
+18
View File
@@ -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