2016-08-07 02:48:45 +02:00
|
|
|
#ifndef __ARCH_ARM_INCLUDE_CALYPSO_TIMER_H
|
|
|
|
#define __ARCH_ARM_INCLUDE_CALYPSO_TIMER_H
|
2012-03-24 18:27:38 +01:00
|
|
|
|
|
|
|
/* 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);
|
|
|
|
|
|
|
|
/* Reset cpu using watchdog */
|
|
|
|
void wdog_reset(void);
|
|
|
|
|
|
|
|
/* power up the timers */
|
|
|
|
void hwtimer_init(void);
|
|
|
|
|
2016-08-07 02:48:45 +02:00
|
|
|
#endif /* __ARCH_ARM_INCLUDE_CALYPSO_TIMER_H */
|