1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef __MAIN_TASK_H__
- #define __MAIN_TASK_H__
- #define PWR_EN_PIN GPIO_Pin_8
- #define PWR_EN_PORT GPIOB
- #define PWR_EN_HIGH PWR_EN_PORT->BSRR = PWR_EN_PIN //BSRR
- #define PWR_EN_LOW PWR_EN_PORT->BRR = PWR_EN_PIN //BRR
- extern unsigned char pocTimeOutTime;
- extern unsigned char g_ucEnterGroupFlag;
- extern unsigned char g_ucTMMode;
- extern unsigned char g_ucEnterGTNow;
- extern unsigned char modemPwrOffNow;
- extern unsigned char m_GroupSwitch;
- extern unsigned char m_GroupSwitchCnt;
- extern unsigned char m_VoiceSwitch;
- extern unsigned char m_VoiceSwitchCnt;
- extern unsigned char m_VoiceStep;
- extern unsigned char g_uslockCnt;
- extern unsigned char g_uslockflag;
- extern unsigned char Ui_LockFlag; //ÓÃÓÚ ±»Ëø½çÃæ¿É²Ù×÷PTT
- extern unsigned char m_keyreturncnt;
- extern unsigned char HeadsetPress;
- extern unsigned int HeadsetPullPress;
- extern unsigned char g_ucPF2Cnt;
- void CommHandler(void);
- void PowerCtrlInit(void);
- void EnterGTMode(void);
- void FingerDaemonfinger(void);
- void KeyHandler(void);
- void cmdShutDown(char type);
- char GetUniStringByID(char *HardIDString);
- void PowerOffProtetion(void);
- void GTMode_Detected(void);
- char isKeyPress(void);
- int GetCheckCodeByPsnMEID(char *pCheckCode,unsigned long PSN,char *pMEID);
- #endif
|