Example source code for MAXREFDES101.

Dependencies:   max32630fthr Adafruit_FeatherOLED USBDevice

Files at this revision

API Documentation at this revision

Comitter:
phonemacro
Date:
Sat Sep 28 04:17:46 2019 +0000
Parent:
3:2fe2ff1ca0dc
Commit message:
Move initialization of variables to constructor of DSInterface.cpp instead of DSInterface.h; Set the MAXIM_PLATFORM_NAME to Pegasus

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
--- a/Drivers/Adafruit_FeatherOLED.lib	Mon Jul 29 10:26:58 2019 +0300
+++ b/Drivers/Adafruit_FeatherOLED.lib	Sat Sep 28 04:17:46 2019 +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
--- a/Drivers/USBDevice.lib	Mon Jul 29 10:26:58 2019 +0300
+++ b/Drivers/USBDevice.lib	Sat Sep 28 04:17:46 2019 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/MaximIntegrated/code/USBDevice/#dad310740b28
+https://developer.mbed.org/teams/MaximIntegrated/code/USBDevice/#dad310740b28
--- a/Interfaces/DeviceStudio/DSInterface.cpp	Mon Jul 29 10:26:58 2019 +0300
+++ b/Interfaces/DeviceStudio/DSInterface.cpp	Sat Sep 28 04:17:46 2019 +0000
@@ -121,6 +121,8 @@
 DSInterface::DSInterface(USBSerial* USB)
 	:flash_thread_(osPriorityNormal, 2 * 1024)
 {
+    algo_report_mode = 1;
+    lcd_time_count = 0;
 	cmd_idx = 0;
 	silent_mode = false;
 	pause_mode = false;
--- a/Interfaces/DeviceStudio/DSInterface.h	Mon Jul 29 10:26:58 2019 +0300
+++ b/Interfaces/DeviceStudio/DSInterface.h	Sat Sep 28 04:17:46 2019 +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
--- a/Platforms/max32630fthr.lib	Mon Jul 29 10:26:58 2019 +0300
+++ b/Platforms/max32630fthr.lib	Sat Sep 28 04:17:46 2019 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/MaximIntegrated/code/max32630fthr/#9eb360063579
+http://developer.mbed.org/teams/MaximIntegrated/code/max32630fthr/#8f6e6a800f2f
--- a/main.cpp	Mon Jul 29 10:26:58 2019 +0300
+++ b/main.cpp	Sat Sep 28 04:17:46 2019 +0000
@@ -232,7 +232,8 @@
 	daplink.printf("daplink serial port\r\n");
 	microUSB.printf("micro USB serial port\r\n");
 
-	//dsInterface.set_fw_version(FIRMWARE_VERSION);
+	dsInterface.set_fw_version(FIRMWARE_VERSION);
+#define MAXIM_PLATFORM_NAME	"Pegasus"
 	dsInterface.set_fw_platform(MAXIM_PLATFORM_NAME);
 	Peripherals::setUSBSerial(&microUSB);