Fork with intent to refactor and add support for American 902-928(915) Frequency Bands

Revision:
38:d9189d958db8
Parent:
36:f2b885b6f33e
Child:
39:706c32eda7e7
--- a/sx1276/sx1276-mbed-hal.cpp	Sat May 06 12:12:29 2017 +0000
+++ b/sx1276/sx1276-mbed-hal.cpp	Sun May 07 18:09:10 2017 +0200
@@ -14,14 +14,14 @@
 */
 
 /*
- * additional development to make it more generic across multiple os versions
+ * additional development to make it more generic across multiple OS versions
  * (c) 2017 Helmut Tschemernjak
  * 30826 Garbsen (Hannover) Germany
  */
 
 #include "sx1276-mbed-hal.h"
 
-const RadioRegisters_t SX1276Generic::RadioRegsInit[] = RADIO_INIT_REGISTERS_VALUE;
+
 
 SX1276Generic::SX1276Generic( RadioEvents_t *events, BoardType_t board,
                             PinName mosi, PinName miso, PinName sclk, PinName nss, PinName reset,
@@ -127,6 +127,7 @@
     	delete _dio5;
 }
 
+
 //-------------------------------------------------------------------------
 //                      Board relative functions
 //-------------------------------------------------------------------------
@@ -143,15 +144,6 @@
     SpiInit( );
 }
 
-void SX1276Generic::RadioRegistersInit( )
-{
-    uint8_t i = 0;
-    for( i = 0; i < sizeof( RadioRegsInit ) / sizeof( RadioRegisters_t ); i++ )
-    {
-        SetModem( RadioRegsInit[i].Modem );
-        Write( RadioRegsInit[i].Addr, RadioRegsInit[i].Value );
-    }    
-}
 
 void SX1276Generic::SpiInit( void )
 {
@@ -351,6 +343,11 @@
     }
 }
 
+void SX1276Generic::SetTimeout(Timeout_t timer, int timeout_ms)
+{
+    
+}
+
 bool SX1276Generic::CheckRfFrequency( uint32_t frequency )
 {
     // Implement check. Currently all frequencies are supported