Merck / Mbed OS SmartCap_OS5

Dependencies:   nRF51822

Committer:
sgetz7908
Date:
Fri Sep 02 19:02:26 2016 +0000
Revision:
1:b08ee63a2822
Parent:
0:cec02cf6df66
Child:
2:def2c045c43a
Updated debounce method.

Who changed what in which revision?

UserRevisionLine numberNew 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 1:b08ee63a2822 10 #define VDD_DELAY 3 // seconds to keep vdd on after PRESS is released.
sgetz7908 1:b08ee63a2822 11
sgetz7908 0:cec02cf6df66 12 // Digital I/O lines
sgetz7908 0:cec02cf6df66 13 #define PRESS p3 // Will be shorted to battery terminal when pressed. Need internal pull-up or pull-down
sgetz7908 0:cec02cf6df66 14 #define SOUND_ANALOG p1 // Analog signal from opto sensor
sgetz7908 0:cec02cf6df66 15 #define VDD_ENABLE p24 // Analog voltage on when hi
sgetz7908 0:cec02cf6df66 16 #define TP p2 // Test Point
sgetz7908 0:cec02cf6df66 17
sgetz7908 0:cec02cf6df66 18 // ADC defines
sgetz7908 1:b08ee63a2822 19 //#define ADC_CHAN_BATTERY 0 /* no I/O pin, done internally */
sgetz7908 1:b08ee63a2822 20 //#define ADC_CHAN_SOUND 2 /* p1 or Analog2 */
sgetz7908 0:cec02cf6df66 21
sgetz7908 0:cec02cf6df66 22
sgetz7908 0:cec02cf6df66 23
sgetz7908 0:cec02cf6df66 24 #endif // #ifndef MAIN_H