From 842bb64195f958b050867c50db66fc0aa413dafb Mon Sep 17 00:00:00 2001
From: QuakeGod <quakegod@sina.com>
Date: 星期六, 27 七月 2024 10:42:56 +0800
Subject: [PATCH] KBus upgrade

---
 ComLib/Inc/functions.h |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/ComLib/Inc/functions.h b/ComLib/Inc/functions.h
index 88a23a8..14efe32 100644
--- a/ComLib/Inc/functions.h
+++ b/ComLib/Inc/functions.h
@@ -23,6 +23,21 @@
 //extern volatile unsigned int TotalRunTime;
 //extern volatile unsigned int PwrCount;				//寮�鏈烘鏁�
 
+extern unsigned char SPI1RecvBuf[64];
+extern unsigned char SPI1SendBuf[64];
+
+extern volatile unsigned char bSPI1Recving;
+extern volatile unsigned char bSPI1RecvDone;
+
+extern volatile unsigned char nSPI1RecvPos;
+extern volatile unsigned char nSPI1RecvLenInBuf;
+
+extern volatile unsigned char nSPI1ToSendLen;
+extern volatile unsigned char nSPI1SentLen;
+
+extern volatile unsigned char bSPI1Sending;
+extern volatile unsigned char bSPI1SendDone;
+
 typedef unsigned char uint8_t;
 typedef unsigned char uchar;
 typedef unsigned short uint16_t;
@@ -31,6 +46,7 @@
  
 int InituS(int TickFreq1);
 unsigned int GetuS(void);
+unsigned int GetTick(void);
 void logData(unsigned char d);
 int InitUartstat(stUartStat * pUartstat,void * pBufRx, int nSizeRx, void * pBufTx, int nSizeTx);
 int Uart1SendDMA(void * pData, int nSize);
@@ -52,6 +68,8 @@
 void Uart2SendDone(void);
 void Uart2RecvDone(void);
 int PutStr(char * str1, int len1);
+int PutStr1(char * str1, int len1);
+int PutStr2(char * str1, int len1);
 int SendPacket(int nChn, void * pBuf,int len1);
 //int SendPacket1(void * pBuf,int len1);
 //int SendPacket2(pKBPacket p1,int len1);

--
Gitblit v1.9.1