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: nRF51822
Source/main.h@23:7ca590427f0e, 2019-03-19 (annotated)
- Committer:
- sgetz7908
- Date:
- Tue Mar 19 19:25:39 2019 +0000
- Revision:
- 23:7ca590427f0e
- Parent:
- main.h@22:a3add5a1fef3
- Child:
- 24:761c30334cf4
Saving in progress work of updating code to new Merck Flow Diagram.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sgetz7908 | 0:cec02cf6df66 | 1 | |
sgetz7908 | 0:cec02cf6df66 | 2 | #ifndef MAIN_H |
sgetz7908 | 0:cec02cf6df66 | 3 | #define MAIN_H |
sgetz7908 | 0:cec02cf6df66 | 4 | |
sgetz7908 | 23:7ca590427f0e | 5 | #define FW_VERSION "V1.02" // major revisions will be 1xx, 2xx, etc. |
sgetz7908 | 0:cec02cf6df66 | 6 | |
sgetz7908 | 23:7ca590427f0e | 7 | #define MAX_USES 120 // Maximum cap on/off's |
sgetz7908 | 0:cec02cf6df66 | 8 | |
sgetz7908 | 23:7ca590427f0e | 9 | #define SKIP_SHIP_MODE 1 // 0=normal, 1=Test mode, where SHIP_MODE is skipped |
sgetz7908 | 23:7ca590427f0e | 10 | #define UART_DEBUGGING 0 // if =1, put out debug info on the BLE_UART |
sgetz7908 | 23:7ca590427f0e | 11 | #define ENABLE_LED 1 // if =1, enable the debug LED |
sgetz7908 | 23:7ca590427f0e | 12 | #define TEST_ON_NRF51_DK 1 // if =1, configure for running on nRF51-DK board |
sgetz7908 | 9:0b017e956142 | 13 | |
sgetz7908 | 23:7ca590427f0e | 14 | //#define DARK_SAMPLE_PERIOD 15 // During manufacturing, this determines how many seconds between light_sensor samples |
sgetz7908 | 23:7ca590427f0e | 15 | //#define MIN_DARK_TIME_MIN 15 // Number of minutes the unit needs to be in the dark to go into SHIP_MODE |
sgetz7908 | 9:0b017e956142 | 16 | |
sgetz7908 | 23:7ca590427f0e | 17 | #define PERIODIC_TICK_SEC 3.0 // update rtc and possibly run check cap |
sgetz7908 | 9:0b017e956142 | 18 | |
sgetz7908 | 23:7ca590427f0e | 19 | #define CAP_THRESHOLD 50 // ajusts the sensitivity of the cap sensor. Lower value means it triggers more easily |
sgetz7908 | 23:7ca590427f0e | 20 | |
sgetz7908 | 23:7ca590427f0e | 21 | extern void process_cmd(char * cmd); |
sgetz7908 | 2:def2c045c43a | 22 | |
sgetz7908 | 2:def2c045c43a | 23 | //****************************************************************************** |
sgetz7908 | 0:cec02cf6df66 | 24 | |
sgetz7908 | 0:cec02cf6df66 | 25 | #endif // #ifndef MAIN_H |