From 9aed5d7e7b3c7bf09da712e9c272ece401a7acc9 Mon Sep 17 00:00:00 2001 From: QuakeGod <QuakeGod@sina.com> Date: 星期一, 25 十一月 2024 14:51:23 +0800 Subject: [PATCH] add UltraSonic and MultiWireLess --- ComLib/Inc/KMachine.h | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ComLib/Inc/KMachine.h b/ComLib/Inc/KMachine.h index 4ced75d..552804e 100644 --- a/ComLib/Inc/KMachine.h +++ b/ComLib/Inc/KMachine.h @@ -528,17 +528,25 @@ uchar nMaxStations; uchar nCurStations; uchar nHealth; - void * pPortConfig; short PortConfigType; short PortConfigSize; - void * pPortRunStatus; short PortRunStatType; short PortRunStatSize; + void * pInstance; //閫氫俊缁撴瀯瀹炰綋 + void * pPortConfig; + void * pPortRunStatus; CommFuncDef ReqCommFunc; //閫氫俊璇锋眰鍑芥暟鎸囬拡 // func2 CommReq; }stPortDef,* pstPortDef; + + +typedef struct tagPortPtDef +{ + void * pt; + +}stPortPtDef,* pstPortPtDef; typedef struct tagInterComm { @@ -630,8 +638,8 @@ extern const stKMInfoBlock KMInfoBlock; extern const stStoredKMSysCfg KMDefaultSysCfg; -extern volatile int PowerDownEvent; -extern volatile int OldPowerDownEvent; +extern volatile int PowerDownFlag; +extern volatile int OldPowerDownFlag; extern volatile int OldPowerDownEventTime; int KMachineInit(void); -- Gitblit v1.9.1