sw_test_workin

Dependencies:   mbed-rtos mbed

Fork of BAE_icecream_1_0 by sakthi priya amirtharaj

Committer:
greenroshks
Date:
Fri Dec 26 06:12:09 2014 +0000
Revision:
2:edd107ea4740
Parent:
0:ebdf4f859dca
integrated code with threas 2 b removed

Who changed what in which revision?

UserRevisionLine numberNew contents of line
raizel_varun 0:ebdf4f859dca 1 #include "mbed.h"
raizel_varun 0:ebdf4f859dca 2 #include "pin_config.h"
raizel_varun 0:ebdf4f859dca 3
raizel_varun 0:ebdf4f859dca 4 #define FAULT0 PIN31
raizel_varun 0:ebdf4f859dca 5 #define FAULT1 PIN42 // FAULTBAR
raizel_varun 0:ebdf4f859dca 6 #define FAULT2 PIN40 // 3V3APGOOD
raizel_varun 0:ebdf4f859dca 7 #define FAULT3 PIN39 // 3V3BPGOOD
raizel_varun 0:ebdf4f859dca 8 #define FAULT4 PIN41 // 3V3CPGOOD
greenroshks 2:edd107ea4740 9 #define FAULT5 PTC23 // 3V3AOCBAR //changed here
raizel_varun 0:ebdf4f859dca 10 #define FAULT6 PIN80 // 3V3COC
raizel_varun 0:ebdf4f859dca 11 #define FAULT7 PIN38 // SW8FAULT /// to pin 97 later
raizel_varun 0:ebdf4f859dca 12 #define FAULT8 PIN83 // SW6FAULT
raizel_varun 0:ebdf4f859dca 13 #define FAULT9 PIN89 // SW7FAULT
raizel_varun 0:ebdf4f859dca 14
raizel_varun 0:ebdf4f859dca 15 //CONTROL SIGNALS
raizel_varun 0:ebdf4f859dca 16 #define FAULT_CLEAR1 D8
raizel_varun 0:ebdf4f859dca 17 #define FAULT_CLEAR2 D9
raizel_varun 0:ebdf4f859dca 18 #define FAULT_CLEAR3 D10
raizel_varun 0:ebdf4f859dca 19 #define FAULT_CLEAR4 D11
raizel_varun 0:ebdf4f859dca 20 #define FAULT_CLEAR5 D12
raizel_varun 0:ebdf4f859dca 21 #define FAULT_CLEAR6 D13
raizel_varun 0:ebdf4f859dca 22 #define FAULT_CLEAR7 PTC7
raizel_varun 0:ebdf4f859dca 23 #define FAULT_CLEAR8 PTC10
raizel_varun 0:ebdf4f859dca 24 #define FAULT_CLEAR9 PTC11
raizel_varun 0:ebdf4f859dca 25
raizel_varun 0:ebdf4f859dca 26
raizel_varun 0:ebdf4f859dca 27
raizel_varun 0:ebdf4f859dca 28 #define ACS PTE2
raizel_varun 0:ebdf4f859dca 29 #define TX PTE3
raizel_varun 0:ebdf4f859dca 30 #define PAYLOAD PTE6
raizel_varun 0:ebdf4f859dca 31
raizel_varun 0:ebdf4f859dca 32
raizel_varun 0:ebdf4f859dca 33 void FUNC_HK_FAULTS();
raizel_varun 0:ebdf4f859dca 34 void FUNC_HK_POWER(char flag);
raizel_varun 0:ebdf4f859dca 35 void interrupt_fault();