17 lines
336 B
C
17 lines
336 B
C
|
|
#ifndef USER_SYSTICK_CLOCK_PRESENT
|
||
|
|
#define USER_SYSTICK_CLOCK_PRESENT
|
||
|
|
|
||
|
|
extern volatile u32 Systick_TickCount;
|
||
|
|
void Clock_Init();
|
||
|
|
|
||
|
|
u32 GetDelayTick(u32 ms);
|
||
|
|
u8 IsTickOut(u32 OutTick);
|
||
|
|
u32 GetTickElapse(u32 start_tick, u32 end_tick);
|
||
|
|
void delay_ms(u32 ms);
|
||
|
|
|
||
|
|
#define GetTickCount() (Systick_TickCount)
|
||
|
|
|
||
|
|
void delay_us(uint16_t us);
|
||
|
|
|
||
|
|
#endif
|