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:
149:3a2fe9f6bcb1
Parent:
148:56bf8bad4567
Child:
152:0b659cb24f3e
--- a/Definitions.h	Wed Mar 26 19:55:02 2014 +0000
+++ b/Definitions.h	Wed Mar 26 20:25:47 2014 +0000
@@ -22,65 +22,39 @@
 // platform
 #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
+
 // include common definitions
 #include "CommonDefinitions.h"
 
-// NSP Configuration
-#define NSP_ADDRESS         "192.168.1.220"           // Target NSP Service - (default)
-#define NSP_PORT            5683                      // Target NSP Service Port Number
+// NSP specific definitions
+#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
 
-// Hush Logging
+// External LED Light Configuration
+#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 
+
+// DEBUG Hush Logging
 //#define HUSH_LOG                      true          // false - logging output, true - no logging
 
-// Hush LED usage
+// DEBUG Hush LED usage
 //#define HUSH_LEDS                     true          // false - enable LEDs, true - disable LEDs
 
-// Memory Debug Enable/Disable
+// DEBUG Memory Debug Enable/Disable
 //#define ENABLE_MEMORY_DEBUG           true          // false - disable, true - enable (for all error_handler->log() operations)
 //#define MEMORY_LOGGING                true          // false - disable, true - enable (for error_handler->log_memory() operations only)
 
-// Enable/Disable NSP Get and GetPut operations
-#define NSP_ENABLE_GET                true            // true - enable, false - disable
-#define NSP_ENABLE_GETPUT             true            // true - enable, false - disable
-
-// our MAC address
+// KEIL our MAC address
 //#define MAC_ADDRESS                   0x00,0x1e,0xAB,0xE3,0x4F,0x55
 
-// Our Endpoint Version Annoucement
-#define ENDPOINT_VERSION_ANNOUNCE "\r\nMBED IMPACT(NSP) Endpoint v1.0"
-
-// Preference File Configuration
-#define PREFERENCES_FILE            "/local/nsp.cfg"// preferences file for endpoint  
-
-// Light Configuration
-#define LIGHT_NAME          "light-nsp-%d"          // name of each light in this endpoint
-#define LIGHT_BLINK_WAIT_MS 1000                    // time between blinks (ms)
-#define LIGHT_NAME_INDEX    1                       // start index for the ID of the light name
-
-// 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
-
-// External LED Light Configuration
-#define EXT_LED_ENABLE              true            // true - enable external LED endpoint light, false - disable
-#define EXT_LED_PIN                 p21             // pin to use for external LED cathode 
-
-// NSP Configuration
-#define NSP_NODE_TYPE       "Light"                 // Node type
-#define NSP_NODE_LIFETIME   "3600"                  // Node lifetime (seconds) - 1 hour
-#define RD_UPDATE_PERIOD     1700                   // The number of seconds between NSP (re)registration messages - 28.3 minutes
-
-// NSP Registration Configuration
-#define NSP_RESOURCES_OBSERVABLE    1               // 1 - all resources will be registered as observable, 0 - not observable
-#define NSP_RESOURCES_REGISTERED    1               // 1 - all resources will be registered, 0 - not registered
-
-// 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 
-
-// Transport Configuration
-#define NUM_TRANSPORTS      2                      // Transports used
-#define NSP_TRANSPORT       0                      // NSP Transport index
-#define HTTP_TRANSPORT      1                      // HTTP Transport index
-
 #endif // _DEFINITIONS_H
\ No newline at end of file