HSP Platform firmware evaluating ECG data and hearth rate over PPG data.

Dependencies:   max32630fthr Adafruit_FeatherOLED USBDevice

Files at this revision

API Documentation at this revision

Comitter:
phonemacro
Date:
Thu Mar 25 21:59:17 2021 +0000
Parent:
3:2fe2ff1ca0dc
Commit message:
fix compile errors from mbed OS changes.

Changed in this revision

Drivers/Adafruit_FeatherOLED.lib Show annotated file Show diff for this revision Revisions of this file
Drivers/USBDevice.lib Show annotated file Show diff for this revision Revisions of this file
Interfaces/DeviceStudio/DSInterface.cpp Show annotated file Show diff for this revision Revisions of this file
Interfaces/DeviceStudio/DSInterface.h Show annotated file Show diff for this revision Revisions of this file
Platforms/max32630fthr.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 2fe2ff1ca0dc -r 682a4ebb995a Drivers/Adafruit_FeatherOLED.lib
--- a/Drivers/Adafruit_FeatherOLED.lib	Mon Jul 29 10:26:58 2019 +0300
+++ b/Drivers/Adafruit_FeatherOLED.lib	Thu Mar 25 21:59:17 2021 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/switches/code/Adafruit_FeatherOLED/#a267f00528be
+https://developer.mbed.org/users/switches/code/Adafruit_FeatherOLED/#a267f00528be
diff -r 2fe2ff1ca0dc -r 682a4ebb995a Drivers/USBDevice.lib
--- a/Drivers/USBDevice.lib	Mon Jul 29 10:26:58 2019 +0300
+++ b/Drivers/USBDevice.lib	Thu Mar 25 21:59:17 2021 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/MaximIntegrated/code/USBDevice/#dad310740b28
+https://developer.mbed.org/teams/MaximIntegrated/code/USBDevice/#dad310740b28
diff -r 2fe2ff1ca0dc -r 682a4ebb995a Interfaces/DeviceStudio/DSInterface.cpp
--- a/Interfaces/DeviceStudio/DSInterface.cpp	Mon Jul 29 10:26:58 2019 +0300
+++ b/Interfaces/DeviceStudio/DSInterface.cpp	Thu Mar 25 21:59:17 2021 +0000
@@ -125,6 +125,8 @@
 	silent_mode = false;
 	pause_mode = false;
 
+	algo_report_mode = 1; // sets the mode for report 1/2
+	lcd_time_count = 0;
 	memset(sensor_list, 0, DS_MAX_NUM_SENSORCOMMS * sizeof(SensorComm*));
 	num_sensors = 0;
 
diff -r 2fe2ff1ca0dc -r 682a4ebb995a Interfaces/DeviceStudio/DSInterface.h
--- a/Interfaces/DeviceStudio/DSInterface.h	Mon Jul 29 10:26:58 2019 +0300
+++ b/Interfaces/DeviceStudio/DSInterface.h	Thu Mar 25 21:59:17 2021 +0000
@@ -143,7 +143,7 @@
 
 	void stopcommand();
     void parse_command_str(const char* cmd );
-	uint8_t  algo_report_mode = 1; // sets the mode for report 1/2
+	uint8_t  algo_report_mode; // sets the mode for report 1/2
 
 
  //   FATFileSystem *logfilesystem;
@@ -188,7 +188,7 @@
     bool silent_mode;
     bool pause_mode;
     char lcd_time_str[30];
-    int lcd_time_count=0;
+    int lcd_time_count;
     int lcd_time_val;
 
     //buffer to hold string that will be written into the log file
diff -r 2fe2ff1ca0dc -r 682a4ebb995a Platforms/max32630fthr.lib
--- a/Platforms/max32630fthr.lib	Mon Jul 29 10:26:58 2019 +0300
+++ b/Platforms/max32630fthr.lib	Thu Mar 25 21:59:17 2021 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/MaximIntegrated/code/max32630fthr/#9eb360063579
+http://developer.mbed.org/teams/MaximIntegrated/code/max32630fthr/#9eb360063579
diff -r 2fe2ff1ca0dc -r 682a4ebb995a main.cpp
--- a/main.cpp	Mon Jul 29 10:26:58 2019 +0300
+++ b/main.cpp	Thu Mar 25 21:59:17 2021 +0000
@@ -233,6 +233,7 @@
 	microUSB.printf("micro USB serial port\r\n");
 
 	//dsInterface.set_fw_version(FIRMWARE_VERSION);
+#define MAXIM_PLATFORM_NAME	"Pegasus"
 	dsInterface.set_fw_platform(MAXIM_PLATFORM_NAME);
 	Peripherals::setUSBSerial(&microUSB);