21 lines
385 B
C
21 lines
385 B
C
#ifndef __TIMER_H__
|
|
#define __TIMER_H__
|
|
|
|
// Includes:
|
|
|
|
#include "peripherals/pit.h"
|
|
|
|
// Macros:
|
|
|
|
#define TIMER_INTERVAL_MSEC 1
|
|
|
|
// Functions:
|
|
|
|
void Timer_Init(void);
|
|
uint32_t Timer_GetCurrentTime();
|
|
void Timer_SetCurrentTime(uint32_t *time);
|
|
uint32_t Timer_GetElapsedTime(uint32_t *time);
|
|
uint32_t Timer_GetElapsedTimeAndSetCurrent(uint32_t *time);
|
|
|
|
#endif
|