MBED NanoService Lighting Endpoint for NXP Ublox (Ethernet enabled)

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

Definitions.h

Committer:
ansond
Date:
2014-03-31
Revision:
169:584a83987318
Parent:
164:eee187a5723a
Child:
170:9ee711ce73df

File content as of revision 169:584a83987318:

/* Copyright C2013 Doug Anson, MIT License
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
 * and associated documentation files the "Software", to deal in the Software without restriction,
 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or
 * substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
 
#ifndef _DEFINITIONS_H_
#define _DEFINITIONS_H_

// 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

// 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"

// 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

// 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 

// Reset our config values if needed
#ifdef _ENDPOINT_UBLOX_PLATFORM
    #undef LIGHT_NAME
    #undef ENDPOINT_GPS_COORDS
    #undef PERSONALITY_NAME
    #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
    #define UBLOX_GPS_FREQ          100000                        // GPS freq in ns
    #define UBLOX_GPS_POLL_MS       5000                          // poll the GPS every 5 seconds
#endif

// DEBUG Hush Logging
//#define HUSH_LOG                      true          // false - logging output, true - no logging

// DEBUG Hush LED usage
//#define HUSH_LEDS                     true          // false - enable LEDs, true - disable LEDs

// 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)

// KEIL our MAC address
//#define MAC_ADDRESS                   0x00,0x1e,0xAB,0xE3,0x4F,0x55

#endif // _DEFINITIONS_H