]> git.zarvox.org Git - usbsnes.git/commit
Correct interrupt usage.
authorDrew Fisher <drew.m.fisher@gmail.com>
Wed, 24 Feb 2010 18:38:40 +0000 (13:38 -0500)
committerDrew Fisher <drew.m.fisher@gmail.com>
Wed, 24 Feb 2010 18:57:49 +0000 (13:57 -0500)
commit231bf1a70259b9cf357979fc81f8fc90062687c5
tree94748ff19f105516704a4b45e7ad805a4d23efe2
parent2a1ffd05809ec37c0d85241bdf685d046ed77caf
Correct interrupt usage.

This patch corrects usage of usbDeviceDisconnect() and usbDeviceConnect().
In addition, we allow SNES interrupts to be further interrupted, so the
USB interrupts always get serviced.  To prevent stack overflow, we enforce
completion of one SNES poll before the next one can be triggered.  Rather than
crash the chip, we take a (tiny) hit in latency.
main.c