SLEEP.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /********************************** (C) COPYRIGHT *******************************
  2. * File Name : SLEEP.h
  3. * Author : WCH
  4. * Version : V1.0
  5. * Date : 2018/11/12
  6. * Description :
  7. *********************************************************************************
  8. * Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
  9. * Attention: This software (modified or not) and binary are used for
  10. * microcontroller manufactured by Nanjing Qinheng Microelectronics.
  11. *******************************************************************************/
  12. /******************************************************************************/
  13. #ifndef __SLEEP_H
  14. #define __SLEEP_H
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. /*********************************************************************
  19. * GLOBAL VARIABLES
  20. */
  21. /*********************************************************************
  22. * FUNCTIONS
  23. */
  24. /**
  25. * @brief Configure sleep Wake-up source - RTC wake up, trigger mode
  26. */
  27. extern void HAL_SleepInit(void);
  28. /**
  29. * @brief Start sleep
  30. *
  31. * @param time - Wake-up time (RTC absolute value)
  32. *
  33. * @return state.
  34. */
  35. extern uint32_t BLE_LowPower(uint32_t time);
  36. /*********************************************************************
  37. *********************************************************************/
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41. #endif