Moved RFM69 library to utility

This commit is contained in:
Henrik Ekblad
2014-11-03 20:08:56 +01:00
parent 03740b2555
commit f143fcd7a2
5 changed files with 5 additions and 6 deletions
-1
View File
@@ -1,4 +1,3 @@
#include <RHReliableDatagram.h>
#include "MyDriver.h" #include "MyDriver.h"
#include "MyDriverRF69.h" #include "MyDriverRF69.h"
+2 -2
View File
@@ -4,7 +4,7 @@
#include "MyConfig.h" #include "MyConfig.h"
#include "MyDriver.h" #include "MyDriver.h"
#include <stdint.h> #include <stdint.h>
#include "RFM69.h" #include "utility/RFM69.h"
#include <SPI.h> #include <SPI.h>
#define NODEID 2 //unique for each node on same network #define NODEID 2 //unique for each node on same network
@@ -41,4 +41,4 @@ private:
uint8_t _address; uint8_t _address;
}; };
#endif #endif
@@ -29,8 +29,8 @@
// Please maintain this license information along with authorship // Please maintain this license information along with authorship
// and copyright notices in any redistribution of this code // and copyright notices in any redistribution of this code
// ********************************************************************************** // **********************************************************************************
#include <RFM69.h> #include "RFM69.h"
#include <RFM69registers.h> #include "RFM69registers.h"
#include <SPI.h> #include <SPI.h>
volatile byte RFM69::DATA[RF69_MAX_DATA_LEN]; volatile byte RFM69::DATA[RF69_MAX_DATA_LEN];
@@ -461,4 +461,4 @@ void RFM69::rcCalibration()
{ {
writeReg(REG_OSC1, RF_OSC1_RCCAL_START); writeReg(REG_OSC1, RF_OSC1_RCCAL_START);
while ((readReg(REG_OSC1) & RF_OSC1_RCCAL_DONE) == 0x00); while ((readReg(REG_OSC1) & RF_OSC1_RCCAL_DONE) == 0x00);
} }