power_demo.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*================================================================
  2. Copyright (c) 2021, Quectel Wireless Solutions Co., Ltd. All rights reserved.
  3. Quectel Wireless Solutions Proprietary and Confidential.
  4. =================================================================*/
  5. /*=================================================================
  6. EDIT HISTORY FOR MODULE
  7. This section contains comments describing changes made to the module.
  8. Notice that changes are listed in reverse chronological order.
  9. WHEN WHO WHAT, WHERE, WHY
  10. ------------ ------- -------------------------------------------------------------------------------
  11. =================================================================*/
  12. #ifndef _POWER_H
  13. #define _POWER_H
  14. #include "ql_power.h"
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. /*===========================================================================
  19. * Macro Definition
  20. ===========================================================================*/
  21. #define QUEC_RESUME_SRC_PMIC (1 << 0)
  22. #define QUEC_RESUME_SRC_VAD (1 << 1)
  23. #define QUEC_RESUME_SRC_KEY (1 << 2)
  24. #define QUEC_RESUME_SRC_GPIO1 (1 << 3)
  25. #define QUEC_RESUME_SRC_UART1 (1 << 4 | 1<<5) //UART1 and UART1_RXD
  26. #define QUEC_RESUME_SRC_WCN2SYS (1 << 6)
  27. #define QUEC_RESUME_SRC_WCN_OSC (1 << 7)
  28. #define QUEC_RESUME_SRC_IDLE_TIMER1 (1 << 8)
  29. #define QUEC_RESUME_SRC_IDLE_TIMER2 (1 << 9)
  30. #define QUEC_RESUME_SRC_SELF (1 << 10)
  31. #define QUEC_RESUME_SRC_USB_MON (1 << 11)
  32. /*===========================================================================
  33. * Struct
  34. ===========================================================================*/
  35. /*===========================================================================
  36. * Functions declaration
  37. ===========================================================================*/
  38. void ql_power_app_init(void);
  39. void ql_pwrkey_app_init(void);
  40. #ifdef __cplusplus
  41. } /*"C" */
  42. #endif
  43. #endif /* _POWER_H */