62 lines
1.1 KiB
C
62 lines
1.1 KiB
C
/*
|
|
******************************************************************************
|
|
*
|
|
* @file uart.h
|
|
* @brief uart module
|
|
*
|
|
*
|
|
* @version 1.0
|
|
* @date 2023/05/12 09:59:40
|
|
* @author Alex Xu
|
|
*
|
|
* Copyright (c) 2013-2099,Tkplusemi Technology Co.,Ltd.
|
|
* All Rights Reserved
|
|
*
|
|
* History:
|
|
* Revision Date Author Desc
|
|
* 1.0.0 2023/07/12 Alex build this file
|
|
******************************************************************************
|
|
*/
|
|
|
|
#ifndef __UART_H__
|
|
#define __UART_H__
|
|
|
|
#include "define.h"
|
|
|
|
#if UART0_ENABLE
|
|
#if 0
|
|
extern uint8_t gFun_Select_Type;
|
|
|
|
#define COM0_Data_Lenth 16
|
|
|
|
extern uint8_t RX0_Buffer[COM0_Data_Lenth]; //½ÓÊÕ»º³å
|
|
extern uint8_t RX0DataLen;
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef _DEBUG_ALL
|
|
|
|
extern char putchar (char ch);
|
|
|
|
#endif
|
|
|
|
#if UART0_ENABLE
|
|
|
|
extern void UART0_Init(void);
|
|
|
|
extern void Uart0SendData(uint8_t Txdata);
|
|
|
|
extern void Uart0SendString(char *s);
|
|
|
|
extern void Uart0SendPacket(uint8_t Length,uint8_t *TransBuf);
|
|
|
|
extern void Uart0SendString(char *s);
|
|
|
|
#endif
|
|
|
|
|
|
extern uint16_t CalCheckCrc16(uint8_t *pucFrame, unsigned int usLen);
|
|
|
|
#endif
|
|
|