
MAX20361 System Demo with Low Power 2 mode
Dependencies: SX1276GenericLib USBDevice
Fork of NonPingPong_PICO_LoRa by
Diff: main.h
- Revision:
- 7:62c868478eef
- Parent:
- 3:85fc843a9d7d
--- a/main.h Wed Oct 14 00:19:02 2020 +0000 +++ b/main.h Tue Oct 20 00:00:20 2020 +0000 @@ -8,49 +8,49 @@ #define FEATURE_LORA -#ifdef FEATURE_LORA // in main.cpp +//#ifdef FEATURE_LORA // in main.cpp /* Set this flag to '1' to display debug messages on the console */ -#define DEBUG_MESSAGE 1 +//#define DEBUG_MESSAGE 1 /* Set this flag to '1' to use the LoRa modulation or to '0' to use FSK modulation */ -#define USE_MODEM_LORA 1 -#define USE_MODEM_FSK !USE_MODEM_LORA -#define RF_FREQUENCY RF_FREQUENCY_915_0 // Hz -#define TX_OUTPUT_POWER 14 // 14 dBm +//#define USE_MODEM_LORA 1 +//#define USE_MODEM_FSK !USE_MODEM_LORA +//#define RF_FREQUENCY RF_FREQUENCY_915_0 // Hz +//#define TX_OUTPUT_POWER 14 // 14 dBm -#if USE_MODEM_LORA == 1 +//#if USE_MODEM_LORA == 1 -#define LORA_BANDWIDTH 125000 // LoRa default, details in SX1276::BandwidthMap -#define LORA_SPREADING_FACTOR LORA_SF7 -#define LORA_CODINGRATE LORA_ERROR_CODING_RATE_4_5 +//#define LORA_BANDWIDTH 125000 // LoRa default, details in SX1276::BandwidthMap +//#define LORA_SPREADING_FACTOR LORA_SF7 +//#define LORA_CODINGRATE LORA_ERROR_CODING_RATE_4_5 -#define LORA_PREAMBLE_LENGTH 8 // Same for Tx and Rx -#define LORA_SYMBOL_TIMEOUT 5 // Symbols -#define LORA_FIX_LENGTH_PAYLOAD_ON false -#define LORA_FHSS_ENABLED false -#define LORA_NB_SYMB_HOP 4 -#define LORA_IQ_INVERSION_ON false -#define LORA_CRC_ENABLED true +//#define LORA_PREAMBLE_LENGTH 8 // Same for Tx and Rx +//#define LORA_SYMBOL_TIMEOUT 5 // Symbols +//#define LORA_FIX_LENGTH_PAYLOAD_ON false +//#define LORA_FHSS_ENABLED false +//#define LORA_NB_SYMB_HOP 4 +//#define LORA_IQ_INVERSION_ON false +//#define LORA_CRC_ENABLED true -#elif USE_MODEM_FSK == 1 +//#elif USE_MODEM_FSK == 1 -#define FSK_FDEV 25000 // Hz -#define FSK_DATARATE 19200 // bps -#define FSK_BANDWIDTH 50000 // Hz -#define FSK_AFC_BANDWIDTH 83333 // Hz -#define FSK_PREAMBLE_LENGTH 5 // Same for Tx and Rx -#define FSK_FIX_LENGTH_PAYLOAD_ON false -#define FSK_CRC_ENABLED true +//#define FSK_FDEV 25000 // Hz +//#define FSK_DATARATE 19200 // bps +//#define FSK_BANDWIDTH 50000 // Hz +//#define FSK_AFC_BANDWIDTH 83333 // Hz +//#define FSK_PREAMBLE_LENGTH 5 // Same for Tx and Rx +//#define FSK_FIX_LENGTH_PAYLOAD_ON false +//#define FSK_CRC_ENABLED true -#else - #error "Please define a modem in the compiler options." -#endif +//#else +// #error "Please define a modem in the compiler options." +//#endif -#define RX_TIMEOUT_VALUE 3500 // in ms +//#define RX_TIMEOUT_VALUE 3500 // in ms -#endif +//#endif /* * Global variables declarations