#ifndef __hal_soft_time_h__ #define __hal_soft_time_h__ #include #include #include #include "sdk_common.h" #include "SEGGER_RTT.h" #include "usr_config.h" typedef void (*softtime_callback)(void); typedef struct bsp_soft_time_t { uint16_t peroid; uint8_t state; uint8_t mode; uint32_t tim; softtime_callback cb; struct bsp_soft_time_t *next; }bsp_soft_time_t; void hal_soft_time_stop(bsp_soft_time_t *soft_time_p); void hal_soft_time_restart(bsp_soft_time_t *soft_time_p); void hal_soft_time_create(bsp_soft_time_t *soft_time_p); void hal_soft_time_init(void); #endif