Touch screen drivers control dashboard for miniature locomotive. Features meters for speed, volts, power. Switches for lights, horns. Drives multiple STM3_ESC brushless motor controllers for complete brushless loco system as used in "The Brute" - www.jons-workshop.com

Dependencies:   TS_DISCO_F746NG mbed Servo LCD_DISCO_F746NG BSP_DISCO_F746NG QSPI_DISCO_F746NG AsyncSerial FastPWM

Revision:
8:5945d506a872
Parent:
7:3b1f44cd4735
Child:
9:644867052318
--- a/main.cpp	Wed May 09 15:42:43 2018 +0000
+++ b/main.cpp	Wed May 09 17:09:18 2018 +0000
@@ -22,7 +22,7 @@
 #include "TS_DISCO_F746NG.h"
 #include "LCD_DISCO_F746NG.h"
 #include <cctype>
-#include <cerrno>
+//#include <cerrno>
 
 LCD_DISCO_F746NG    lcd;
 TS_DISCO_F746NG     touch_screen;
@@ -339,7 +339,6 @@
 
 int main()
 {
-    errno = 0;
     int qtr_sec = 0, seconds = 0, minutes = 0;
     double  electrical_power_Watt = 0.0;
     ky_bd   kybd_a, kybd_b;
@@ -347,24 +346,20 @@
     memset  (&kybd_b, 0, sizeof(kybd_b));
     pc.baud (9600);
     com.baud (19200);
-    pc.printf   ("\r\n\n\nLoco_TS_2018 Loco Controller starting, testing qspi mem, errno %d\r\n", errno);
+    pc.printf   ("\r\n\n\nLoco_TS_2018 Loco Controller starting, testing qspi mem\r\n");
 //    ir.baud (1200);
-    pc.printf   ("Ln 352 errno %d\r\n", errno);
 
     I_sink1 = 0;    //  turn outputs off
     I_sink2 = 0;    //  lamp right
-    pc.printf   ("Ln 355 errno %d\r\n", errno);
     I_sink3 = 0;    //  lamp left
     I_sink4 = 0;
     I_sink5 = 0;
-    pc.printf   ("Ln 358 errno %d\r\n", errno);
 //    spareio_d8.mode (PullUp); now output driving throttle servo
 //    spareio_d9.mode (PullUp);
     spareio_d10.mode(PullUp);
 
     Ticker  tick250us;
 
-    pc.printf   ("Ln 365 errno %d\r\n", errno);
 //  Setup User Interrupt Vectors
     tick250us.attach_us (&ISR_current_reader, 250);    //  count 125 of these to trig 31.25ms
 //    tick32ms.attach_us  (&ISR_tick_32ms, 32001);
@@ -376,9 +371,7 @@
 extern  int ask_QSPI_OK ()  ;
 extern  bool    qspimemcheck    ()  ;
 extern  int qspiinit    ()  ;
-    pc.printf   ("Before ask_QSPI_OK errno %d\r\n", errno);
     int qspi_ok = ask_QSPI_OK   ();
-    pc.printf   ("After ask_QSPI_OK errno %d\r\n", errno);
 //extern  int qspieraseblock  (uint32_t addr)  ;
 //extern  int qspiwr  (uint8_t* src, uint32_t addr) ;
 //extern  int qspiwr  (uint8_t* src, uint32_t addr, uint32_t len) ;
@@ -403,7 +396,6 @@
 //    pc.printf("\n\nQSPI demo started\r\n");
 
     // Check initialization
-    pc.printf   ("errno %d, qspi mem ", errno);
     if (qspiinit() != qspi_ok)
       error("Initialization FAILED\r\n");
     else
@@ -446,7 +438,6 @@
 */
 //bool    odometer_update  (uint32_t pulsetot, uint16_t pow, uint16_t volt)  ;   //  Hall pulse total updated once per sec and saved in blocks of 4096 bytes on QSPI onboard memory
 
-    pc.printf   ("End of qspi setup, errno %d\r\n", errno);
 #endif
 
     if  (f_r_switch)    {