2 * Luminary Micro Stellaris General Purpose Timer Module
4 * Copyright (c) 2006 CodeSourcery.
5 * Written by Paul Brook
7 * This code is licensed under the GPL.
10 #ifndef HW_TIMER_STELLARIS_GPTM_H
11 #define HW_TIMER_STELLARIS_GPTM_H
13 #include "qom/object.h"
14 #include "hw/sysbus.h"
18 #define TYPE_STELLARIS_GPTM "stellaris-gptm"
19 OBJECT_DECLARE_SIMPLE_TYPE(gptm_state
, STELLARIS_GPTM
)
23 * + sysbus MMIO region 0: register bank
24 * + sysbus IRQ 0: timer interrupt
25 * + unnamed GPIO output 0: trigger output for the ADC
26 * + Clock input "clk": the 32-bit countdown timer runs at this speed
29 SysBusDevice parent_obj
;
40 uint32_t match_prescale
[2];
43 struct gptm_state
*opaque
[2];
45 /* The timers have an alternate output used to trigger the ADC. */