32 lines
351 B
C
32 lines
351 B
C
#ifndef __DRV_TICK_H__
|
|
#define __DRV_TICK_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "global.h"
|
|
#include "math.h"
|
|
|
|
#include "tim.h"
|
|
|
|
|
|
#define HTIMER_HANDLE htim17
|
|
|
|
void tick_init(void);
|
|
|
|
void tick_count(void);
|
|
|
|
uint32_t get_msec(void);
|
|
|
|
uint32_t get_usec(void);
|
|
|
|
void delay_usec(uint32_t ticks_usec);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|