mainTask.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef __MAIN_TASK_H__
  2. #define __MAIN_TASK_H__
  3. #define PWR_EN_PIN GPIO_Pin_8
  4. #define PWR_EN_PORT GPIOB
  5. #define PWR_EN_HIGH PWR_EN_PORT->BSRR = PWR_EN_PIN //BSRR
  6. #define PWR_EN_LOW PWR_EN_PORT->BRR = PWR_EN_PIN //BRR
  7. extern unsigned char pocTimeOutTime;
  8. extern unsigned char g_ucEnterGroupFlag;
  9. extern unsigned char g_ucTMMode;
  10. extern unsigned char g_ucEnterGTNow;
  11. extern unsigned char modemPwrOffNow;
  12. extern unsigned char m_GroupSwitch;
  13. extern unsigned char m_GroupSwitchCnt;
  14. extern unsigned char m_VoiceSwitch;
  15. extern unsigned char m_VoiceSwitchCnt;
  16. extern unsigned char m_VoiceStep;
  17. extern unsigned char g_uslockCnt;
  18. extern unsigned char g_uslockflag;
  19. extern unsigned char Ui_LockFlag; //ÓÃÓÚ ±»Ëø½çÃæ¿É²Ù×÷PTT
  20. extern unsigned char m_keyreturncnt;
  21. extern unsigned char HeadsetPress;
  22. extern unsigned int HeadsetPullPress;
  23. extern unsigned char g_ucPF2Cnt;
  24. void CommHandler(void);
  25. void PowerCtrlInit(void);
  26. void EnterGTMode(void);
  27. void FingerDaemonfinger(void);
  28. void KeyHandler(void);
  29. void cmdShutDown(char type);
  30. char GetUniStringByID(char *HardIDString);
  31. void PowerOffProtetion(void);
  32. void GTMode_Detected(void);
  33. char isKeyPress(void);
  34. int GetCheckCodeByPsnMEID(char *pCheckCode,unsigned long PSN,char *pMEID);
  35. #endif