no description

Fork of Middleware by Roberto Herrera

Initial.h

Committer:
Jorge_Beltran
Date:
2015-12-07
Revision:
1:32a08ca33b00
Parent:
0:d1ff330c5128

File content as of revision 1:32a08ca33b00:

/*

Initial.h

Only to improve the clarity of main .cpp
This don't have any new classes

Initial Configuration for 
Smart Room project is here

Last update by RoHe 16/11/2015
*/

#ifndef INITIAL_H_
#define INITIAL_H_

#include "mbed.h"
#include "EthernetInterface.h"

static Serial pc(USBTX, USBRX);
static DigitalOut ledRED(LED1);
static DigitalOut ledGREEN(LED2);
static DigitalOut ledBLUE(LED3);
//START PIR SENSOR INPUT INIT
static DigitalIn PIR1(D0);
static DigitalIn PIR2(D1);
//END PIR SENSOR INPUT INIT
//START WINDOW SENSOR INPUT
static DigitalIn W1(D2);
static DigitalIn W2(D3);
static DigitalIn W3(D4);
//END WINDOW SENSOR INPUT INIT
//START DOOR SENSOR INPUT
static DigitalIn DOORSensor(D5);
//END DOOR SENSOR INPUT INIT
//START LIGHT CONTROL OUTPUT
static DigitalOut LightControl(D6);
//END LIGHT CONTROL OUTPUT
static InterruptIn sw2(SW2);
static TCPSocketConnection socketTCP1;
static TCPSocketConnection socketTCP2;
static UDPSocket socketUDP;
static TCPSocketServer serverTCP;
//sstatic TCPSocketConnection socket;
static char *cad;
static char *s_myIP;
//static char c_myIP[256];
static char *s_end="\n\r";
static bool bo_somethingWrong=false;


#endif