You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
358 B
21 lines
358 B
#ifndef __TIME_H
|
|
#define __TIME_H
|
|
|
|
#include "common.h"
|
|
|
|
#define MAX_TICK_VALUE 0xfeff
|
|
#define FOREMOST_TIME 0xff00
|
|
#define LATTERMOST_TIME 0xff01
|
|
|
|
#define MIN_INTERVAL 0
|
|
#define MAX_INTERVAL MAX_TICK_VALUE
|
|
|
|
void SYSTICK_INIT(void);
|
|
|
|
uint16_t Get1MsTickVal(void);
|
|
|
|
uint16_t Get1MsTickInterval(uint16_t wLastTickVal);
|
|
|
|
void Delay_ms(uint16_t ms);
|
|
|
|
#endif
|
|
|