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
Diff: Definitions.h
- Revision:
- 0:a298d18da239
- Child:
- 3:3a5fdfdabca3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Definitions.h Wed Sep 24 04:13:57 2014 +0000 @@ -0,0 +1,54 @@ +/* Copyright C2014 ARM, MIT License + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of this software + * and associated documentation files the "Software", to deal in the Software without restriction, + * including without limitation the rights to use, copy, modify, merge, publish, distribute, + * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all copies or + * substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING + * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + + #ifndef _DEFINITIONS_H_ + #define _DEFINITIONS_H_ + + // mbed + #include "mbed.h" + + // Our App version + #define APP_VERSION "1.0.0" + + // Enable/Disable verbose debugging + #define ENABLE_DEBUG_LOGGING false // true - enabled, false - disabled (default) + + // maximum memory buffer chunk + #define MAX_BUFFER_LENGTH 2048 + + // small buffer chunk + #define MAX_SMALL_BUFFER_LENGTH 256 + + // Blink Time + #define BLINK_TIME 250 + + // Max number of retries + #define MAX_TRIES 3 + + // Wait Time for iterations (ms) + #define WAIT_TIME_MS 10000 + + // What platform we are compiling on + #define _K64F_PLATFORM true + + // K64F needs to launch the task in a thread with a large stack size... + #if _K64F_PLATFORM + #define STACK_SIZE 40000 + #endif + + #endif // _DEFINITIONS_H_ \ No newline at end of file