Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C027_Support C12832 StatusReporter LM75B c027_radios endpoint_core endpoint_nsp nsp_resources mbed mbed-rtos
Definitions.h@79:8e7db90a07fd, 2014-03-11 (annotated)
- Committer:
 - ansond
 - Date:
 - Tue Mar 11 16:27:57 2014 +0000
 - Revision:
 - 79:8e7db90a07fd
 - Parent:
 - 74:3714531b6126
 - Child:
 - 81:f10d6a416a72
 
updates
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| ansond | 0:dcced975fb52 | 1 | /* Copyright C2013 Doug Anson, MIT License | 
| ansond | 0:dcced975fb52 | 2 | * | 
| ansond | 0:dcced975fb52 | 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software | 
| ansond | 0:dcced975fb52 | 4 | * and associated documentation files the "Software", to deal in the Software without restriction, | 
| ansond | 0:dcced975fb52 | 5 | * including without limitation the rights to use, copy, modify, merge, publish, distribute, | 
| ansond | 0:dcced975fb52 | 6 | * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | 
| ansond | 0:dcced975fb52 | 7 | * furnished to do so, subject to the following conditions: | 
| ansond | 0:dcced975fb52 | 8 | * | 
| ansond | 0:dcced975fb52 | 9 | * The above copyright notice and this permission notice shall be included in all copies or | 
| ansond | 0:dcced975fb52 | 10 | * substantial portions of the Software. | 
| ansond | 0:dcced975fb52 | 11 | * | 
| ansond | 0:dcced975fb52 | 12 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING | 
| ansond | 0:dcced975fb52 | 13 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | 
| ansond | 0:dcced975fb52 | 14 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | 
| ansond | 0:dcced975fb52 | 15 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | 
| ansond | 0:dcced975fb52 | 16 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 
| ansond | 0:dcced975fb52 | 17 | */ | 
| ansond | 0:dcced975fb52 | 18 | |
| ansond | 0:dcced975fb52 | 19 | #ifndef _DEFINITIONS_H_ | 
| ansond | 0:dcced975fb52 | 20 | #define _DEFINITIONS_H_ | 
| ansond | 0:dcced975fb52 | 21 | |
| ansond | 0:dcced975fb52 | 22 | // platform | 
| ansond | 0:dcced975fb52 | 23 | #include "mbed.h" | 
| ansond | 0:dcced975fb52 | 24 | |
| ansond | 23:7813eb9fea10 | 25 | // include common definitions | 
| ansond | 23:7813eb9fea10 | 26 | #include "CommonDefinitions.h" | 
| ansond | 23:7813eb9fea10 | 27 | |
| ansond | 46:14840a4dbe68 | 28 | // Memory Debug Enable/Disable | 
| ansond | 55:e3b6d145d225 | 29 | //#define ENABLE_MEMORY_DEBUG true // false - disable, true - enable (for all error_handler->log() operations) | 
| ansond | 79:8e7db90a07fd | 30 | #define MEMORY_LOGGING true // false - disable, true - enable (for error_handler->log_memory() operations only) | 
| ansond | 55:e3b6d145d225 | 31 | |
| ansond | 55:e3b6d145d225 | 32 | // Enable/Disable NSP Get and GetPut operations | 
| ansond | 55:e3b6d145d225 | 33 | #define NSP_ENABLE_GET true // true - enable, false - disable | 
| ansond | 55:e3b6d145d225 | 34 | #define NSP_ENABLE_GETPUT true // true - enable, false - disable | 
| ansond | 46:14840a4dbe68 | 35 | |
| ansond | 64:a2a4892979c6 | 36 | // our MAC address | 
| ansond | 64:a2a4892979c6 | 37 | #define MAC_ADDRESS 0x00,0x12,0xAB,0xE3,0x4F,0x55 | 
| ansond | 64:a2a4892979c6 | 38 | |
| ansond | 0:dcced975fb52 | 39 | // Our Endpoint Version Annoucement | 
| ansond | 0:dcced975fb52 | 40 | #define ENDPOINT_VERSION_ANNOUNCE "\r\nMBED IMPACT(NSP) Endpoint v1.0" | 
| ansond | 0:dcced975fb52 | 41 | |
| ansond | 23:7813eb9fea10 | 42 | // Light Configuration | 
| ansond | 60:1cc3bdc9b20c | 43 | #define LIGHT_NAME "light-nsp-%d" // name of each light in this endpoint | 
| ansond | 60:1cc3bdc9b20c | 44 | #define LIGHT_NAME_INDEX 1 // start index for the ID of the light name | 
| ansond | 5:9e795e139e45 | 45 | |
| ansond | 45:f9638c23b214 | 46 | // Philips Light Config | 
| ansond | 74:3714531b6126 | 47 | #define PL_ENABLE false // true - enable for endpoint light, false - disable | 
| ansond | 48:9f532bc8c4b6 | 48 | #define PL_LIGHT_ID PL_LIGHT_ID_DOUG // Default light for Philips Light | 
| ansond | 45:f9638c23b214 | 49 | |
| ansond | 23:7813eb9fea10 | 50 | // NSP Configuration | 
| ansond | 57:8248bb7eaf10 | 51 | #define NSP_NODE_TYPE "Light" // Node type | 
| ansond | 72:520f9864d7d3 | 52 | #define NSP_NODE_LIFETIME "120" // Node lifetime | 
| ansond | 68:965b2b01451c | 53 | #define RD_UPDATE_PERIOD 15 // The number of seconds between NSP (re)registration messages | 
| ansond | 0:dcced975fb52 | 54 | |
| ansond | 4:2469fd2fba1c | 55 | // Endpoint GPS Coordinates | 
| ansond | 70:46dbfb298947 | 56 | #define ENDPOINT_LOCATION "Las Vegas Country Club"// Where this light/endpoint lives | 
| ansond | 70:46dbfb298947 | 57 | #define ENDPOINT_GPS_COORDS "36.131258,-115.144414" // golf course 36.131258,-115.144414 | 
| ansond | 7:cca3a2adb6b8 | 58 | |
| ansond | 0:dcced975fb52 | 59 | // Transport Configuration | 
| ansond | 7:cca3a2adb6b8 | 60 | #define NUM_TRANSPORTS 2 // Transports used | 
| ansond | 0:dcced975fb52 | 61 | #define NSP_TRANSPORT 0 // NSP Transport index | 
| ansond | 7:cca3a2adb6b8 | 62 | #define HTTP_TRANSPORT 1 // HTTP Transport index | 
| ansond | 0:dcced975fb52 | 63 | |
| ansond | 7:cca3a2adb6b8 | 64 | // NSP Configuration | 
| ansond | 79:8e7db90a07fd | 65 | #define NSP_ADDRESS "192.168.1.150" // Target NSP Service - work | 
| ansond | 79:8e7db90a07fd | 66 | //#define NSP_ADDRESS "10.1.0.81" // Target NSP Service - home | 
| ansond | 19:a1fb67efb302 | 67 | #define NSP_PORT 5683 // Target NSP Service Port Number | 
| ansond | 0:dcced975fb52 | 68 | |
| ansond | 0:dcced975fb52 | 69 | #endif // _DEFINITIONS_H |