Iztech Fork

Dependencies:   mbed

Fork of A2_Interface3_V_0_0 by Roger McArdell

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Pins.h Source File

Pins.h

00001 /*
00002     Programmer: Roger McArdell
00003     Date: 02/08/2017
00004     Version 
00005     V0.1    First version
00006 */
00007 
00008 #define Off 0
00009 #define Green 0x04
00010 #define Blue 0x08
00011 #define Red 0x0C
00012 #define FlashRed 0x10
00013 #define FlashRedGreen 0x14
00014 #define FlashGreen 0x18 //00011000
00015 #define FlashBlue 0x1C // 00011100
00016 
00017 #define Button1Address 0x80  //0x80
00018 #define Button2Address 0x82  //0x82
00019 #define Button3Address 0x84  //0x84
00020 #define Button4Address 0x86  //0x86
00021 
00022 #define IsOff 0
00023 #define Laptop1 1
00024 #define Laptop2 2
00025 #define Laptop3 3
00026 #define Laptop4 4
00027 
00028 #define IsOff 0
00029 #define IsHDMI1 1
00030 #define IsHDMI2 2
00031 #define IsHDMI3 3
00032 #define IsHDMI4 4
00033 #define IsNextBox 5
00034 #define IsVCIdle 6
00035 #define IsVCInCall 7
00036 #define IsAux1 8
00037 #define IsAux2 9
00038 #define IsAux3 10
00039 
00040 #define HDMI1 1
00041 #define HDMI2 2
00042 #define HDMI3 3
00043 #define HDMI4 4
00044 
00045 uint8_t SystemState = 0;
00046 uint8_t IDNumber = 1;
00047 
00048 bool CEC0INTFlag = 0;
00049 bool CEC1INTFlag = 0;
00050 bool CEC2INTFlag = 0;
00051 bool CEC3INTFlag = 0;
00052 
00053 // UARTS
00054 Serial aboxPort(P0_14,P0_13); //TX, RX
00055 Serial AUXPort(P0_19,P0_18);
00056 Serial pc(USBTX, USBRX);
00057 
00058 //Digital Ins
00059 DigitalIn PSEStatus(P2_2);
00060 
00061 //Interrupts
00062 InterruptIn HDBaseTINT(P0_6);
00063 InterruptIn CECINT0(P0_20);
00064 InterruptIn CECINT1(P0_21);
00065 InterruptIn CECINT2(P0_22);
00066 InterruptIn CECINT3(P0_23);
00067 
00068 //Digital Outs
00069 DigitalOut AuxPortDIR(P2_7);
00070 DigitalOut HDMIRST(P0_8);
00071 DigitalOut HDBaseTUSBID(P2_5);
00072 DigitalOut CECBoot0(P0_11);
00073 DigitalOut CECBoot1(P0_16);
00074 DigitalOut CECBoot2(P1_13);
00075 DigitalOut CECBoot3(P1_21);
00076 //DigitalOut CECReset0(P0_12);
00077 DigitalOut CECReset1(P0_17);
00078 DigitalOut CECReset2(P1_20);
00079 DigitalOut CECReset3(P1_23);
00080 
00081 //I2C
00082 I2C I2CHDMI(P1_24,P0_7); //SDA, SCL 
00083 I2C I2CBus(P0_5,P0_4);
00084