| 1234567891011121314151617181920212223 |
- #ifndef __PROJECT_CONFIG_H__
- #define __PROJECT_CONFIG_H__
- #include "stm32f10x.h"
- //基于semtech官网驱动移植
- //官网驱动网址 https://github.com/Lora-net/LoRaMac-node/tree/master/src/radio 下载日期 2021/2/3
- #define LORA_SOFT_VERSION "sx126x driver for stm32f103 V0.0.0"
- //--------------------------------------------- 测试默认配置 ---------------------------------------------
- //#define LORA_FRE 486300000 // 收发频率
- //#define LORA_TX_OUTPUT_POWER 17 // 测试默认使用的发射功率,126x发射功率0~22dbm,127x发射功率2~20dbm
- //#define LORA_BANDWIDTH 1 // [0: 125 kHz, 测试默认使用的带宽,sx126x:[0: 125 kHz,1: 250 kHz,2: 500 kHz,3: Reserved]
- //#define LORA_SPREADING_FACTOR 7 // 测试默认使用的扩频因子范围7~12
- //#define LORA_CODINGRATE 2 // 测试默认使用的纠错编码率[1: 4/5,2: 4/6,3: 4/7,4: 4/8]
- //#define LORA_PREAMBLE_LENGTH 8 // 前导码长度
- #define LORA_SX126X_SYMBOL_TIMEOUT 0 // Symbols(sx126x用到的是0,127x用到的是5)
- #define LORA_FIX_LENGTH_PAYLOAD_ON false // 是否为固定长度包(暂时只是sx126x用到了)
- #define LORA_IQ_INVERSION_ON false // 这个应该是设置是否翻转中断电平的(暂时只是sx126x用到了)
- #define LORA_RX_TIMEOUT_VALUE 0
- #endif // __PROJECT_CONFIG_H__
|