i2c working with old hk

Dependencies:   mbed-rtos mbed

Fork of BAE_vr2_1_1 by green rosh

Committer:
raizel_varun
Date:
Tue Dec 09 07:59:56 2014 +0000
Revision:
6:e65b1ab79f36
Parent:
5:255b43e8e21a
Child:
7:f06840d848e3
BAE

Who changed what in which revision?

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