Release:5.20灰测
This commit is contained in:
29
Core/User/Os/os_timer.h
Normal file
29
Core/User/Os/os_timer.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef __OSTIMER_H
|
||||
#define __OSTIMER_H
|
||||
|
||||
/* Private includes ----------------------------------------------------------*/
|
||||
|
||||
#include "global.h"
|
||||
|
||||
/* Exported types ------------------------------------------------------------*/
|
||||
|
||||
typedef void (*SwTimerCallback_t)(TimerHandle_t xTimer);
|
||||
|
||||
/* Exported functions prototypes ---------------------------------------------*/
|
||||
|
||||
void SwTimer_Init(void);
|
||||
TimerHandle_t SwTimer_Create(const char *name,
|
||||
uint32_t period_ms,
|
||||
bool auto_reload,
|
||||
SwTimerCallback_t callback);
|
||||
void SwTimer_Start(TimerHandle_t xTimer);
|
||||
void SwTimer_Stop(TimerHandle_t xTimer);
|
||||
void SwTimer_Reset(TimerHandle_t xTimer);
|
||||
|
||||
void SwTimer_ChangePeriod(TimerHandle_t xTimer, uint32_t period_ms);
|
||||
void SwTimer_YkcTimer_Init(void);
|
||||
|
||||
/* Exported constants --------------------------------------------------------*/
|
||||
extern TimerHandle_t YkcTimerHandle;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user