diff options
Diffstat (limited to 'firmware/target/arm/imx233/timrot-imx233.h')
-rw-r--r-- | firmware/target/arm/imx233/timrot-imx233.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/timrot-imx233.h b/firmware/target/arm/imx233/timrot-imx233.h index f7a7bc3f8d..e033673a83 100644 --- a/firmware/target/arm/imx233/timrot-imx233.h +++ b/firmware/target/arm/imx233/timrot-imx233.h | |||
@@ -26,10 +26,28 @@ | |||
26 | 26 | ||
27 | #include "regs/regs-timrot.h" | 27 | #include "regs/regs-timrot.h" |
28 | 28 | ||
29 | /* list of timers */ | ||
30 | enum | ||
31 | { | ||
32 | TIMER_TICK, /* for tick task */ | ||
33 | TIMER_USER, /* for user timer */ | ||
34 | }; | ||
35 | |||
36 | struct imx233_timrot_info_t | ||
37 | { | ||
38 | unsigned fixed_count, run_count; | ||
39 | unsigned src; | ||
40 | unsigned prescale; | ||
41 | bool reload; | ||
42 | bool polarity; | ||
43 | bool irqen; | ||
44 | }; | ||
45 | |||
29 | typedef void (*imx233_timer_fn_t)(void); | 46 | typedef void (*imx233_timer_fn_t)(void); |
30 | 47 | ||
31 | void imx233_timrot_init(void); | 48 | void imx233_timrot_init(void); |
32 | void imx233_setup_timer(unsigned timer_nr, bool reload, unsigned count, | 49 | void imx233_timrot_setup(unsigned timer_nr, bool reload, unsigned count, |
33 | unsigned src, unsigned prescale, bool polarity, imx233_timer_fn_t fn); | 50 | unsigned src, unsigned prescale, bool polarity, imx233_timer_fn_t fn); |
51 | struct imx233_timrot_info_t imx233_timrot_get_info(unsigned timer_nr); | ||
34 | 52 | ||
35 | #endif /* TIMROT_IMX233_H */ | 53 | #endif /* TIMROT_IMX233_H */ |