MBED NanoService Lighting Endpoint for NXP Ublox (cellular enabled)

Dependencies:   C027_Support C12832 StatusReporter LM75B c027_radios endpoint_core endpoint_nsp nsp_resources mbed mbed-rtos

Files at this revision

API Documentation at this revision

Comitter:
ansond
Date:
Fri Mar 28 17:19:00 2014 +0000
Parent:
163:650a02b5fd9a
Child:
165:fd491314d2d8
Commit message:
updates

Changed in this revision

Definitions.h Show annotated file Show diff for this revision Revisions of this file
endpoint_core.lib Show annotated file Show diff for this revision Revisions of this file
endpoint_nsp.lib Show annotated file Show diff for this revision Revisions of this file
nsp_resources.lib Show annotated file Show diff for this revision Revisions of this file
--- 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
--- a/endpoint_core.lib	Fri Mar 28 04:22:20 2014 +0000
+++ b/endpoint_core.lib	Fri Mar 28 17:19:00 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/ansond/code/endpoint_core/#667409048c68
+http://mbed.org/users/ansond/code/endpoint_core/#58e7537a8c5f
--- a/endpoint_nsp.lib	Fri Mar 28 04:22:20 2014 +0000
+++ b/endpoint_nsp.lib	Fri Mar 28 17:19:00 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/ansond/code/endpoint_nsp/#53a7333dd07a
+http://mbed.org/users/ansond/code/endpoint_nsp/#7f7fe167d9c0
--- a/nsp_resources.lib	Fri Mar 28 04:22:20 2014 +0000
+++ b/nsp_resources.lib	Fri Mar 28 17:19:00 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/ansond/code/nsp_resources/#c148e44df752
+http://mbed.org/users/ansond/code/nsp_resources/#5aed72f4a579