From a9312568cde771d4b970445e1f66a04fabb64d56 Mon Sep 17 00:00:00 2001
From: QuakeGod <QuakeGod@sina.com>
Date: 星期三, 01 二月 2023 14:07:14 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/Radio' into dev1

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

diff --git a/Inc/GlobalDef.h b/Inc/GlobalDef.h
index df1ea22..3d41162 100644
--- a/Inc/GlobalDef.h
+++ b/Inc/GlobalDef.h
@@ -43,7 +43,8 @@
 	
 };
 
-#define BOARD_TYPE 9
+#define BOARD_TYPE 16 
+#define BOARD_VER 1
 #define XLAT_FREQ 8
 #define BOARD_VER 1
 
@@ -57,6 +58,22 @@
 
 #define GetBoardType() (BOARD_TYPE)
 
+#if (	BOARD_TYPE == 1)
+#define DINPUT		4
+#define DOUTPUT		4
+#elif 	(BOARD_TYPE == 2 || BOARD_TYPE == 4 || BOARD_TYPE == 6 || BOARD_TYPE == 8 || BOARD_TYPE == 10 || BOARD_TYPE == 11 || BOARD_TYPE == 16)
+#define DINPUT		8
+#define DOUTPUT		8
+#elif BOARD_TYPE == 3 || BOARD_TYPE == 5 || BOARD_TYPE == 7 || BOARD_TYPE == 9 || BOARD_TYPE == 13 || BOARD_TYPE == 15 
+#define DINPUT		16
+#define DOUTPUT		16
+#elif  BOARD_TYPE == 14 
+#define DINPUT		0
+#define DOUTPUT		6
+#else 
+#define DINPUT		0
+#define DOUTPUT		0
+#endif
 extern volatile int PendSvCount;
 
 typedef struct tagUartStat

--
Gitblit v1.9.1