We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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?
to your account
// 50 ms timeout
REG_TM0CNT = TIMER_FREQ_16KHZ;
REG_TM0VAL = 65536 - 819;
REG_TM1CNT = TIMER_FREQ_CASCADE;
REG_TM1VAL = 0;
REG_TM0CNT |= TIMER_ENABLE;
Had this code hang on hardware, despite working fine in mGBA. Turns out hardware demands the TIMER_ENABLE flag be set on both TM0 and TM1 for TM1 to count up.
The text was updated successfully, but these errors were encountered:
This sounds like a simple oversight on my part.
Sorry, something went wrong.
I really should look for more of these TODOs in my code.
GBA Timers: Cascading timers don't tick when disabled (fixes #2812)
No branches or pull requests