2025-02-18 10:13:34 +08:00

21 lines
347 B
C

#ifndef __UART_H__
#define __UART_H__
#include "main.h"
#include <stdint.h>
struct UARTOpStruct
{
uint8_t *TxBuf;
uint8_t TxLen;
uint8_t TxOpc;
uint8_t RxBuf[20];
uint8_t RxLen;
};
extern void Uartx_Init(UART_Type *UARTx);
extern void LedInit(void);
extern void UserInit(void);
extern void ClockInit(uint32_t clock);
#endif