Generates a test signal on an AnalogOut and monitors a signal on an AnalogIn, plotting the test signal or the actual signal depending on a conditional compile. The wait() and wait_ms() library calls for this board are highly inaccurate so a new function is provided to wait for X number of milliseconds -- which is not very accurate.

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI mbed-os BSP_DISCO_F429ZI

Revision:
2:cbcf2695a4a1
Parent:
1:b9d4b9b8884c
--- a/LaserMon-TestOutput.cpp	Fri Jun 14 21:11:31 2019 +0000
+++ b/LaserMon-TestOutput.cpp	Mon Jun 17 17:11:07 2019 +0000
@@ -36,7 +36,7 @@
 
     // We create an analog output
     static AnalogOut st_testSignalOut(TEST_SIGNAL_OUT);
-
+    
     // For diagnostic purposes to show that the test output is working
     static DigitalOut st_testSignalLED(LED1);
     
@@ -64,11 +64,15 @@
 // ----------------------------------------------------------------------
 // TestOutputThread()
 //
+// This is called once a millisecond however it is not a thread, the
+// thread class on this board ended up with timing that could not be
+// controlled so the main() loop calls us once a millisecond.
+//
 // ----------------------------------------------------------------------
 void TestOutputThread(void)
 {
     static uint8_t u8_ledTimeoutTimer = 0;
-    
+
     // Do we need to turn the scan-completed LED off?
     if (u8_ledTimeoutTimer > 0)
     {
@@ -143,7 +147,7 @@
 // ----------------------------------------------------------------------
 // TestOutputInit()
 //
-// This function initializes this module and then launches the thread
+// This function initializes this module's locally-held data
 //
 // ----------------------------------------------------------------------
 void TestOutputInit(void)