Skip to content

feat(safety): shutdown interrupt #167

Description

@t-bre

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

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions