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

SW_PWR #10

Closed
charlespax opened this issue Aug 14, 2016 · 3 comments
Closed

SW_PWR #10

charlespax opened this issue Aug 14, 2016 · 3 comments
Milestone

Comments

@charlespax
Copy link
Member

How should PA0 be configured? When putting the processor to sleep it should act to wake up the system. During normal operation it should be an input.

screen shot 2016-08-14 at 21 48 15

@charlespax charlespax changed the title SW_PRW SW_PWR Aug 14, 2016
@charlespax charlespax added this to the Milestone 1 milestone Nov 23, 2016
@protological
Copy link
Collaborator

Why not attach the PWR button to an EXTI interrupt. If SW_C is moved to EXTI1 could the PWR be EXTI 4? (or vice-versa) External interrupts should be able to wake the processor.

@charlespax
Copy link
Member Author

When the unit is put into standby PA0 would be configured as SYS_WKUP because that is the only pin that will wake the device from that state. During normal operation, however, I think it can be configured however you need. SP_PWR should stay on PA0 though I'm not sure if we will actually utilize the standby function.

screen shot 2016-11-30 at 09 52 23

I posted this issue mainly to ask how the ioc file should be configured, which is your domain. I imagine it should be configured to whatever that pin will be during normal operation, which would be EXTI0.

@charlespax
Copy link
Member Author

PA0 is configured as GPIO_EXTI0 in the v0.4 .ioc file

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

No branches or pull requests

2 participants