Chanel's edits
Dependencies: max32630fthr USBDevice
Diff: bt32630.h
- Revision:
- 7:4debec043316
- Parent:
- 6:2f1d4a9e201f
- Child:
- 10:28b8729cf5dc
--- a/bt32630.h Sun Feb 23 18:36:12 2020 +0000 +++ b/bt32630.h Mon Feb 24 14:53:49 2020 +0000 @@ -1,10 +1,15 @@ +//#include "HeartRateService.h" +#include "ECGService.h" + extern MAX86150 max86150Sensor; extern Serial pc; const static char DEVICE_NAME[] = "Nordic_HRM"; static const uint16_t uuid16_list[] = {GattService::UUID_HEART_RATE_SERVICE}; -static uint8_t hrmCounter = 100; // init HRM to 100bps -static HeartRateService *hrServicePtr; + +static int32_t hrmCounter = 100; // init HRM to 100bps +//static HeartRateService *hrServicePtr; +static ECGService *hrServicePtr; static EventQueue eventQueue(/* event count */ 16 * EVENTS_EVENT_SIZE); @@ -75,8 +80,8 @@ pc.printf("Set connection/disconnection callbacks ...\n"); /* Setup primary service. */ - hrServicePtr = new HeartRateService(ble, hrmCounter, HeartRateService::LOCATION_FINGER); - //hrServicePtr = new EcgService(ble, hrmCounter, HeartRateService::LOCATION_FINGER); + //hrServicePtr = new HeartRateService(ble, hrmCounter, HeartRateService::LOCATION_FINGER); + hrServicePtr = new ECGService(ble, hrmCounter); pc.printf("Setup primary service ...\n");