Treehouse Mbed Team / Mbed 2 deprecated APS_DCM1SL

Dependencies:   mbed

Revision:
30:d8721a46ee03
Parent:
16:5791665200cb
--- a/src/serial.cpp	Tue Mar 05 19:21:32 2019 +0000
+++ b/src/serial.cpp	Wed Mar 06 22:32:31 2019 +0000
@@ -16,7 +16,6 @@
 
 
 // set up serial port for 115200 baud
-//Serial dcm1(USBTX, USBRX, 115200);
 Serial dcm1(USBTX, USBRX, 921600);
 
 
@@ -38,7 +37,6 @@
    // check if the USART1 receive interrupt flag was set
    while (dcm1.readable())
    {
-      //led_usb = 0;
       rxbuf[bufloc] = dcm1.getc();
 
       if (rxbuf[bufloc] == CR)        // check for end of command
@@ -89,56 +87,16 @@
          rxbuf[0] = 0;
       }
       
-      //led_usb = 1;
+     
    }
 }
 
 
-// sends carriage return and linefeed and prompt character
-/*
-void sendCRLF(void)
-{
- char strMenu[30] ={0};
-
-    menu_type = MENU_DCM1;
-
-    switch(menuType)
-    {
-      case  MENU_DCM1: strcpy(strMenu,"DCM1"); break;
-      case  MENU_DIFFERENTIAL: strcpy(strMenu,"DIFF"); break;
-      case  MENU_SINGLE: strcpy(strMenu,"SINGLE"); break;
-      case  MENU_DUAL: strcpy(strMenu,"DUAL"); break;
-      case  MENU_INVERT: strcpy(strMenu,"INVERT"); break;
-      case  MENU_SETTINGS: strcpy(strMenu,"SET"); break;
-      case  MENU_SETTINGS_CHAN1: strcpy(strMenu,"SET CHAN1"); break;
-      case  MENU_SETTINGS_CHAN2: strcpy(strMenu,"SET CHAN2"); break;
-      case  MENU_SETTINGS_CLOCK: strcpy(strMenu,"SET CLOCK"); break;
-      case  MENU_CALIBRATE: strcpy(strMenu,"CAL"); break;
-      case  MENU_TEST: strcpy(strMenu,"TEST"); break;
-      case  MENU_MAIN: strcpy(strMenu,"MAIN"); break;
-      default: strcpy(strMenu,"UNDF"); break;
-    }
-
-    // append the CR,LF and the ready character
-     if(serialStatus.computer)
-     {
-         sendSerial("\r");
-     }
-     else
-     {
-        // adds a carrot so you know you are talking in terminal
-        sprintf(strbuf,"\n\r%s>",strMenu);
-        sendSerial(strbuf);
-        // sendSerial("\n\r>");
-     }
-}*/
 
 // send buffer to the serial port
 void sendSerial(char *buf)
 {
-    //led_usb = 0;
     dcm1.printf(buf);
-    //led_usb = 1;
 }
 
 /************************************************************