AT91 Timer/Counter
Subsystems (2)
PATCH 11/14 AT91 Timer/Counter
Only the timer part of the the Timer/Counter block is implemented since there is no interface for connection of external clocks in QEMU, so there is nothing to measure. The minimal implementation is done using host timers and an internal counter.
This implementation is sufficient for running the Atmel examples, but leaves a lot to be desired.
Signed-off-by Filip Navara <[email protected]>
--- Makefile.target | 2 +- hw/at91_tc.c | 291 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 292 insertions(+), 1 deletions(-) create mode 100644 hw/at91_tc.c
Makefile.target +1 -1
@@ -667,7 +667,7 @@ obj-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o obj-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o obj-y += syborg_virtio.o obj-y += at91_aic.o at91_dbgu.o at91_pio.o at91_pit.o at91_pmc.o at91_rtt.o -obj-y += at91_rstc.o at91_intor.o +obj-y += at91_rstc.o at91_intor.o at91_tc.o obj-y += gpio_rotary.o gpio_keypad.o CPPFLAGS += -DHAS_AUDIO endif
hw/at91_tc.c new file +291 -0
291 lines not on this page · raw message
Signature · 1 line
1.6.3.msysgit.0