This code holds the complete demo set for the sx1280: PingPong, PER and Ranging Outdoor demo application. >>>>> This code MUST run on the mbed library release 127 or everything will be painfully slow.

Dependencies:   mbed SX1280Lib DmTftLibrary

* This code MUST run on the mbed library release 127 or everything will be painfully slow.*
Revision:
14:ebd89dacc807
Parent:
13:94a3f92fd49c
Child:
17:a0bbfc228415
--- a/Demo/DemoApplication.cpp	Tue May 30 12:02:47 2017 +0000
+++ b/Demo/DemoApplication.cpp	Thu Aug 17 10:22:32 2017 +0000
@@ -326,6 +326,9 @@
     {
         localPayloadSize = 120; // Encoded in 4/8 so 240 bytes in total
     }
+
+    Radio.ProcessIrqs( );
+
     if( DemoRunning == false )
     {
         DemoRunning = true;
@@ -437,6 +440,8 @@
         }
     }
 
+    Radio.ProcessIrqs( );
+
     if( Eeprom.EepromData.DemoSettings.MaxNumPacket > 0 ) // != Infinite
     {
         if( ( Eeprom.EepromData.DemoSettings.CntPacketRxOK + \
@@ -650,6 +655,8 @@
         }
     }
 
+    Radio.ProcessIrqs( );
+
     if( Eeprom.EepromData.DemoSettings.Entity == MASTER )
     {
         switch( DemoInternalState )
@@ -917,7 +924,7 @@
         {
             Eeprom.EepromData.DemoSettings.CntPacketRxOKSlave = 0;
         }
-        
+
         if( PacketRxSequence == Eeprom.EepromData.DemoSettings.CntPacketTx )
         {
             Eeprom.EepromData.DemoSettings.CntPacketRxOK += 1;
@@ -1287,6 +1294,7 @@
                     }
                     else
                     {
+                        Radio.SetStandby( STDBY_RC );
                         refreshDisplay = 1;
                         SendNextPacket.detach( );
                         Eeprom.EepromData.DemoSettings.RngStatus = RNG_VALID;
@@ -1812,6 +1820,7 @@
                 Eeprom.EepromData.DemoSettings.RngReqDelay  = RNG_TIMER_MS >> ( 2 + 10 - ( ModulationParams.Params.LoRa.SpreadingFactor >> 4 ) );
                 break;
         }
+        Radio.SetInterruptMode( );
     }
     else
     {
@@ -1828,6 +1837,7 @@
         Radio.SetCrcSeed( crcSeedLocal );
         Radio.SetCrcPolynomial( 0x0123 );
         Radio.SetTxParams( Eeprom.EepromData.DemoSettings.TxPower, RADIO_RAMP_20_US );
+        Radio.SetPollingMode( );
     }
 }