![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
i2c slave integrated
Fork of BAE_FRDM_INTEGRATION by
Diff: fault.cpp
- Revision:
- 6:e65b1ab79f36
- Parent:
- 5:255b43e8e21a
- Child:
- 7:f06840d848e3
--- a/fault.cpp Thu Dec 04 07:17:44 2014 +0000 +++ b/fault.cpp Tue Dec 09 07:59:56 2014 +0000 @@ -12,17 +12,18 @@ DigitalIn fault8(FAULT8); -DigitalOut clear1(FAULT_CLEAR1); -DigitalOut clear2(FAULT_CLEAR2); -DigitalOut clear3(FAULT_CLEAR3); -DigitalOut clear4(FAULT_CLEAR4); -DigitalOut clear5(FAULT_CLEAR5); -DigitalOut clear6(FAULT_CLEAR6); -DigitalOut clear7(FAULT_CLEAR7); -DigitalOut clear8(FAULT_CLEAR8); +DigitalOut clear1(FAULT_CLEAR1,0); +DigitalOut clear2(FAULT_CLEAR2,0); +DigitalOut clear3(FAULT_CLEAR3,0); +DigitalOut clear4(FAULT_CLEAR4,0); +DigitalOut clear5(FAULT_CLEAR5,0); +DigitalOut clear6(FAULT_CLEAR6,0); +DigitalOut clear7(FAULT_CLEAR7,0); +DigitalOut clear8(FAULT_CLEAR8,0); DigitalOut acs_active(ACS); + BusOut clear(FAULT_CLEAR1,FAULT_CLEAR2,FAULT_CLEAR3,FAULT_CLEAR4,FAULT_CLEAR5,FAULT_CLEAR6,FAULT_CLEAR7,FAULT_CLEAR8);//to send fault data along with hk extern SensorData Sensor; @@ -32,7 +33,7 @@ void FAULTS() { - + printf("Entered Fault management \n"); clear1 = !fault1; clear2 = !fault2;