[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
- [Qemu-devel] [PATCH v4 2/8] STM32F2xx: Display PWM duty cycle from timer, (continued)
- [Qemu-devel] [PATCH v4 2/8] STM32F2xx: Display PWM duty cycle from timer, Alistair Francis, 2016/07/23
- [Qemu-devel] [PATCH v4 3/8] STM32F2xx: Add the ADC device, Alistair Francis, 2016/07/23
- [Qemu-devel] [PATCH v4 4/8] STM32F2xx: Add the SPI device, Alistair Francis, 2016/07/23
- [Qemu-devel] [PATCH v4 5/8] irq: Add irq information getter functions, Alistair Francis, 2016/07/23
- [Qemu-devel] [PATCH v4 8/8] MAINTAINERS: Add Alistair to the maintainers list, Alistair Francis, 2016/07/23
- Message not available