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: mbed
Diff: main.cpp
- Revision:
- 21:2c1292affc10
- Parent:
- 20:0f975b296b67
- Child:
- 22:5600f9b29a51
diff -r 0f975b296b67 -r 2c1292affc10 main.cpp
--- a/main.cpp	Mon Dec 05 15:32:54 2022 +0000
+++ b/main.cpp	Mon Dec 05 15:38:59 2022 +0000
@@ -400,7 +400,7 @@
 
 Serial stComX(D1,D0); // UART-Kommunikation (Txd(D1)/Rxd(D0)) mit dem PC 
  
-
+/*
 byte SYS_vStartComX( word wSize, byte *pData ){ // Start einer Übertragung 
 byte i;
 if(wSizeData) i = False;
@@ -445,8 +445,10 @@
 SYS_vStartComX(1, &abTxBuffer[0]);
 }
 }
+*/
 
 
+Serial pc(USBTX, USBRX); // tx, rx
 
 
 void vComA(void){
@@ -511,11 +513,15 @@
         vCheckTasten();
         nDiffWert = wVorgabeWert - wPotiWert;
         
+        if(pc.readable()) {
+            pinBeep=0;
+            //device.putc(pc.getc());
+        } else pinBeep=1;
         
-        stComX.attach(&vIsrRxComX, Serial::RxIrq); /* ISR zum Datemempfang vom PC */
-        stComX.attach(&vIsrTxComX, Serial::TxIrq); /* Sende-ISR */
+        //stComX.attach(&vIsrRxComX, Serial::RxIrq); /* ISR zum Datemempfang vom PC */
+        //stComX.attach(&vIsrTxComX, Serial::TxIrq); /* Sende-ISR */
         
-        vCheckCom();
+        //vCheckCom();
     
     
         switch(bMainState) {