First Test Commit

Dependencies:   sx126x

Files at this revision

API Documentation at this revision

Comitter:
lorgei
Date:
Thu Aug 20 23:17:52 2020 +0000
Parent:
1:ce312fc7dd18
Commit message:
First Commit

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
diff -r ce312fc7dd18 -r ad71a4297b6d main.cpp
--- a/main.cpp	Tue May 22 14:27:12 2018 -0700
+++ b/main.cpp	Thu Aug 20 23:17:52 2020 +0000
@@ -69,7 +69,25 @@
 
     radio.start_rx(RX_TIMEOUT_CONTINUOUS);
     
-    for (;;) {     
+     for (;;) {  
+     
+//     PacketParams_t p;
+
+ //       p.lora.PreambleLengthHi = 0;
+  //      p.lora.PreambleLengthLo = 8;
+  //      p.lora.HeaderType = HEADER_TYPE_VARIABLE_LENGTH;
+  //      p.lora.PayloadLength = 0x40;    // max limit in rx
+  //      p.lora.CRCType = CRC_ON;
+  //      p.lora.InvertIQ = STANDARD_IQ;
+
+ //       radio.xfer(OPCODE_SET_PACKET_PARAMS, 6, p.buf);
+     
+    
+          
         radio.service();
+         uint8_t buf[2];
+        buf[0] = 0; // TX base address
+        buf[1] = 0; // RX base address
+      radio.xfer(OPCODE_SET_BUFFER_BASE_ADDR, 2, buf);
     }
 }
diff -r ce312fc7dd18 -r ad71a4297b6d mbed-os.lib
--- a/mbed-os.lib	Tue May 22 14:27:12 2018 -0700
+++ b/mbed-os.lib	Thu Aug 20 23:17:52 2020 +0000
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/mbed-os/#79640c6a885d2006d3cedff3f666f8c253818c27
+https://github.com/ARMmbed/mbed-os/#3ab72c71b75cb9cb91160a54fba22ec43b036ed2