Skip to content

Commit

Permalink
Reworked directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jgromes committed Nov 20, 2019
1 parent f0ee58f commit a6c8135
Show file tree
Hide file tree
Showing 23 changed files with 38 additions and 39 deletions.
21 changes: 10 additions & 11 deletions src/LoRaLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,16 @@
#warning "God mode active, I hope it was intentional. Buckle up, lads."
#endif

#include "modules/SX1272.h"
#include "modules/SX1273.h"

#include "modules/SX1278.h"
#include "modules/SX1276.h"
#include "modules/SX1277.h"
#include "modules/SX1279.h"

#include "modules/RFM95.h"
#include "modules/RFM96.h"
#include "modules/RFM97.h"
#include "modules/SX127x/SX1272.h"
#include "modules/SX127x/SX1273.h"
#include "modules/SX127x/SX1278.h"
#include "modules/SX127x/SX1276.h"
#include "modules/SX127x/SX1277.h"
#include "modules/SX127x/SX1279.h"

#include "modules/RFM9x/RFM95.h"
#include "modules/RFM9x/RFM96.h"
#include "modules/RFM9x/RFM97.h"

/*!
\class LoRa
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions src/modules/RFM95.h → src/modules/RFM9x/RFM95.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifndef _RADIOLIB_RFM95_H
#define _RADIOLIB_RFM95_H

#include "TypeDef.h"
#include "Module.h"
#include "SX127x.h"
#include "SX1278.h"
#include "../../TypeDef.h"
#include "../../Module.h"
#include "../SX127x/SX127x.h"
#include "../SX127x/SX1278.h"

// SX127X_REG_VERSION
#define RFM95_CHIP_VERSION 0x11
Expand Down Expand Up @@ -66,7 +66,7 @@ class RFM95: public SX1278 {
\returns \ref status_codes
*/
int16_t setFrequency(float freq);

#ifndef RADIOLIB_GODMODE
private:
#endif
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions src/modules/RFM96.h → src/modules/RFM9x/RFM96.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifndef _RADIOLIB_RFM96_H
#define _RADIOLIB_RFM96_H

#include "TypeDef.h"
#include "Module.h"
#include "SX127x.h"
#include "SX1278.h"
#include "../../TypeDef.h"
#include "../../Module.h"
#include "../SX127x/SX127x.h"
#include "../SX127x/SX1278.h"

// SX127X_REG_VERSION
#define RFM9X_CHIP_VERSION 0x12 // according to datasheet, this should be 0x11, but all modules seem to have 0x12
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions src/modules/RFM97.h → src/modules/RFM9x/RFM97.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifndef _RADIOLIB_RFM97_H
#define _RADIOLIB_RFM97_H

#include "TypeDef.h"
#include "Module.h"
#include "SX127x.h"
#include "SX1278.h"
#include "../../TypeDef.h"
#include "../../Module.h"
#include "../SX127x/SX127x.h"
#include "../SX127x/SX1278.h"
#include "RFM95.h"

/*!
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/modules/SX1272.h → src/modules/SX127x/SX1272.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef _RADIOLIB_SX1272_H
#define _RADIOLIB_SX1272_H

#include "TypeDef.h"
#include "Module.h"
#include "../../TypeDef.h"
#include "../../Module.h"
#include "SX127x.h"

// SX1272 specific register map
Expand Down Expand Up @@ -262,7 +262,7 @@ class SX1272: public SX127x {
#ifndef RADIOLIB_GODMODE
private:
#endif

};

#endif
File renamed without changes.
2 changes: 1 addition & 1 deletion src/modules/SX1273.h → src/modules/SX127x/SX1273.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _RADIOLIB_SX1273_H
#define _RADIOLIB_SX1273_H

#include "TypeDef.h"
#include "../../TypeDef.h"
#include "SX1272.h"

/*!
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/modules/SX1276.h → src/modules/SX127x/SX1276.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _RADIOLIB_SX1276_H
#define _RADIOLIB_SX1276_H

#include "TypeDef.h"
#include "../../TypeDef.h"
#include "SX1278.h"

/*!
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/modules/SX1277.h → src/modules/SX127x/SX1277.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _RADIOLIB_SX1277_H
#define _RADIOLIB_SX1277_H

#include "TypeDef.h"
#include "../../TypeDef.h"
#include "SX1278.h"

/*!
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/modules/SX1278.h → src/modules/SX127x/SX1278.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef _RADIOLIB_SX1278_H
#define _RADIOLIB_SX1278_H

#include "TypeDef.h"
#include "Module.h"
#include "../../TypeDef.h"
#include "../../Module.h"
#include "SX127x.h"

// SX1278 specific register map
Expand Down Expand Up @@ -271,7 +271,7 @@ class SX1278: public SX127x {
#ifndef RADIOLIB_GODMODE
private:
#endif

};

#endif
File renamed without changes.
4 changes: 2 additions & 2 deletions src/modules/SX1279.h → src/modules/SX127x/SX1279.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _RADIOLIB_SX1279_H
#define _RADIOLIB_SX1279_H

#include "TypeDef.h"
#include "../../TypeDef.h"
#include "SX1278.h"

/*!
Expand Down Expand Up @@ -65,7 +65,7 @@ class SX1279: public SX1278 {
#ifndef RADIOLIB_GODMODE
private:
#endif

};

#endif
File renamed without changes.
6 changes: 3 additions & 3 deletions src/modules/SX127x.h → src/modules/SX127x/SX127x.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifndef _RADIOLIB_SX127X_H
#define _RADIOLIB_SX127X_H

#include "TypeDef.h"
#include "Module.h"
#include "../../TypeDef.h"
#include "../../Module.h"

#include "../protocols/PhysicalLayer.h"
#include "../../protocols/PhysicalLayer/PhysicalLayer.h"

// SX127x physical layer properties
#define SX127X_CRYSTAL_FREQ 32.0
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _RADIOLIB_PHYSICAL_LAYER_H
#define _RADIOLIB_PHYSICAL_LAYER_H

#include "TypeDef.h"
#include "../../TypeDef.h"

/*!
\class PhysicalLayer
Expand Down

0 comments on commit a6c8135

Please sign in to comment.