Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

22 linhas
379 B

  1. //#include <proc/p32mx440f256h.h>
  2. #include "HarakiriRelay.h"
  3. #include "BoardCfg.h"
  4. #include "timer.h"
  5. #define PIN_ACTIVE 1
  6. #define PIN_INACTIVE 0
  7. void InitHarakiriRelay()
  8. {
  9. HARAKIRI_RELAY_ON_PIN = PIN_INACTIVE; //Very important!!
  10. }
  11. bool HarakiriRelayTurnOff()
  12. {
  13. HARAKIRI_RELAY_ON_PIN = PIN_ACTIVE; //Just wait for the power to be killed...
  14. return true;
  15. }