Test program running on MAX32625MBED. Control through USB Serial commands using a terminal emulator such as teraterm or putty.

Dependencies:   MaximTinyTester CmdLine MAX541 USBDevice

Revision:
15:2c21eaa9188b
Parent:
14:cbe972986136
Child:
16:3c75011e705a
diff -r cbe972986136 -r 2c21eaa9188b main.cpp
--- a/main.cpp	Sun Jul 14 03:16:54 2019 +0000
+++ b/main.cpp	Sun Jul 14 06:27:18 2019 +0000
@@ -400,6 +400,7 @@
 #endif // APPLICATION_MAX11410
 #if APPLICATION_MAX11410 // header file
 #include "MAX11410.h"
+#define HAS_I2C 0
 #endif // APPLICATION_MAX11410
 
 //--------------------------------------------------
@@ -409,6 +410,7 @@
 #endif // APPLICATION_MAX12345
 #if APPLICATION_MAX12345 // header file
 #include "MAX12345.h"
+#define HAS_I2C 0
 #endif // APPLICATION_MAX12345
 
 
@@ -3693,13 +3695,13 @@
 #elif APPLICATION_MAX11410
     //
     // TODO: placeholder for self-test functions
-    SelfTest_FAIL(cmdLine);
+    tinyTester.FAIL();
     cmdLine.serial().printf("test program not implemented yet");
     //
 #elif APPLICATION_MAX12345
     //
     // TODO: placeholder for self-test functions
-    SelfTest_FAIL(cmdLine);
+    tinyTester.FAIL();
     cmdLine.serial().printf("test program not implemented yet");
     //
 #else // APPLICATION_MAX5715
@@ -3708,7 +3710,7 @@
        //
 #if INJECT_SELFTEST_FAIL
     // Test of the pass/fail report mechanism
-    SelfTest_FAIL(cmdLine);
+    tinyTester.FAIL();
     cmdLine.serial().printf("injecting one false failure for test reporting");
 #endif
     //
@@ -5920,7 +5922,7 @@
 
 
 //--------------------------------------------------
-#if APPLICATION_MAX12345 // MAX12345_menu_onEOLcommandParser
+#if APPLICATION_MAX12345 // MAX12345_menu_onEOLcommandParser see Test_Menu_MAX12345.cpp
 bool MAX12345_menu_onEOLcommandParser(CmdLine & cmdLine)
 {
     switch (cmdLine[0])
@@ -6227,7 +6229,7 @@
     cmdLine_DAPLINKserial.serial().printf("\r\nMAX12345_Init()");
 # endif
     cmdLine_serial.serial().printf("\r\nMAX12345_Init()");
-    int initResult = MAX12345_Init();     // defined in #include MAX12345.h
+    int initResult = g_MAX12345_device.Init();     // defined in #include MAX12345.h
 # if HAS_DAPLINK_SERIAL
     cmdLine_DAPLINKserial.serial().printf("\r\nMAX12345_Init() returned %d\r\n", initResult);
 # endif