Merck / Mbed OS SmartCap_OS5

Dependencies:   nRF51822

main.h

Committer:
sgetz7908
Date:
2016-09-02
Revision:
1:b08ee63a2822
Parent:
0:cec02cf6df66
Child:
2:def2c045c43a

File content as of revision 1:b08ee63a2822:


#ifndef MAIN_H
#define MAIN_H


#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

#define FW_VERSION  000 //  major revisions will be 1xx, 2xx, etc.

#define VDD_DELAY   3 // seconds to keep vdd on after PRESS is released.

// Digital I/O lines
#define PRESS           p3      // Will be shorted to battery terminal when pressed.  Need internal pull-up or pull-down
#define SOUND_ANALOG    p1      // Analog signal from opto sensor 
#define VDD_ENABLE      p24     // Analog voltage on when hi
#define TP              p2      // Test Point

// ADC defines
//#define ADC_CHAN_BATTERY    0 /* no I/O pin, done internally */
//#define ADC_CHAN_SOUND      2 /* p1 or Analog2 */



#endif // #ifndef MAIN_H