2019-05-06 18:30:24 +08:00
|
|
|
/*
|
2023-01-09 10:20:16 +08:00
|
|
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
2019-05-06 18:30:24 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
2019-05-07 21:03:48 +08:00
|
|
|
* 2019-05-06 Zero-Free first version
|
2019-05-06 18:30:24 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DRV_PMTIMER_H__
|
|
|
|
#define __DRV_PMTIMER_H__
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
|
|
|
|
rt_uint32_t stm32l4_lptim_get_countfreq(void);
|
|
|
|
rt_uint32_t stm32l4_lptim_get_tick_max(void);
|
|
|
|
rt_uint32_t stm32l4_lptim_get_current_tick(void);
|
|
|
|
|
|
|
|
rt_err_t stm32l4_lptim_start(rt_uint32_t load);
|
|
|
|
void stm32l4_lptim_stop(void);
|
|
|
|
|
|
|
|
#endif /* __DRV_PMTIMER_H__ */
|