sakthi priya amirtharaj / Mbed 2 deprecated pcb_test_v1_1_1

Dependencies:   mbed-rtos mbed

Fork of pcb_test_v1_1 by sakthi priya amirtharaj

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers fault.h Source File

fault.h

00001 #include "mbed.h"
00002 #include "pin_config.h"
00003 
00004 #define FAULT0 PIN31      //  CHARGEBAR
00005 #define FAULT1 PIN42      //  FAULTBAR
00006 #define FAULT2 PIN40      //  3V3APGOOD 
00007 #define FAULT3 PIN39      //  3V3BPGOOD                         
00008 #define FAULT4  PIN41     //  3V3CPGOOD      
00009 #define FAULT5  PIN79      //  3V3AOCBAR 
00010 #define FAULT6  PIN80      //  3V3COC  
00011 #define FAULT7  PIN89     //   TRZ
00012 #define FAULT8  PIN83      //  TRXTRY  
00013 #define FAULT9 PIN97      //  SW0FAULT  
00014 
00015 //CONTROL SIGNALS
00016 #define FAULT_CLEAR1 D8                            
00017 #define FAULT_CLEAR2 D9
00018 #define FAULT_CLEAR3 D10
00019 #define FAULT_CLEAR4 D11
00020 #define FAULT_CLEAR5 D12
00021 #define FAULT_CLEAR6 D13
00022 #define FAULT_CLEAR7 PTC7
00023 #define FAULT_CLEAR8 PTC10
00024 #define FAULT_CLEAR9 PTC11
00025 
00026 
00027 
00028 #define ACS PTE2
00029 #define TX PTE3
00030 #define PAYLOAD PTE6
00031 
00032 
00033 void FUNC_HK_FAULTS();
00034 void FUNC_HK_POWER(char flag);
00035 void interrupt_fault();