2012-05-21 16:56:21 -04:00
|
|
|
#ifndef __TIMER_H
|
|
|
|
#define __TIMER_H
|
|
|
|
|
2013-03-25 09:38:58 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2012-05-21 16:56:21 -04:00
|
|
|
unsigned int get_system_frequency(void);
|
|
|
|
void timer_enable(int en);
|
|
|
|
unsigned int timer_get(void);
|
|
|
|
void timer_set_counter(unsigned int value);
|
|
|
|
void timer_set_reload(unsigned int value);
|
|
|
|
void busy_wait(unsigned int ms);
|
|
|
|
|
2013-03-25 09:38:58 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2012-05-21 16:56:21 -04:00
|
|
|
#endif /* __TIMER_H */
|