
MBED NanoService Lighting Endpoint for NXP LPC1768+AppBoard
Dependencies: C12832_lcd EthernetInterface StatusReporter LM75B endpoint_core endpoint_nsp mbed-rtos mbed nsp_resources
Definitions.h@49:09cfcf133529, 2014-07-18 (annotated)
- Committer:
- ansond
- Date:
- Fri Jul 18 21:05:22 2014 +0000
- Revision:
- 49:09cfcf133529
- Parent:
- 46:e17a4e14a73b
- Child:
- 52:cda3326bc870
more updates for APM Light - fixed blinking issue in Light
Who changed what in which revision?
User | Revision | Line number | New 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 | 44:66ffad7c1de8 | 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 | 45:053841b8a18b | 40 | // APM Demo Light Configuration |
ansond | 45:053841b8a18b | 41 | #define APM_LIGHT_ENABLE false // true - enable APM Demo light, undef - disable |
ansond | 45:053841b8a18b | 42 | |
ansond | 45:053841b8a18b | 43 | // External LED Light Configuration |
ansond | 45:053841b8a18b | 44 | #define EXT_LED_ENABLE true // true - enable external LED endpoint light, false - disable |
ansond | 45:053841b8a18b | 45 | |
ansond | 0:b3127c110758 | 46 | // include common definitions |
ansond | 0:b3127c110758 | 47 | #include "CommonDefinitions.h" |
ansond | 0:b3127c110758 | 48 | |
ansond | 0:b3127c110758 | 49 | // NSP specific definitions |
ansond | 0:b3127c110758 | 50 | #include "NSPDefinitions.h" |
ansond | 0:b3127c110758 | 51 | |
ansond | 0:b3127c110758 | 52 | // Philips Light Config |
ansond | 0:b3127c110758 | 53 | #define PL_ENABLE false // true - enable for endpoint light, false - disable |
ansond | 0:b3127c110758 | 54 | #define PL_LIGHT_ID PL_LIGHT_ID_BILL // Default light for Philips Light |
ansond | 0:b3127c110758 | 55 | |
ansond | 0:b3127c110758 | 56 | // Endpoint GPS Coordinates |
ansond | 46:e17a4e14a73b | 57 | //#define ENDPOINT_LOCATION "Las Vegas Country Club"// Where this light/endpoint lives |
ansond | 46:e17a4e14a73b | 58 | //#define ENDPOINT_GPS_COORDS "36.131258,-115.144414" // golf course 36.131258,-115.144414 |
ansond | 46:e17a4e14a73b | 59 | #define ENDPOINT_LOCATION "Bilbao Spain Utilities" // Where this light/endpoint lives |
ansond | 46:e17a4e14a73b | 60 | #define ENDPOINT_GPS_COORDS "43.263383,-2.923628" // Bilbao spain |
ansond | 0:b3127c110758 | 61 | |
ansond | 0:b3127c110758 | 62 | // DEBUG Hush Logging |
ansond | 0:b3127c110758 | 63 | //#define HUSH_LOG true // false - logging output, true - no logging |
ansond | 0:b3127c110758 | 64 | |
ansond | 0:b3127c110758 | 65 | // DEBUG Hush LED usage |
ansond | 0:b3127c110758 | 66 | //#define HUSH_LEDS true // false - enable LEDs, true - disable LEDs |
ansond | 0:b3127c110758 | 67 | |
ansond | 0:b3127c110758 | 68 | // DEBUG Memory Debug Enable/Disable |
ansond | 0:b3127c110758 | 69 | //#define ENABLE_MEMORY_DEBUG true // false - disable, true - enable (for all error_handler->log() operations) |
ansond | 0:b3127c110758 | 70 | //#define MEMORY_LOGGING true // false - disable, true - enable (for error_handler->log_memory() operations only) |
ansond | 0:b3127c110758 | 71 | |
ansond | 0:b3127c110758 | 72 | // KEIL our MAC address |
ansond | 0:b3127c110758 | 73 | //#define MAC_ADDRESS 0x00,0x1e,0xAB,0xE3,0x4F,0x55 |
ansond | 0:b3127c110758 | 74 | |
ansond | 0:b3127c110758 | 75 | #endif // _DEFINITIONS_H |