MBED NanoService Lighting Endpoint for NXP Ublox (Ethernet enabled)

Dependencies:   C027 C12832 EthernetInterface StatusReporter LM75B endpoint_core endpoint_nsp mbed-rtos mbed nsp_resources

Revision:
164:eee187a5723a
Parent:
163:650a02b5fd9a
Child:
169:584a83987318
--- a/Definitions.h	Fri Mar 28 04:22:20 2014 +0000
+++ b/Definitions.h	Fri Mar 28 17:19:00 2014 +0000
@@ -23,9 +23,13 @@
 #include "mbed.h"
 
 // Platform Switch
-#define   _ENDPOINT_UBLOX_PLATFORM      true                // uncomment for the U-Blox MBED platform
-//#define   _ENDPOINT_FREESCALE_PLATFORM  true                // uncomment for the Freescale Freedom MBED platform
-//#define   _ENDPOINT_NXP_PLATFORM        true                // uncomment for the NXP MBED platform
+#define   _ENDPOINT_UBLOX_PLATFORM      true                      // uncomment for the U-Blox MBED platform
+//#define   _ENDPOINT_FREESCALE_PLATFORM  true                      // uncomment for the Freescale Freedom MBED platform
+//#define   _ENDPOINT_NXP_PLATFORM        true                      // uncomment for the NXP MBED platform
+
+// what kind of personality we are...
+#define LIGHT_PERSONALITY               true                      // the endpoint will be a (set of) lights
+//#define COPCAR_PERSONALITY              true                      // the endpoint will emulate a cop car
 
 // include common definitions
 #include "CommonDefinitions.h"
@@ -34,22 +38,22 @@
 #include "NSPDefinitions.h"
 
 // Philips Light Config
-#define PL_ENABLE                       false               // true - enable for endpoint light, false - disable
-#define PL_LIGHT_ID                     PL_LIGHT_ID_BILL    // Default light for Philips Light
+#define PL_ENABLE                       false                    // true - enable for endpoint light, false - disable
+#define PL_LIGHT_ID                     PL_LIGHT_ID_BILL         // Default light for Philips Light
 
 // External LED Light Configuration
-#define EXT_LED_ENABLE                  true                // true - enable external LED endpoint light, false - disable
+#define EXT_LED_ENABLE                  true                     // true - enable external LED endpoint light, false - disable
 
 // Endpoint GPS Coordinates
-#define ENDPOINT_LOCATION               "Las Vegas Country Club"// Where this light/endpoint lives
-#define ENDPOINT_GPS_COORDS             "36.131258,-115.144414" // golf course 36.131258,-115.144414 
+#define ENDPOINT_LOCATION               "Las Vegas Country Club" // Where this light/endpoint lives
+#define ENDPOINT_GPS_COORDS             "36.131258,-115.144414"  // golf course 36.131258,-115.144414 
 
 // Reset our config values if needed
 #ifdef _ENDPOINT_UBLOX_PLATFORM
     #undef LIGHT_NAME
     #undef ENDPOINT_GPS_COORDS
-    #define LIGHT_NAME              "light-nsp-%d0"              // name of each light in this endpoint
-    #define ENDPOINT_GPS_COORDS     "36.133516,-115.148721"      // golf course -115.143470 36.131916 
+    #define PERSONALITY_NAME        "light-nsp-%d0"               // name of each personality in this endpoint
+    #define ENDPOINT_GPS_COORDS     "36.133516,-115.148721"       // golf course -115.143470 36.131916 
     #define UBLOX_USE_3G            true                          // use 3G or ethernet
     #define UBLOX_MODEM             UbloxUSBCDMAModem             // CDMA modem
     #define UBLOX_CDMA_DELAY_MS     1000                          // connect delay in MS