diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-02-18 16:46:36 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-02-18 16:46:36 +0100 |
commit | fbe7b94c9c65f2df74acd5dff7503c9833ec2579 (patch) | |
tree | 5f47a597f2f396662719c5a76ac6bf26eda69f6c /src/target/firmware/include/calypso/timer.h |
Initial import of OsmocomBB into git repository
Diffstat (limited to 'src/target/firmware/include/calypso/timer.h')
-rw-r--r-- | src/target/firmware/include/calypso/timer.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/target/firmware/include/calypso/timer.h b/src/target/firmware/include/calypso/timer.h new file mode 100644 index 00000000..96587d5a --- /dev/null +++ b/src/target/firmware/include/calypso/timer.h @@ -0,0 +1,22 @@ +#ifndef _CAL_TIMER_H +#define _CAL_TIMER_H + +/* Enable or Disable a timer */ +void hwtimer_enable(int num, int on); + +/* Configure pre-scaler and if timer is auto-reload */ +void hwtimer_config(int num, uint8_t pre_scale, int auto_reload); + +/* Load a timer with the given value */ +void hwtimer_load(int num, uint16_t val); + +/* Read the current timer value */ +uint16_t hwtimer_read(int num); + +/* Enable or disable the watchdog */ +void wdog_enable(int on); + +/* power up the timers */ +void hwtimer_init(void); + +#endif /* _CAL_TIMER_H */ |