green rosh
/
BAE_vr2_1_1
The one with the new HK
Fork of BAE_vr2_1_1 by
fault.h@8:69475d16d23d, 2014-12-11 (annotated)
- Committer:
- raizel_varun
- Date:
- Thu Dec 11 07:34:17 2014 +0000
- Revision:
- 8:69475d16d23d
- Parent:
- 7:f06840d848e3
Fault ready
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sakthipriya | 2:80b8a2e999f7 | 1 | #include "mbed.h" |
raizel_varun | 6:e65b1ab79f36 | 2 | #include "pin_config.h" |
raizel_varun | 6:e65b1ab79f36 | 3 | |
raizel_varun | 8:69475d16d23d | 4 | #define FAULT0 PIN31 |
raizel_varun | 7:f06840d848e3 | 5 | #define FAULT1 PIN42 // FAULTBAR |
raizel_varun | 7:f06840d848e3 | 6 | #define FAULT2 PIN40 // 3V3APGOOD |
raizel_varun | 7:f06840d848e3 | 7 | #define FAULT3 PIN39 // 3V3BPGOOD |
raizel_varun | 7:f06840d848e3 | 8 | #define FAULT4 PIN41 // 3V3CPGOOD |
raizel_varun | 7:f06840d848e3 | 9 | #define FAULT5 PIN79 // 3V3AOCBAR |
raizel_varun | 7:f06840d848e3 | 10 | #define FAULT6 PIN80 // 3V3COC |
raizel_varun | 7:f06840d848e3 | 11 | #define FAULT7 PIN97 // SW8FAULT |
raizel_varun | 7:f06840d848e3 | 12 | #define FAULT8 PIN83 // SW6FAULT |
raizel_varun | 7:f06840d848e3 | 13 | #define FAULT9 PIN89 // SW7FAULT |
sakthipriya | 2:80b8a2e999f7 | 14 | |
raizel_varun | 6:e65b1ab79f36 | 15 | //CONTROL SIGNALS |
raizel_varun | 6:e65b1ab79f36 | 16 | #define FAULT_CLEAR1 D8 |
sakthipriya | 2:80b8a2e999f7 | 17 | #define FAULT_CLEAR2 D9 |
sakthipriya | 2:80b8a2e999f7 | 18 | #define FAULT_CLEAR3 D10 |
sakthipriya | 2:80b8a2e999f7 | 19 | #define FAULT_CLEAR4 D11 |
sakthipriya | 2:80b8a2e999f7 | 20 | #define FAULT_CLEAR5 D12 |
sakthipriya | 2:80b8a2e999f7 | 21 | #define FAULT_CLEAR6 D13 |
raizel_varun | 7:f06840d848e3 | 22 | #define FAULT_CLEAR7 PTC7 |
raizel_varun | 7:f06840d848e3 | 23 | #define FAULT_CLEAR8 PTC10 |
raizel_varun | 7:f06840d848e3 | 24 | #define FAULT_CLEAR9 PTC11 |
raizel_varun | 7:f06840d848e3 | 25 | |
raizel_varun | 7:f06840d848e3 | 26 | |
sakthipriya | 2:80b8a2e999f7 | 27 | |
sakthipriya | 4:8f6c24eca109 | 28 | #define ACS PTC4 |
sakthipriya | 4:8f6c24eca109 | 29 | #define TX PTC6 |
sakthipriya | 4:8f6c24eca109 | 30 | #define PAYLOAD PTC7 |
sakthipriya | 2:80b8a2e999f7 | 31 | |
sakthipriya | 2:80b8a2e999f7 | 32 | |
sakthipriya | 4:8f6c24eca109 | 33 | void FAULTS(); |
raizel_varun | 8:69475d16d23d | 34 | void POWER(char flag); |
raizel_varun | 8:69475d16d23d | 35 | void interrupt_fault(); |