alistair23 / qemu

Alistair's fork of the official QEMU repository
http://wiki.qemu.org/Main_Page
Other
7 stars 9 forks source link

Add the EXTI peripheral to QEMU #12

Closed alistair23 closed 9 years ago

alistair23 commented 9 years ago

So GPIO doesn't appear to actually have interrupts, it's the EXTI (External Interrupts). This is configured by the SYSCFG/EXTI devices and triggered straight from the EXTI controller (page 384). This is why it has been such a trouble/confusing. Should be pretty straight forward to add a EXTI device Need to remove IRQ's from GPIO devices though

So the GPIO interrupt hack I had, appeared to just be triggering the EXT9_5 line which is why it worked. This shouldn't actually be in the GPIO though

alistair23 commented 9 years ago

This has been added to the netduino2plus.dev branch. Has a few hacks in it that need to be fixed. Also needs stricter checking of interrupt enabled

alistair23 commented 9 years ago

Is now much nicer and works :)