Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MaximTinyTester CmdLine MAX5719 USBDevice
Diff: Test_Main_MAX5719.cpp
- Revision:
- 31:9cb570b0685d
- Parent:
- 30:13fc9d492ee0
- Child:
- 32:016a142143a5
diff -r 13fc9d492ee0 -r 9cb570b0685d Test_Main_MAX5719.cpp
--- 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