Use of SYSTEM_HALT_HOOK with HAL
Posted: Wed Jun 26, 2013 2:58 pm
I was just looking at SYSTEM_HALT_HOOK, and I can't find any examples of using it. My use case is just to change the mode of a few pins on port_halt, to put a board into a safe state when it halts. It seems like this would be a reasonable use of the hook?
However I can't work out how to use HAL functions from the hook, e.g. palSetPadMode. Is this possible?
I'm running on an STM32F4, custom board, if that makes any difference, thanks.
However I can't work out how to use HAL functions from the hook, e.g. palSetPadMode. Is this possible?
I'm running on an STM32F4, custom board, if that makes any difference, thanks.