drv_lptim.h 843 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2006-2024 RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2019-05-06 Zero-Free first version
  9. * 2024-07-04 wdfk-prog lptimer is register with hwtimer, only supports pm calls,the timer function is not supported
  10. */
  11. #ifndef __DRV_PMTIMER_H__
  12. #define __DRV_PMTIMER_H__
  13. #include <rtthread.h>
  14. /* 0x20 - 0x3F udevice control commands*/
  15. typedef enum
  16. {
  17. DRV_HW_LPTIMER_CTRL_GET_TICK_MAX = 0x20, /* get the maximum tick value*/
  18. DRV_HW_LPTIMER_CTRL_GET_FREQ = 0X21, /* get the timer frequency*/
  19. DRV_HW_LPTIMER_CTRL_START = 0X22, /* set the timeout value*/
  20. DRV_HW_LPTIMER_CTRL_GET_COUNT = 0X23, /* get the current count value*/
  21. } drv_hw_lptimer_ctrl_t;
  22. #endif /* __DRV_PMTIMER_H__ */