> On 17 Jun 2015, at 03:25, Peter Crosthwaite <[email protected]>
> wrote:
>
>> ...
>> connecting a gpio_out to a gpio_in seems not possible, gpio_in irqs are
>> parented to the device and parenting them to the gpio_out fail with the
>> parent != 0 assertion.
>>
>
> This should work. Can I see the backtrace of that abort?
**
ERROR:/Users/ilg/Work/qemu/gnuarmeclipse-qemu.git/qom/object.c:1274:object_get_canonical_path_component:
assertion failed: (obj->parent != NULL)
gpio-led
// state->irq = qemu_allocate_irq(gpio_led_irq_handler, obj, 0);
qdev_init_gpio_in(DEVICE(obj), gpio_led_irq_handler, 1);
mchine creation
// qemu_irq irq = GPIO_LED_STATE(led)->irq;
qemu_irq irq = qdev_get_gpio_in(led, 0);
qdev_connect_gpio_out(
DEVICE(object_resolve_path("/machine/stm32/gpio[c]", NULL)), 12,
irq);
the functional solution is commented out.
regards,
Liviu