| | |
| | | //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; |
| | |
| | | void TriggerPendSV(void); |
| | | void PendSvCallBack(void); |
| | | void SPI1_IRQ_CallBack(void); |
| | | |
| | | void DelayUs(int nUs); |
| | | void Delay100nS(int n100nS); |
| | | void Uart1SendDone(void); |
| | | void Uart1RecvDone(void); |
| | | 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); |
| | |
| | | void displayInput(unsigned int cc); |
| | | void PutOutputSPI1(unsigned int Y); |
| | | |
| | | uint16_t SPI_Flash_ReadID(void); |
| | | |
| | | #endif /* __MYFUNCTIONS_H__ */ |