SY883x_For_Client_JLAB_JS07/UsrInc/uart/uart.h

51 lines
1005 B
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"
#define Baud_Rate0 9600//115200//19200//38400//93750
#define S0REL_VALUE (1024-345600/Baud_Rate0)
#define COM0_Data_Lenth 7
#ifdef _DEBUG_ALL
extern char putchar (char ch);
#endif
#if UART0_ENABLE
#ifdef VOX_RX
extern idata uint8_t RX0_Buffer[COM0_Data_Lenth]; //?¨®¨º??o3?
extern bit Uart0_RX_Finish_Flag;
#endif
extern void Uart0SendPacket(uint8_t Length,uint8_t *TransBuf);
#endif
#endif