lucasw / arduino_qemu_test

Project wombat
1 stars 0 forks source link

GPIO, interrupts in qemu #4

Open lucasw opened 3 years ago

lucasw commented 3 years ago

This uses ifdef to change an int instead of real gpio https://yeah.nah.nz/embedded/qemu-avr/ - but maybe real gpio is possible, just read the actual register? Maybe simpler to have the int right there in the main file for inspection.

Can interrupts be triggered through gdb or qemu?

lucasw commented 3 years ago

https://stackoverflow.com/questions/60764018/how-to-connect-gpio-in-qemu-emulated-machine-to-an-object-in-host

lucasw commented 3 years ago

Could this be applied to 5.2.0?

hw/avr: Add limited support for avr gpio registers

https://patchew.org/QEMU/20210313165445.2113938-1-f4bug@amsat.org/20210313165445.2113938-4-f4bug@amsat.org/

https://www.mail-archive.com/qemu-devel@nongnu.org/msg791443.html