From 1fb934cda3067a81f82a7add0fa5b39f5ebf3094 Mon Sep 17 00:00:00 2001 From: QuakeGod <quakegod@sina.com> Date: 星期四, 08 八月 2024 15:17:14 +0800 Subject: [PATCH] Kw Radio, V1.15 new standard --- ComLib/Src/GlobalDef.c | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/ComLib/Src/GlobalDef.c b/ComLib/Src/GlobalDef.c index 80d0783..5eaa151 100644 --- a/ComLib/Src/GlobalDef.c +++ b/ComLib/Src/GlobalDef.c @@ -17,22 +17,22 @@ unsigned int Uart1Baud = DefaultUart1Baud; unsigned int Uart2Baud = DefaultUart2Baud; -unsigned char Uart1RecvBuf1[128]; -int Uart1RecvBuf1DataLen=0; -unsigned char Uart1RecvBuf2[128]; -int Uart1RecvBuf2DataLen=0; +unsigned char Uart1RecvBuf1[Uart1RecvBufSize]; +unsigned short Uart1RecvBuf1DataLen=0; +//unsigned char Uart1RecvBuf2[128]; +//int Uart1RecvBuf2DataLen=0; unsigned char Uart2RecvBuf1[128]; -int Uart2RecvBuf1DataLen=0; -unsigned char Uart2RecvBuf2[128]; -int Uart2RecvBuf2DataLen=0; +unsigned short Uart2RecvBuf1DataLen=0; +//unsigned char Uart2RecvBuf2[128]; +//int Uart2RecvBuf2DataLen=0; -volatile int Uart1BaudGot=0; -volatile int Uart1BaudFirstGot=0; -volatile int Uart1DmaInts=0; -volatile int Uart2BaudGot=0; -volatile int Uart2BaudFirstGot=0; -volatile int Uart2DmaInts=0; +volatile char Uart1BaudGot=0; +volatile char Uart1BaudFirstGot=0; +volatile char Uart1DmaInts=0; +volatile char Uart2BaudGot=0; +volatile char Uart2BaudFirstGot=0; +volatile char Uart2DmaInts=0; volatile int SysConfigs; -- Gitblit v1.9.1