4 * Copyright (c) 2006-2007 CodeSourcery.
5 * Written by Paul Brook
6 * Copyright (c) 2017 Linaro Ltd
7 * Written by Peter Maydell
9 * This code is licensed under the GPL (version 2 or later).
12 #ifndef HW_TIMER_ARMV7M_SYSTICK_H
13 #define HW_TIMER_ARMV7M_SYSTICK_H
15 #include "hw/sysbus.h"
16 #include "qom/object.h"
17 #include "hw/ptimer.h"
20 #define TYPE_SYSTICK "armv7m_systick"
22 OBJECT_DECLARE_SIMPLE_TYPE(SysTickState
, SYSTICK
)
26 * + sysbus MMIO region 0 is the register interface (covering
27 * the registers which are mapped at address 0xE000E010)
28 * + sysbus IRQ 0 is the interrupt line to the NVIC
29 * + Clock input "refclk" is the external reference clock
30 * (used when SYST_CSR.CLKSOURCE == 0)
31 * + Clock input "cpuclk" is the main CPU clock
32 * (used when SYST_CSR.CLKSOURCE == 1)
37 SysBusDevice parent_obj
;