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@9:0b017e956142, 2017-05-30 (annotated)
- Committer:
- sgetz7908
- Date:
- Tue May 30 19:01:17 2017 +0000
- Revision:
- 9:0b017e956142
- Parent:
- 8:5bb94184842d
- Child:
- 10:b3553e75eee0
Full code with BLE communication, and test modes.; Not fully tested yet.
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 | 9:0b017e956142 | 8 | #define TEST 1 // 0=normal, 1=Test mode, where SHIP MODE is skipped |
sgetz7908 | 9:0b017e956142 | 9 | #define UART_DEBUGGING 1 // if =1, put out debug info on the BLE_UART |
sgetz7908 | 9:0b017e956142 | 10 | |
sgetz7908 | 9:0b017e956142 | 11 | #define DARK_SAMPLE_PERIOD 15 // During manufacturing, this determines how many seconds between light_sensor samples |
sgetz7908 | 9:0b017e956142 | 12 | #define MIN_DARK_TIME_MIN 15 // Number of seconds the unit needs to be in the dark to go into SHIP_MODE |
sgetz7908 | 9:0b017e956142 | 13 | |
sgetz7908 | 9:0b017e956142 | 14 | #define CHECK_CAP_PERIOD_SEC 3 // check for cap every this many seconds |
sgetz7908 | 9:0b017e956142 | 15 | |
sgetz7908 | 8:5bb94184842d | 16 | #define CAP_THRESHOLD 50 |
sgetz7908 | 2:def2c045c43a | 17 | |
sgetz7908 | 2:def2c045c43a | 18 | //****************************************************************************** |
sgetz7908 | 0:cec02cf6df66 | 19 | |
sgetz7908 | 0:cec02cf6df66 | 20 | #endif // #ifndef MAIN_H |