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
main.h@14:2f85a359d3f7, 2017-06-02 (annotated)
- Committer:
- sgetz7908
- Date:
- Fri Jun 02 02:37:55 2017 +0000
- Revision:
- 14:2f85a359d3f7
- Parent:
- 12:55495eedbd8e
- Child:
- 20:a110023f39d1
Advertises for 2 minutes after cap is put on.; Was doing it after cap removed.;
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 | 0:cec02cf6df66 | 5 | |
| sgetz7908 | 2:def2c045c43a | 6 | #define FW_VERSION 001 // major revisions will be 1xx, 2xx, etc. |
| sgetz7908 | 0:cec02cf6df66 | 7 | |
| sgetz7908 | 12:55495eedbd8e | 8 | #define SKIP_SHIP_MODE 1 // 0=normal, 1=Test mode, where SHIP_MODE is skipped |
| sgetz7908 | 14:2f85a359d3f7 | 9 | #define UART_DEBUGGING 0 // if =1, put out debug info on the BLE_UART |
| sgetz7908 | 12:55495eedbd8e | 10 | #define ENABLE_LED 1 // if =1, enable the debug LED |
| sgetz7908 | 9:0b017e956142 | 11 | |
| sgetz7908 | 9:0b017e956142 | 12 | #define DARK_SAMPLE_PERIOD 15 // During manufacturing, this determines how many seconds between light_sensor samples |
| sgetz7908 | 12:55495eedbd8e | 13 | #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 | 14 | |
| sgetz7908 | 11:c65905cb9f56 | 15 | #define CHECK_CAP_PERIOD_SEC 3 // check for cap every this many seconds |
| sgetz7908 | 9:0b017e956142 | 16 | |
| sgetz7908 | 8:5bb94184842d | 17 | #define CAP_THRESHOLD 50 |
| sgetz7908 | 2:def2c045c43a | 18 | |
| sgetz7908 | 2:def2c045c43a | 19 | //****************************************************************************** |
| sgetz7908 | 0:cec02cf6df66 | 20 | |
| sgetz7908 | 0:cec02cf6df66 | 21 | #endif // #ifndef MAIN_H |