qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v4 6/8] STM32F205: Connect the ADC devices


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v4 6/8] STM32F205: Connect the ADC devices
Date: Tue, 26 Jul 2016 09:13:30 +0100

On 26 July 2016 at 06:08, Alistair Francis <address@hidden> wrote:
> I think this function should work:
>
> /*
>  * qemu_allocate_or_irqs
>  * @in_irq: An input IRQ. It will be the result of the @out_irqs ORed together
>  * @n: The number of interrupt lines that should be ORed together
>  *
>  * returns: An array of interrupts that should be ORed together
>  *
>  * OR all of the interrupts returned in the array into a single @in_irq.
>  */
> qemu_irq *qemu_allocate_or_irqs(qemu_irq in_irq, int n);

As I say, it really needs to be an actual device because
it has to have state (tracking the level of all the inputs
so when one changes it can recalculate the new output).

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]