docs: 新增激光示踪参数文档, sx127x.h补充编译期信道选择注释示例
- 激光示踪参数文档.txt: 电池容量/传感器参数/LoRa频率等整机参数汇总 - sx127x.h: 增加注释形式的USE_LORA_CH宏示例(编译期指定信道0~119, 默认注释状态不影响现有编译)
This commit is contained in:
@@ -767,6 +767,8 @@ typedef struct {
|
||||
|
||||
#define CH0 LORA_FREQ_BASE //出厂默认频率
|
||||
|
||||
//#define USE_LORA_CH 1
|
||||
|
||||
#if defined(USE_LORA_CH)
|
||||
#if (USE_LORA_CH >= 0 && USE_LORA_CH < LORA_CHANNEL_CNT)
|
||||
#define FREQ_CENT (LORA_FREQ_BASE + (uint32_t)(USE_LORA_CH) * LORA_FREQ_STEP)
|
||||
|
||||
Reference in New Issue
Block a user