slave integrated

Dependencies:   mbed-rtos mbed

Fork of BAE_FRDMTESIN2 by Seeker of Truth ,

Committer:
sakthipriya
Date:
Tue Dec 02 10:43:24 2014 +0000
Revision:
2:80b8a2e999f7
Child:
3:02b45de29c0f
faults added

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sakthipriya 2:80b8a2e999f7 1 #include "fault.h"
sakthipriya 2:80b8a2e999f7 2
sakthipriya 2:80b8a2e999f7 3
sakthipriya 2:80b8a2e999f7 4 DigitalIn fault1(FAULT1);
sakthipriya 2:80b8a2e999f7 5 DigitalIn fault2(FAULT2);
sakthipriya 2:80b8a2e999f7 6 DigitalIn fault3(FAULT3);
sakthipriya 2:80b8a2e999f7 7 DigitalIn fault4(FAULT4);
sakthipriya 2:80b8a2e999f7 8 DigitalIn fault5(FAULT5);
sakthipriya 2:80b8a2e999f7 9 DigitalIn fault6(FAULT6);
sakthipriya 2:80b8a2e999f7 10 DigitalIn fault7(FAULT7);
sakthipriya 2:80b8a2e999f7 11 DigitalIn fault8(FAULT8);
sakthipriya 2:80b8a2e999f7 12
sakthipriya 2:80b8a2e999f7 13
sakthipriya 2:80b8a2e999f7 14 DigitalOut clear1(FAULT_CLEAR1);
sakthipriya 2:80b8a2e999f7 15 DigitalOut clear2(FAULT_CLEAR2);
sakthipriya 2:80b8a2e999f7 16 DigitalOut clear3(FAULT_CLEAR3);
sakthipriya 2:80b8a2e999f7 17 DigitalOut clear4(FAULT_CLEAR4);
sakthipriya 2:80b8a2e999f7 18 DigitalOut clear5(FAULT_CLEAR5);
sakthipriya 2:80b8a2e999f7 19 DigitalOut clear6(FAULT_CLEAR6);
sakthipriya 2:80b8a2e999f7 20 DigitalOut clear7(FAULT_CLEAR7);
sakthipriya 2:80b8a2e999f7 21 DigitalOut clear8(FAULT_CLEAR8);
sakthipriya 2:80b8a2e999f7 22
sakthipriya 2:80b8a2e999f7 23
sakthipriya 2:80b8a2e999f7 24 BusOut clear(FAULT_CLEAR1,FAULT_CLEAR2,FAULT_CLEAR3,FAULT_CLEAR4,FAULT_CLEAR5,FAULT_CLEAR6,FAULT_CLEAR7,FAULT_CLEAR8);
sakthipriya 2:80b8a2e999f7 25 int clearout = clear;
sakthipriya 2:80b8a2e999f7 26
sakthipriya 2:80b8a2e999f7 27 void FAULTS()
sakthipriya 2:80b8a2e999f7 28 {
sakthipriya 2:80b8a2e999f7 29
sakthipriya 2:80b8a2e999f7 30 printf("Entered Fault management \n");
sakthipriya 2:80b8a2e999f7 31 clear1 = !fault1;
sakthipriya 2:80b8a2e999f7 32 clear2 = !fault2;
sakthipriya 2:80b8a2e999f7 33 clear3 = !fault3;
sakthipriya 2:80b8a2e999f7 34 clear4 = !fault4;
sakthipriya 2:80b8a2e999f7 35 clear5 = !fault5;
sakthipriya 2:80b8a2e999f7 36 clear6 = !fault6;
sakthipriya 2:80b8a2e999f7 37 clear7 = !fault7;
sakthipriya 2:80b8a2e999f7 38 clear8 = !fault8;
sakthipriya 2:80b8a2e999f7 39 printf(" %d \n",clearout);
sakthipriya 2:80b8a2e999f7 40
sakthipriya 2:80b8a2e999f7 41
sakthipriya 2:80b8a2e999f7 42 }