WXK
2025-02-11 e328ebef585cea2351b37117b2d5ac4978ecd3c0
keil/include/drivers/mk_sleep_timer.h
@@ -57,8 +57,9 @@
struct SLEEP_TIMER_HANDLE_T
{
    enum SLEEP_TIMER_MODE_T mode;
    uint16_t enable;
    uint16_t int_en;
    uint32_t time;
    uint32_t int_en;
    int32_t ppm;
    drv_callback_t callback;
};
@@ -67,13 +68,15 @@
extern "C" {
#endif
extern struct SLEEP_TIMER_HANDLE_T sleep_timer_handle;
void sleep_timer_open(bool int_en, enum SLEEP_TIMER_MODE_T mode, drv_callback_t callback);
void sleep_timer_close(void);
void sleep_timer_start(uint32_t time);
void sleep_timer_stop(void);
uint32_t high_xtal_off_time(void);
uint32_t xtal_38m4_off_time(void);
void sleep_timer_ppm_set(int32_t ppm);
int32_t sleep_timer_ppm_get(void);