-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multitap (devel branch) #18
Comments
IIRC the code uses interrupts to detect the falling edge on the ACK line between bytes, so it needs interrupts to be enabled. What would be the reason for disabling them BTW? 😅 I think there's also a "backend" that doesn't use the ACK line as in previous versions, but can't remember exactly. |
Just trying to get it to run as fast as possible. |
Mmmmh... So, the PsxDriverHwSpiWithAck driver uses a pin-change interrupt to detect the falling edge on the ACK pin. If you are not using that, but rather the PsxDriverHwSpi driver, it doesn't seem to require interrupts, but maybe the Arduino SPI library does? If you want to go faster, you can raise the SPI clock, anyway. |
The old lib works fine in HwSpi mode with disabled interrupts. |
OK, I think the code hangs because of this (the value returned by millis() will not increment while interrupts are disabled). Adding a |
Just calling I will add support for the guncon and test to see if it's required to disable the interrupts. |
Hi!
I'm doing some tests with the multitap feature of the devel branch.
Using HardwareSpi.
Code works fine until I disable/enable interrupts for reading controller.
Like this
Code just hangs.
Any idea why?
The text was updated successfully, but these errors were encountered: