Skip to content
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

PMU: Statically verify that STARTERP0 and STARTERP1 registers are configured correctly #109

Open
hannobraun opened this issue Jun 15, 2018 · 0 comments

Comments

@hannobraun
Copy link
Member

To wake up from deep-sleep or power-down mode, the STARTERP0 and STARTERP1 registers need to be configured correctly. Otherwise an interrupt that is intended to wake the system up won't have the desired effect.

It would be nice if this error was prevented somehow, but I'm actually not sure how to achieve that. Maybe the methods to enter the respective low-power modes could have an additional argument to signal the user's intent about which interrupts should be able to wake the system up. Then this argument could be used to statically verify the STARTERP0/1 configuration.

But I don't know. All of this sounds like it could be part of some higher-level API, not necessarily the low-level methods to enter sleep mode. I'm open to suggestions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant