MBED NanoService Lighting Endpoint for NXP LPC1768+AppBoard

Dependencies:   C12832_lcd EthernetInterface StatusReporter LM75B endpoint_core endpoint_nsp mbed-rtos mbed nsp_resources

Committer:
ansond
Date:
Thu Oct 09 04:13:20 2014 +0000
Revision:
86:d1b243a24b78
Parent:
75:a334ac80270b
updates

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ansond 0:b3127c110758 1 /* Copyright C2013 Doug Anson, MIT License
ansond 0:b3127c110758 2 *
ansond 0:b3127c110758 3 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
ansond 0:b3127c110758 4 * and associated documentation files the "Software", to deal in the Software without restriction,
ansond 0:b3127c110758 5 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
ansond 0:b3127c110758 6 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
ansond 0:b3127c110758 7 * furnished to do so, subject to the following conditions:
ansond 0:b3127c110758 8 *
ansond 0:b3127c110758 9 * The above copyright notice and this permission notice shall be included in all copies or
ansond 0:b3127c110758 10 * substantial portions of the Software.
ansond 0:b3127c110758 11 *
ansond 0:b3127c110758 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
ansond 0:b3127c110758 13 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
ansond 0:b3127c110758 14 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
ansond 0:b3127c110758 15 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
ansond 0:b3127c110758 16 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ansond 0:b3127c110758 17 */
ansond 0:b3127c110758 18
ansond 0:b3127c110758 19 #ifndef _DEFINITIONS_H_
ansond 0:b3127c110758 20 #define _DEFINITIONS_H_
ansond 0:b3127c110758 21
ansond 0:b3127c110758 22 // platform
ansond 0:b3127c110758 23 #include "mbed.h"
ansond 0:b3127c110758 24
ansond 0:b3127c110758 25 // Platform Switch
ansond 0:b3127c110758 26 //#define _ENDPOINT_UBLOX_PLATFORM true // uncomment for the U-Blox MBED platform
ansond 0:b3127c110758 27 //#define _ENDPOINT_FREESCALE_PLATFORM true // uncomment for the Freescale Freedom MBED platform
ansond 0:b3127c110758 28 #define _ENDPOINT_NXP_PLATFORM true // uncomment for the NXP MBED platform
ansond 0:b3127c110758 29
ansond 4:fe7f04334a09 30 // Network Usage (default is Ethernet)
ansond 4:fe7f04334a09 31 //#define CELLULAR_NETWORK true // true - use cellular network, false - use ethernet (cannot co-exist together)
ansond 4:fe7f04334a09 32
ansond 44:66ffad7c1de8 33 // Multitech Temp Probe customization
ansond 75:a334ac80270b 34 //#define MULTITECH_TEMP_PROBE true // true - on, undef - off
ansond 44:66ffad7c1de8 35
ansond 0:b3127c110758 36 // what kind of personality we are...
ansond 0:b3127c110758 37 #define LIGHT_PERSONALITY true // the endpoint will be a (set of) lights
ansond 0:b3127c110758 38 //#define COPCAR_PERSONALITY true // the endpoint will emulate a cop car
ansond 0:b3127c110758 39
ansond 52:cda3326bc870 40 // special behavior for APM CopCar - steady state on/off for blinking
ansond 52:cda3326bc870 41 //#define APM_COPCAR_ENABLE true // true - enabled, (undef) - disabled
ansond 52:cda3326bc870 42
ansond 45:053841b8a18b 43 // APM Demo Light Configuration
ansond 75:a334ac80270b 44 //#define APM_LIGHT_ENABLE false // true - enable APM Demo light, undef - disable
ansond 45:053841b8a18b 45
ansond 45:053841b8a18b 46 // External LED Light Configuration
ansond 45:053841b8a18b 47 #define EXT_LED_ENABLE true // true - enable external LED endpoint light, false - disable
ansond 45:053841b8a18b 48
ansond 0:b3127c110758 49 // include common definitions
ansond 0:b3127c110758 50 #include "CommonDefinitions.h"
ansond 0:b3127c110758 51
ansond 0:b3127c110758 52 // NSP specific definitions
ansond 0:b3127c110758 53 #include "NSPDefinitions.h"
ansond 0:b3127c110758 54
ansond 0:b3127c110758 55 // Philips Light Config
ansond 0:b3127c110758 56 #define PL_ENABLE false // true - enable for endpoint light, false - disable
ansond 0:b3127c110758 57 #define PL_LIGHT_ID PL_LIGHT_ID_BILL // Default light for Philips Light
ansond 0:b3127c110758 58
ansond 0:b3127c110758 59 // Endpoint GPS Coordinates
ansond 46:e17a4e14a73b 60 //#define ENDPOINT_LOCATION "Las Vegas Country Club"// Where this light/endpoint lives
ansond 46:e17a4e14a73b 61 //#define ENDPOINT_GPS_COORDS "36.131258,-115.144414" // golf course 36.131258,-115.144414
ansond 63:8c5832926e72 62 //#define ENDPOINT_LOCATION "Bilbao Spain Utilities" // Where this light/endpoint lives
ansond 63:8c5832926e72 63 //#define ENDPOINT_GPS_COORDS "43.263383,-2.923628" // Bilbao spain
ansond 63:8c5832926e72 64 #define ENDPOINT_LOCATION "Santa Clara Utilities" // Where this light/endpoint lives
ansond 63:8c5832926e72 65 #define ENDPOINT_GPS_COORDS "37.404120,-121.973195" // Santa Clara, CA
ansond 0:b3127c110758 66
ansond 0:b3127c110758 67 // DEBUG Hush Logging
ansond 0:b3127c110758 68 //#define HUSH_LOG true // false - logging output, true - no logging
ansond 0:b3127c110758 69
ansond 0:b3127c110758 70 // DEBUG Hush LED usage
ansond 0:b3127c110758 71 //#define HUSH_LEDS true // false - enable LEDs, true - disable LEDs
ansond 0:b3127c110758 72
ansond 0:b3127c110758 73 // DEBUG Memory Debug Enable/Disable
ansond 0:b3127c110758 74 //#define ENABLE_MEMORY_DEBUG true // false - disable, true - enable (for all error_handler->log() operations)
ansond 0:b3127c110758 75 //#define MEMORY_LOGGING true // false - disable, true - enable (for error_handler->log_memory() operations only)
ansond 0:b3127c110758 76
ansond 0:b3127c110758 77 // KEIL our MAC address
ansond 0:b3127c110758 78 //#define MAC_ADDRESS 0x00,0x1e,0xAB,0xE3,0x4F,0x55
ansond 0:b3127c110758 79
ansond 0:b3127c110758 80 #endif // _DEFINITIONS_H