I am running an N2HET program to drive a couple of motors and the program works fine.
However in case of exception elsewhere in my host program, I want to shutdown the N2HET program and force the driving N2HET pins to a safe state.
Any ideas on how to achieve this? Can I use the N2HET pins as forced GPIOs after I shut the N2HET program? Also how do I ensure that the N2HET is completely shut off?