docs: sx127x.h补充编译期信道选择注释示例(USE_LORA_CH, 0~119)
This commit is contained in:
@@ -767,6 +767,8 @@ typedef struct {
|
|||||||
|
|
||||||
#define CH0 LORA_FREQ_BASE //出厂默认频率
|
#define CH0 LORA_FREQ_BASE //出厂默认频率
|
||||||
|
|
||||||
|
//#define USE_LORA_CH 1
|
||||||
|
|
||||||
#if defined(USE_LORA_CH)
|
#if defined(USE_LORA_CH)
|
||||||
#if (USE_LORA_CH >= 0 && USE_LORA_CH < LORA_CHANNEL_CNT)
|
#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)
|
#define FREQ_CENT (LORA_FREQ_BASE + (uint32_t)(USE_LORA_CH) * LORA_FREQ_STEP)
|
||||||
|
|||||||
Reference in New Issue
Block a user