salesforce HeartRate monitor sample application. This application sends periodic heart rate values into salesforce.com via the mbed SalesforceInterface API.
Dependencies: BufferedSerial C12832 EthernetInterface GroveEarbudSensor Logger SalesforceInterface mbed-rtos mbed
Fork of df-2014-salesforce-hrm-k64f by
Definitions.h@15:bbb1cf6d0b38, 2015-08-20 (annotated)
- Committer:
- ansond
- Date:
- Thu Aug 20 19:05:31 2015 +0000
- Revision:
- 15:bbb1cf6d0b38
- Parent:
- 4:73f9d7560e93
updated endpoint to latest libs
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ansond | 0:a298d18da239 | 1 | /* Copyright C2014 ARM, MIT License |
ansond | 0:a298d18da239 | 2 | * |
ansond | 0:a298d18da239 | 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software |
ansond | 0:a298d18da239 | 4 | * and associated documentation files the "Software", to deal in the Software without restriction, |
ansond | 0:a298d18da239 | 5 | * including without limitation the rights to use, copy, modify, merge, publish, distribute, |
ansond | 0:a298d18da239 | 6 | * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is |
ansond | 0:a298d18da239 | 7 | * furnished to do so, subject to the following conditions: |
ansond | 0:a298d18da239 | 8 | * |
ansond | 0:a298d18da239 | 9 | * The above copyright notice and this permission notice shall be included in all copies or |
ansond | 0:a298d18da239 | 10 | * substantial portions of the Software. |
ansond | 0:a298d18da239 | 11 | * |
ansond | 0:a298d18da239 | 12 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING |
ansond | 0:a298d18da239 | 13 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
ansond | 0:a298d18da239 | 14 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
ansond | 0:a298d18da239 | 15 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
ansond | 0:a298d18da239 | 16 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
ansond | 0:a298d18da239 | 17 | */ |
ansond | 0:a298d18da239 | 18 | |
ansond | 0:a298d18da239 | 19 | #ifndef _DEFINITIONS_H_ |
ansond | 0:a298d18da239 | 20 | #define _DEFINITIONS_H_ |
ansond | 0:a298d18da239 | 21 | |
ansond | 0:a298d18da239 | 22 | // mbed |
ansond | 0:a298d18da239 | 23 | #include "mbed.h" |
ansond | 0:a298d18da239 | 24 | |
ansond | 0:a298d18da239 | 25 | // Our App version |
ansond | 0:a298d18da239 | 26 | #define APP_VERSION "1.0.0" |
ansond | 0:a298d18da239 | 27 | |
ansond | 0:a298d18da239 | 28 | // Enable/Disable verbose debugging |
ansond | 0:a298d18da239 | 29 | #define ENABLE_DEBUG_LOGGING false // true - enabled, false - disabled (default) |
ansond | 0:a298d18da239 | 30 | |
ansond | 0:a298d18da239 | 31 | // maximum memory buffer chunk |
ansond | 0:a298d18da239 | 32 | #define MAX_BUFFER_LENGTH 2048 |
ansond | 0:a298d18da239 | 33 | |
ansond | 0:a298d18da239 | 34 | // small buffer chunk |
ansond | 0:a298d18da239 | 35 | #define MAX_SMALL_BUFFER_LENGTH 256 |
ansond | 0:a298d18da239 | 36 | |
ansond | 0:a298d18da239 | 37 | // Blink Time |
ansond | 0:a298d18da239 | 38 | #define BLINK_TIME 250 |
ansond | 0:a298d18da239 | 39 | |
ansond | 0:a298d18da239 | 40 | // Max number of retries |
ansond | 3:3a5fdfdabca3 | 41 | #define MAX_TRIES 4 |
ansond | 0:a298d18da239 | 42 | |
ansond | 0:a298d18da239 | 43 | // Wait Time for iterations (ms) |
ansond | 4:73f9d7560e93 | 44 | #define WAIT_TIME_MS 2500 |
ansond | 0:a298d18da239 | 45 | |
ansond | 0:a298d18da239 | 46 | // What platform we are compiling on |
ansond | 0:a298d18da239 | 47 | #define _K64F_PLATFORM true |
ansond | 0:a298d18da239 | 48 | |
ansond | 0:a298d18da239 | 49 | // K64F needs to launch the task in a thread with a large stack size... |
ansond | 0:a298d18da239 | 50 | #if _K64F_PLATFORM |
ansond | 0:a298d18da239 | 51 | #define STACK_SIZE 40000 |
ansond | 0:a298d18da239 | 52 | #endif |
ansond | 0:a298d18da239 | 53 | |
ansond | 0:a298d18da239 | 54 | #endif // _DEFINITIONS_H_ |