drv_lptim.h 552 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (C) 2018 Shanghai Eastsoft Microelectronics Co., Ltd.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2019-11-01 wangyq first version
  9. */
  10. #ifndef __DRV_PMTIMER_H__
  11. #define __DRV_PMTIMER_H__
  12. #include <rtthread.h>
  13. rt_uint32_t es32f0_lptim_get_countfreq(void);
  14. rt_uint32_t es32f0_lptim_get_tick_max(void);
  15. rt_uint32_t es32f0_lptim_get_current_tick(void);
  16. rt_err_t es32f0_lptim_start(rt_uint32_t load);
  17. void es32f0_lptim_stop(void);
  18. #endif /* __DRV_PMTIMER_H__ */