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@169:584a83987318, 2014-03-31 (annotated)
- Committer:
- ansond
- Date:
- Mon Mar 31 17:43:41 2014 +0000
- Revision:
- 169:584a83987318
- Parent:
- 164:eee187a5723a
- Child:
- 170:9ee711ce73df
updates
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ansond | 148:56bf8bad4567 | 1 | /* Copyright C2013 Doug Anson, MIT License |
ansond | 148:56bf8bad4567 | 2 | * |
ansond | 148:56bf8bad4567 | 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software |
ansond | 148:56bf8bad4567 | 4 | * and associated documentation files the "Software", to deal in the Software without restriction, |
ansond | 148:56bf8bad4567 | 5 | * including without limitation the rights to use, copy, modify, merge, publish, distribute, |
ansond | 148:56bf8bad4567 | 6 | * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is |
ansond | 148:56bf8bad4567 | 7 | * furnished to do so, subject to the following conditions: |
ansond | 148:56bf8bad4567 | 8 | * |
ansond | 148:56bf8bad4567 | 9 | * The above copyright notice and this permission notice shall be included in all copies or |
ansond | 148:56bf8bad4567 | 10 | * substantial portions of the Software. |
ansond | 148:56bf8bad4567 | 11 | * |
ansond | 148:56bf8bad4567 | 12 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING |
ansond | 148:56bf8bad4567 | 13 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
ansond | 148:56bf8bad4567 | 14 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
ansond | 148:56bf8bad4567 | 15 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
ansond | 148:56bf8bad4567 | 16 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
ansond | 148:56bf8bad4567 | 17 | */ |
ansond | 148:56bf8bad4567 | 18 | |
ansond | 148:56bf8bad4567 | 19 | #ifndef _DEFINITIONS_H_ |
ansond | 148:56bf8bad4567 | 20 | #define _DEFINITIONS_H_ |
ansond | 148:56bf8bad4567 | 21 | |
ansond | 148:56bf8bad4567 | 22 | // platform |
ansond | 148:56bf8bad4567 | 23 | #include "mbed.h" |
ansond | 148:56bf8bad4567 | 24 | |
ansond | 149:3a2fe9f6bcb1 | 25 | // Platform Switch |
ansond | 164:eee187a5723a | 26 | #define _ENDPOINT_UBLOX_PLATFORM true // uncomment for the U-Blox MBED platform |
ansond | 164:eee187a5723a | 27 | //#define _ENDPOINT_FREESCALE_PLATFORM true // uncomment for the Freescale Freedom MBED platform |
ansond | 164:eee187a5723a | 28 | //#define _ENDPOINT_NXP_PLATFORM true // uncomment for the NXP MBED platform |
ansond | 164:eee187a5723a | 29 | |
ansond | 164:eee187a5723a | 30 | // what kind of personality we are... |
ansond | 164:eee187a5723a | 31 | #define LIGHT_PERSONALITY true // the endpoint will be a (set of) lights |
ansond | 164:eee187a5723a | 32 | //#define COPCAR_PERSONALITY true // the endpoint will emulate a cop car |
ansond | 149:3a2fe9f6bcb1 | 33 | |
ansond | 148:56bf8bad4567 | 34 | // include common definitions |
ansond | 148:56bf8bad4567 | 35 | #include "CommonDefinitions.h" |
ansond | 148:56bf8bad4567 | 36 | |
ansond | 149:3a2fe9f6bcb1 | 37 | // NSP specific definitions |
ansond | 149:3a2fe9f6bcb1 | 38 | #include "NSPDefinitions.h" |
ansond | 149:3a2fe9f6bcb1 | 39 | |
ansond | 149:3a2fe9f6bcb1 | 40 | // Philips Light Config |
ansond | 164:eee187a5723a | 41 | #define PL_ENABLE false // true - enable for endpoint light, false - disable |
ansond | 164:eee187a5723a | 42 | #define PL_LIGHT_ID PL_LIGHT_ID_BILL // Default light for Philips Light |
ansond | 148:56bf8bad4567 | 43 | |
ansond | 149:3a2fe9f6bcb1 | 44 | // External LED Light Configuration |
ansond | 164:eee187a5723a | 45 | #define EXT_LED_ENABLE true // true - enable external LED endpoint light, false - disable |
ansond | 149:3a2fe9f6bcb1 | 46 | |
ansond | 149:3a2fe9f6bcb1 | 47 | // Endpoint GPS Coordinates |
ansond | 164:eee187a5723a | 48 | #define ENDPOINT_LOCATION "Las Vegas Country Club" // Where this light/endpoint lives |
ansond | 164:eee187a5723a | 49 | #define ENDPOINT_GPS_COORDS "36.131258,-115.144414" // golf course 36.131258,-115.144414 |
ansond | 149:3a2fe9f6bcb1 | 50 | |
ansond | 156:f727f668282f | 51 | // Reset our config values if needed |
ansond | 156:f727f668282f | 52 | #ifdef _ENDPOINT_UBLOX_PLATFORM |
ansond | 157:fe82f513e574 | 53 | #undef LIGHT_NAME |
ansond | 157:fe82f513e574 | 54 | #undef ENDPOINT_GPS_COORDS |
ansond | 169:584a83987318 | 55 | #undef PERSONALITY_NAME |
ansond | 164:eee187a5723a | 56 | #define PERSONALITY_NAME "light-nsp-%d0" // name of each personality in this endpoint |
ansond | 164:eee187a5723a | 57 | #define ENDPOINT_GPS_COORDS "36.133516,-115.148721" // golf course -115.143470 36.131916 |
ansond | 163:650a02b5fd9a | 58 | #define UBLOX_USE_3G true // use 3G or ethernet |
ansond | 163:650a02b5fd9a | 59 | #define UBLOX_MODEM UbloxUSBCDMAModem // CDMA modem |
ansond | 163:650a02b5fd9a | 60 | #define UBLOX_CDMA_DELAY_MS 1000 // connect delay in MS |
ansond | 163:650a02b5fd9a | 61 | #define UBLOX_GPS_FREQ 100000 // GPS freq in ns |
ansond | 163:650a02b5fd9a | 62 | #define UBLOX_GPS_POLL_MS 5000 // poll the GPS every 5 seconds |
ansond | 156:f727f668282f | 63 | #endif |
ansond | 156:f727f668282f | 64 | |
ansond | 149:3a2fe9f6bcb1 | 65 | // DEBUG Hush Logging |
ansond | 148:56bf8bad4567 | 66 | //#define HUSH_LOG true // false - logging output, true - no logging |
ansond | 148:56bf8bad4567 | 67 | |
ansond | 149:3a2fe9f6bcb1 | 68 | // DEBUG Hush LED usage |
ansond | 148:56bf8bad4567 | 69 | //#define HUSH_LEDS true // false - enable LEDs, true - disable LEDs |
ansond | 148:56bf8bad4567 | 70 | |
ansond | 149:3a2fe9f6bcb1 | 71 | // DEBUG Memory Debug Enable/Disable |
ansond | 148:56bf8bad4567 | 72 | //#define ENABLE_MEMORY_DEBUG true // false - disable, true - enable (for all error_handler->log() operations) |
ansond | 148:56bf8bad4567 | 73 | //#define MEMORY_LOGGING true // false - disable, true - enable (for error_handler->log_memory() operations only) |
ansond | 148:56bf8bad4567 | 74 | |
ansond | 149:3a2fe9f6bcb1 | 75 | // KEIL our MAC address |
ansond | 148:56bf8bad4567 | 76 | //#define MAC_ADDRESS 0x00,0x1e,0xAB,0xE3,0x4F,0x55 |
ansond | 148:56bf8bad4567 | 77 | |
ansond | 148:56bf8bad4567 | 78 | #endif // _DEFINITIONS_H |