Example source code for MAXREFDES101.
Dependencies: max32630fthr Adafruit_FeatherOLED USBDevice
Revision 4:fd2b2de65af2, committed 2019-09-28
- 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
diff -r 2fe2ff1ca0dc -r fd2b2de65af2 Drivers/Adafruit_FeatherOLED.lib --- 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
diff -r 2fe2ff1ca0dc -r fd2b2de65af2 Drivers/USBDevice.lib --- 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
diff -r 2fe2ff1ca0dc -r fd2b2de65af2 Interfaces/DeviceStudio/DSInterface.cpp --- 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;
diff -r 2fe2ff1ca0dc -r fd2b2de65af2 Interfaces/DeviceStudio/DSInterface.h --- 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
diff -r 2fe2ff1ca0dc -r fd2b2de65af2 Platforms/max32630fthr.lib --- 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
diff -r 2fe2ff1ca0dc -r fd2b2de65af2 main.cpp --- 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(µUSB);