[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Usinger high resolution timers in simulated device
From: |
Weiss, Howard |
Subject: |
RE: Usinger high resolution timers in simulated device |
Date: |
Sat, 13 Feb 2021 05:06:56 +0000 |
Peter
Please point me to an example of a qemu simulated device which uses timer.h.
Thanks
Howard
-----Original Message-----
From: Peter Maydell <peter.maydell@linaro.org>
Sent: Wednesday, February 10, 2021 5:31 AM
To: Weiss, Howard <Howard.Weiss2@hologic.com>
Cc: qemu-discuss@nongnu.org
Subject: Re: Usinger high resolution timers in simulated device
External Mail
On Tue, 9 Feb 2021 at 22:12, Weiss, Howard <Howard.Weiss2@hologic.com> wrote:
>
> PMM
>
> Thanks. Yes I am trying to implement a timer within a QEMU device (the
> hardware I am simulating generates an interrupt each 1/120 of a second. Any
> suggestions are welcome and appreciated. Please point me to documentation for
> the internal timer API
I just did:
> You probably want the QEMUTimer APIs from include/qemu/timer.h.
Generally QEMU APIs are documented in comments in the headers.
-- PMM