| | |
| | | extern volatile unsigned int CurTickuS;
|
| | | //extern volatile unsigned int ThisRunTime;
|
| | | //extern volatile unsigned int TotalRunTime;
|
| | | //extern volatile unsigned int PwrCount; //开机次数
|
| | | //extern volatile unsigned int PwrCount; //开机次数
|
| | |
|
| | | typedef unsigned char uint8_t;
|
| | | typedef unsigned char uchar;
|
| | |
| | |
|
| | | int InituS(int TickFreq1);
|
| | | unsigned int GetuS(void);
|
| | |
|
| | | void logData(unsigned char d);
|
| | | int InitUartstat(stUartStat * pUartstat,void * pBufRx, int nSizeRx, void * pBufTx, int nSizeTx);
|
| | | int Uart1SendDMA(void * pData, int nSize);
|
| | | int Uart1TriggerSendDMA(void );
|
| | |
| | | int PutStr(char * str1, int len1);
|
| | | int SendPacket(int nChn, void * pBuf,int len1);
|
| | | //int SendPacket1(void * pBuf,int len1);
|
| | | //int SendPacket2(pPacket p1,int len1);
|
| | | //int SendPacket2(pKBPacket p1,int len1);
|
| | | void ToggleRunLed(void );
|
| | | void ToggleErrLed(void );
|
| | | void ToggleErr2Led(void );
|
| | | void ToggleOutStat(void );
|
| | | int ReadJumperSW(void );
|
| | | void SetRunLed(uchar bOn);
|
| | | void SetErrLed(uchar bOn);
|
| | | void SetErr2Led(uchar bOn);
|
| | | void SetOutStat(uchar bOn);
|
| | | void Enable595(uchar bEnable);
|
| | | unsigned int GetInput(void );
|