Demo for Semtech Lora SX1272MB2xAS 868MHz an NUCLEO-F401RE (STM Cortex M4)

Dependencies:   SX1272Lib mbed

Fork of SX1272PingPong by Semtech

Revision:
14:62abee5e269d
Parent:
13:edb9b443c1dd
Child:
15:3365ba2777d2
--- a/main.cpp	Wed Feb 17 09:17:46 2016 +0000
+++ b/main.cpp	Sun Mar 20 00:07:29 2016 +0000
@@ -1,3 +1,45 @@
+/*
+    
+    Demo for Semtech Lora SX1272MB2xAS 868MHz an NUCLEO-F401RE (STM Cortex M4)
+    
+    by www.emcu.it
+    
+    Date: Mar.2016
+    Ver.: 1.0.0
+    
+    Note: 
+        The original project is here: https://developer.mbed.org/components/SX1272MB2xAS/
+        is: SX1272 Ping Pong Demo Application
+    
+    How to use:
+        We tested this SW on NUCLEO-F401RE
+        Program two kits (NUCLEO-F401RE + SX1272MB2xAS) with this SW.
+        Connect the KITs to the PC and open a terminal emulation (for example TeraTerm).
+        The TeraTerm configurations are shown below.
+            9600 bauds, 8-bit data, no parity
+        On the TeraTerm you see the link informations.
+        On the NUCLEO-F401RE, if all is OK, you must see the GREEN led that flashing . This means that the two KITs are working properly.
+        If the GREEN led flash slowly means that is not present the link between the two KITs.
+
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software
+ and associated documentation files (the "Software"), to deal in the Software without
+ restriction, including without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all copies or
+ substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
+ BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+*/
+
 #include "mbed.h"
 #include "main.h"
 #include "sx1272-hal.h"
@@ -55,6 +97,13 @@
 DigitalOut led(LED1);
 #endif
 
+//------------------------------------
+// Hyperterminal configuration
+// 9600 bauds, 8-bit data, no parity
+//------------------------------------
+
+Serial pc(SERIAL_TX, SERIAL_RX);
+
 /*
  *  Global variables declarations
  */
@@ -100,6 +149,8 @@
     uint8_t i;
     bool isMaster = true;
     
+    pc.printf("\n\n\rModified by: http://www.wmcu.it \n\n\r" );
+    pc.printf("\n\rSee this link: https://developer.mbed.org/components/SX1272MB2xAS/ \n\rfor original example.\n\r ");
     debug( "\n\n\r     SX1272 Ping Pong Demo Application \n\n\r" );
 
     // Initialize Radio driver