Maxim Integrated / Mbed OS MAX5719BOB_Serial_Tester

Dependencies:   MaximTinyTester CmdLine MAX5719 USBDevice

Revision:
31:9cb570b0685d
Parent:
30:13fc9d492ee0
Child:
32:016a142143a5
--- a/Test_Main_MAX5719.cpp	Fri Jun 11 11:08:21 2021 -0700
+++ b/Test_Main_MAX5719.cpp	Fri Jun 11 11:46:23 2021 -0700
@@ -1889,8 +1889,8 @@
 //--------------------------------------------------
 // SelfTestGroupEnable selects which of the included tests will run
 int SelfTestGroupEnable = 0
-   | 0x0001 //  -- halt-on-first-failure configuration flag
-   | 0x0002 //  -- repeat-until-failure configuration flag
+//   | 0x0001 //  -- halt-on-first-failure configuration flag
+//   | 0x0002 //  -- repeat-until-failure configuration flag
    | 0x0004 // CODE_LOAD -- Verify function CODE_LOAD vs platform AIN0 analog input (enabled by default)
    | 0x0008 // DACCodeOfVoltage -- Verify function DACCodeOfVoltage (enabled by default)
    ;
@@ -1925,10 +1925,10 @@
     void SelfTest(CmdLine & cmdLine);
     // SelfTestGroupEnable selects which of the included tests will run
     SelfTestGroupEnable = 0
-        | 0x0001 //  -- halt-on-first-failure configuration flag
-        | 0x0002 //  -- repeat-until-failure configuration flag
+//        | 0x0001 //  -- halt-on-first-failure configuration flag
+//        | 0x0002 //  -- repeat-until-failure configuration flag
         | 0x0004 // CODE_LOAD -- Verify function CODE_LOAD vs platform AIN0 analog input (enabled by default)
-        | 0x0008 // DACCodeOfVoltage -- Verify function DACCodeOfVoltage (enabled by default)
+//        | 0x0008 // DACCodeOfVoltage -- Verify function DACCodeOfVoltage (enabled by default)
     ;
     SelfTest(cmdLine_serial);
 }
@@ -1940,8 +1940,16 @@
 void onButton2FallingEdge(void)
 {
     // TBD demo configuration
-    // TODO diagnostic LED
-    led1 = LED_OFF; led2 = LED_OFF; led3 = LED_ON;     // diagnostic rbg led BLUE
+// When user presses button BUTTON2, perform self test until failure
+    void SelfTest(CmdLine & cmdLine);
+    // SelfTestGroupEnable selects which of the included tests will run
+    SelfTestGroupEnable = 0
+        | 0x0001 //  -- halt-on-first-failure configuration flag
+        | 0x0002 //  -- repeat-until-failure configuration flag
+        | 0x0004 // CODE_LOAD -- Verify function CODE_LOAD vs platform AIN0 analog input (enabled by default)
+//        | 0x0008 // DACCodeOfVoltage -- Verify function DACCodeOfVoltage (enabled by default)
+    ;
+    SelfTest(cmdLine_serial);
 }
 #endif // HAS_BUTTON2_DEMO_INTERRUPT