lpm.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /******************************************************************************
  2. * Copyright (C) 2021, Xiaohua Semiconductor Co., Ltd. All rights reserved.
  3. *
  4. * This software component is licensed by XHSC under BSD 3-Clause license
  5. * (the "License"); You may not use this file except in compliance with the
  6. * License. You may obtain a copy of the License at:
  7. * opensource.org/licenses/BSD-3-Clause
  8. *
  9. ******************************************************************************/
  10. /******************************************************************************
  11. * @file lpm.h
  12. *
  13. * @brief Header file for Low Power Mode functions
  14. *
  15. * @author MADS Team
  16. *
  17. ******************************************************************************/
  18. #ifndef __LPM_H__
  19. #define __LPM_H__
  20. /*****************************************************************************
  21. * Include files
  22. *****************************************************************************/
  23. #include "ddl.h"
  24. #ifdef __cplusplus
  25. extern "C"
  26. {
  27. #endif
  28. /**
  29. *******************************************************************************
  30. ** \defgroup LpmGroup Low Power Management (LPM)
  31. **
  32. **
  33. ******************************************************************************/
  34. //@{
  35. /******************************************************************************
  36. ** Global pre-processor symbols/macros ('#define')
  37. ******************************************************************************/
  38. /******************************************************************************
  39. * Global type definitions
  40. ******************************************************************************/
  41. /******************************************************************************
  42. * Global variable declarations ('extern', definition in C source)
  43. *****************************************************************************/
  44. /******************************************************************************
  45. * Global function prototypes (definition in C source)
  46. *****************************************************************************/
  47. ///<功能配置及操作函数
  48. ///<进入普通休眠模式
  49. void Lpm_GotoSleep(boolean_t bOnExit);
  50. ///<进入深度休眠模式
  51. void Lpm_GotoDeepSleep(boolean_t bOnExit);
  52. //@} // LpmGroup
  53. #ifdef __cplusplus
  54. #endif
  55. #endif /* __LPM_H__ */
  56. /******************************************************************************
  57. * EOF (not truncated)
  58. *****************************************************************************/