Remote TX using NUCLEO_L152RE + AUREL RTX-MID-3V (Sub1GHz module). This SW working in conjunction of the RX part that is: Remote RX using NUCLEO_L152RE + AUREL RTX-MID-3V (Sub1GHz module)

Dependencies:   mbed

Revision:
3:7dd127b075ed
Parent:
2:a03e59525e5b
Child:
4:84aae2d0c7cf
--- a/main.cpp	Sun Jan 08 11:29:54 2017 +0000
+++ b/main.cpp	Sun Jan 08 11:36:40 2017 +0000
@@ -197,6 +197,9 @@
                 }     
             // myled = ON;
             wait(2);
+            pc.baud(Baud); 
+            pc.attach(&callback, pc.RxIrq); // It is for reading under Interrupt the 
+                                            // RX from USART
             RTX_StartUp();
             wait(1);
             MemBB = NotPressed;
@@ -236,6 +239,9 @@
                 }
             // myled = OFF; 
             wait(2);
+            pc.baud(Baud); 
+            pc.attach(&callback, pc.RxIrq); // It is for reading under Interrupt the 
+                                            // RX from USART            
             RTX_StartUp();
             wait(1);
             MemBB = Pressed;