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

feat(safety): shutdown interrupt #167

Open
4 of 7 tasks
t-bre opened this issue Oct 12, 2022 · 3 comments
Open
4 of 7 tasks

feat(safety): shutdown interrupt #167

t-bre opened this issue Oct 12, 2022 · 3 comments
Assignees
Labels
feature New features
Milestone

Comments

@t-bre
Copy link
Member

t-bre commented Oct 12, 2022

Description

An interrupt triggered by the shutdown pin should cause the system to stop running in a safe way.

Requirements

  • Set up pin change interrupt in STM32CubeMX and re-generate code.
  • Create interrupt handler, make sure it is triggered by the pin change.
  • move ISR to where all the globals are (app_threadx.c)
  • add intermediary function for checking system is RTD before registering a critical fault
  • Add testbench to allow shutdown to be triggered from user button pin, but only after the RTD procedure has completed.
  • add stop functions to ts controller and driver control
  • vcu shutdown function
@t-bre t-bre added the feature New features label Oct 12, 2022
@t-bre t-bre added this to the STAG 9 milestone Oct 12, 2022
@t-bre t-bre pinned this issue Nov 8, 2022
@t-bre
Copy link
Member Author

t-bre commented Nov 18, 2022

@Scaniox do you know yet which pin the interrupt will be on? It would be good to know so I can add it to the schematic / PCB.

@Scaniox
Copy link
Contributor

Scaniox commented Nov 18, 2022

At the moment I have it assigned to PF1; that is just what was there from the previous implementation, and I'm working with it assuming there is some reason for it being that pin and haven't changed it.

@t-bre
Copy link
Member Author

t-bre commented Nov 18, 2022

Great thank you, I don't think there was any particular reason other than the pin being unused but we'll leave it there.

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

No branches or pull requests

2 participants