Richard Finn / Mbed 2 deprecated ATT_Cellular_IOT_Button

Dependencies:   FXOS8700CQ MODSERIAL mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers hardware.h Source File

hardware.h

00001 #ifndef Hardware_H_
00002 #define Hardware_H_
00003 #include "MODSERIAL.h"
00004 
00005 extern I2C i2c;    //SDA, SCL -- define the I2C pins being used
00006 extern MODSERIAL pc; //UART to USB host
00007 extern MODSERIAL mdm; //UART to WNC modem
00008 //extern SerialBuffered mdm; //UART to WNC modem
00009 
00010 //Un-comment the definition below if you want to use the USB rx for another purpose.
00011 //otherwise the USB rx will be used to receive virtual sensor data from Avnet's
00012 //"Sensor Simulator Dashboard"  utility
00013 #define USE_VIRTUAL_SENSORS
00014 
00015 // comment out the following line if color is not supported on the terminal
00016 #define USE_COLOR
00017 #ifdef USE_COLOR
00018  #define BLK "\033[30m"
00019  #define RED "\033[31m"
00020  #define GRN "\033[32m"
00021  #define YEL "\033[33m"
00022  #define BLU "\033[34m"
00023  #define MAG "\033[35m"
00024  #define CYN "\033[36m"
00025  #define WHT "\033[37m"
00026  #define DEF "\033[39m"
00027 #else
00028  #define BLK
00029  #define RED
00030  #define GRN
00031  #define YEL
00032  #define BLU
00033  #define MAG
00034  #define CYN
00035  #define WHT
00036  #define DEF
00037 #endif
00038 
00039 #ifdef _ULINK_PRINT
00040 #include "itm_output.h"
00041 #else
00042 #define PRINTF pc.printf
00043 #define PUTS   pc.puts
00044 #endif
00045 
00046 
00047 #endif