after pin

Dependencies:   mbed-rtos mbed

Fork of BAE_vr2_gingerbread by sakthi priya amirtharaj

Committer:
raizel_varun
Date:
Wed Dec 17 09:52:27 2014 +0000
Revision:
3:3d9e5f48b0c1
Parent:
1:bd715ccef1bb
AFTER PINS;

Who changed what in which revision?

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