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@0:cec02cf6df66, 2016-09-01 (annotated)
- Committer:
- sgetz7908
- Date:
- Thu Sep 01 21:20:59 2016 +0000
- Revision:
- 0:cec02cf6df66
- Child:
- 1:b08ee63a2822
Initial Version.
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 | 0:cec02cf6df66 | 6 | #define UART_DEBUGGING 0 // put a '1' here if you are debugging on the BLE UART, otherwise make it 0. Turns on: shows records being added to log, will not allow a ble connection to timeout |
sgetz7908 | 0:cec02cf6df66 | 7 | |
sgetz7908 | 0:cec02cf6df66 | 8 | #define FW_VERSION 000 // major revisions will be 1xx, 2xx, etc. |
sgetz7908 | 0:cec02cf6df66 | 9 | |
sgetz7908 | 0:cec02cf6df66 | 10 | // Digital I/O lines |
sgetz7908 | 0:cec02cf6df66 | 11 | #define PRESS p3 // Will be shorted to battery terminal when pressed. Need internal pull-up or pull-down |
sgetz7908 | 0:cec02cf6df66 | 12 | #define SOUND_ANALOG p1 // Analog signal from opto sensor |
sgetz7908 | 0:cec02cf6df66 | 13 | #define VDD_ENABLE p24 // Analog voltage on when hi |
sgetz7908 | 0:cec02cf6df66 | 14 | #define TP p2 // Test Point |
sgetz7908 | 0:cec02cf6df66 | 15 | |
sgetz7908 | 0:cec02cf6df66 | 16 | // ADC defines |
sgetz7908 | 0:cec02cf6df66 | 17 | #define ADC_CHAN_BATTERY 0 /* no I/O pin, done internally */ |
sgetz7908 | 0:cec02cf6df66 | 18 | #define ADC_CHAN_SOUND 2 /* p1 or Analog2 */ |
sgetz7908 | 0:cec02cf6df66 | 19 | |
sgetz7908 | 0:cec02cf6df66 | 20 | |
sgetz7908 | 0:cec02cf6df66 | 21 | |
sgetz7908 | 0:cec02cf6df66 | 22 | #endif // #ifndef MAIN_H |