From 6126f6a78b14297cefb02f06ba58806767d424b5 Mon Sep 17 00:00:00 2001
From: QuakeGod <QuakeGod@sina.com>
Date: 星期三, 01 二月 2023 12:05:29 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/FP0' into kNet

---
 Inc/GlobalDef.h |   45 ++++++++++++++++++++++++++-------------------
 1 files changed, 26 insertions(+), 19 deletions(-)

diff --git a/Inc/GlobalDef.h b/Inc/GlobalDef.h
index 6918fcc..df1ea22 100644
--- a/Inc/GlobalDef.h
+++ b/Inc/GlobalDef.h
@@ -36,17 +36,24 @@
 	BOARD_V42_SLAVE,		//10	New V4.2 Slave 8 in 8 o	
 	
 	BOARD_V30_MINI	=11,		//11  Mini Board
-	
 	BOARD_V45_NET = 13,
-
 	BOARD_EXT_FP0 = 14,
+	BOARD_V50_RADIO_16 = 15, 
+	BOARD_V50_RADIO_8 = 16, 
 	
-	BOARD_V50_RADIO = 15, 
 };
 
-#define BOARD_TYPE 14
-#define XLAT_FREQ 12
+#define BOARD_TYPE 9
+#define XLAT_FREQ 8
+#define BOARD_VER 1
 
+#if (BOARD_TYPE == 11)
+#define XLAT_FREQ 12
+#elif (BOARD_TYPE == 14)
+#define XLAT_FREQ 12
+#else 
+#define XLAT_FREQ 8
+#endif
 
 #define GetBoardType() (BOARD_TYPE)
 
@@ -54,13 +61,13 @@
 
 typedef struct tagUartStat
 {
-	volatile int Inited;
-	volatile int RecvBytes;
 	volatile int SendBytes;
-	volatile int Sending;
-	volatile int Recving;
-	volatile int UseAltRecvBuf;
-	volatile int IntCount;
+	volatile int RecvBytes;
+	volatile char bInited;
+	volatile char bSending;
+	volatile char bRecving;
+	volatile char bUseAltRecvBuf;
+	volatile int IRQCount;
 	volatile int RXNECount;
 	volatile int TXECount;	
 	volatile int PECount;
@@ -91,21 +98,21 @@
 
 extern unsigned char Uart1RecvBuf1[128];
 extern int Uart1RecvBuf1DataLen;
-extern unsigned char Uart1RecvBuf2[128];
-extern int Uart1RecvBuf2DataLen;
+//extern unsigned char Uart1RecvBuf2[128];
+//extern int Uart1RecvBuf2DataLen;
 
 extern unsigned char Uart2RecvBuf1[128];
 extern int Uart2RecvBuf1DataLen;
-extern unsigned char Uart2RecvBuf2[128];
-extern int Uart2RecvBuf2DataLen;
+//extern unsigned char Uart2RecvBuf2[128];
+//extern int Uart2RecvBuf2DataLen;
 
 extern volatile int Uart1BaudGot;
 extern volatile int Uart1BaudFirstGot;
-extern volatile int Uart2BaudGot;
-extern volatile int Uart2BaudFirstGot;
+//extern volatile int Uart2BaudGot;
+//extern volatile int Uart2BaudFirstGot;
 
-extern volatile int Uart1DmaInts;
-extern volatile int Uart2DmaInts;
+//extern volatile int Uart1DmaInts;
+//extern volatile int Uart2DmaInts;
 
 struct stSysConfig{
 	int bInited:1;

--
Gitblit v1.9.1