Adding support for India ISM Band.

Fork of LoRaWAN-lib by Semtech

Revision:
5:77f44e83b37d
Parent:
4:06708c793508
Child:
6:090cec5a0d5f
--- a/LoRaMac-board.h	Thu Mar 31 16:05:20 2016 +0000
+++ b/LoRaMac-board.h	Fri Apr 01 05:09:17 2016 +0000
@@ -214,7 +214,7 @@
 /*!
  * LoRaMac maximum number of channels
  */
-#define LORA_MAX_NB_CHANNELS                        8   //SP: original 16
+#define LORA_MAX_NB_CHANNELS                        8   //SP: For 868 band it is 16
 
 /*!
  * Minimal datarate that can be used by the node
@@ -244,15 +244,13 @@
 /*!
  * LoRaMac TxPower definition
  */
-
-#define TC_POWER_27_DBM                             0   //SP:Added support for 27dBM channel(Power = 500mW)
-#define TX_POWER_20_DBM                             1
-#define TX_POWER_14_DBM                             2
-#define TX_POWER_11_DBM                             3
-#define TX_POWER_08_DBM                             4
-#define TX_POWER_05_DBM                             5
-#define TX_POWER_02_DBM                             6
-
+//#define TC_POWER_27_DBM                             0   //SP:Added support for 27dBM channel(Power = 500mW)
+#define TX_POWER_20_DBM                             0
+#define TX_POWER_14_DBM                             1
+#define TX_POWER_11_DBM                             2
+#define TX_POWER_08_DBM                             3
+#define TX_POWER_05_DBM                             4
+#define TX_POWER_02_DBM                             5
 
 /*!
  * Minimal Tx output power that can be used by the node
@@ -293,28 +291,8 @@
  */
 #define LORA_MAX_NB_BANDS                           1   //5
 
-/*!
- * LoRaMac EU865 default bands
- */
-typedef enum
-{
-    BAND_G1_0,
-/*
-    BAND_G1_1,
-    BAND_G1_2,
-    BAND_G1_3,
-    BAND_G1_4,
-*/
-}BandId_t;
-
 // Band = { DutyCycle, TxMaxPower, LastTxDoneTime, TimeOff }
-#define BAND0              { 100 , TX_POWER_14_DBM, 0,  0 } //  1.0 %
-/*
-#define BAND1              { 100 , TX_POWER_14_DBM, 0,  0 } //  1.0 %
-#define BAND2              { 1000, TX_POWER_14_DBM, 0,  0 } //  0.1 %
-#define BAND3              { 10  , TX_POWER_14_DBM, 0,  0 } // 10.0 %
-#define BAND4              { 100 , TX_POWER_14_DBM, 0,  0 } //  1.0 %
-*/
+#define BAND0              { 100 , TX_POWER_20_DBM, 0,  0 } //  1.0 %
 
 /*!
  * LoRaMac default channels