-
Notifications
You must be signed in to change notification settings - Fork 4
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
[RTC] Update for setdatetime and settime #23
Conversation
Do note: the second commit can be axed, if it's not good enough. |
I have honestly no idea whether 1d3460c should be kept or not. Regular carts work without it, but the EZ Flash Omegas don't. Up to you, honestly. |
I have some EZO detection code lying around somewhere, might be worth wrapping this in a check for that Do we know exactly how many cycles need to be waited before the writes are good? I would prefer a loop written in assembly to make it obvious that N cycles of delay is required |
I haven't measured the cycles precisely. However, if we want really precise waiting, it should be moved to IWRAM as well...? |
Eh, definitely don't want this in IWRAM. I was thinking make the delay as short as possible, but really it's just RTC time set code, I'm sure a short delay doesn't matter |
I was more thinking about having a small "delay function" in IWRAM, that, regardless of what the EWRAM/ROM settings are, always executes the same number of requested cycles. It could be useful for other stuff as well. But I understand it's kind of weird...? |
Another way would be to implement a backoff mechanism. Though that would mean adding a read of the rtc to the function that sets it. |
Going to merge this into rtc2, and I'll do a cleaning pass over it Great work! |
No description provided.