feat: LoRa中心频率改为470.1~492.6MHz(46信道), 激光默认关闭时间改为1分钟, 软件版本升至13
- sx127x.h: CH0~CH45中心频率改为470100000~492600000, 步进500000; FREQ_CENT/USE_LORA_CH扩展至CH45 - sx127x.c: LoraSetChannel信道上限16->45; LoraSetFreqCent频率校验改为470.1~492.6MHz; 移除BOM - main.c: LoraFreq频率校验同步改为470.1~492.6MHz; 激光默认关闭时间10分钟->1分钟 - UartDebug.c: lora帮助文本信道范围更新为0~45 - main.h: 软件版本12->13 - docs: 更新软件版本号与LoRa频率范围说明 - MDK: 调试器配置更新
This commit is contained in:
+118
-13
@@ -756,19 +756,54 @@ typedef struct {
|
||||
#endif
|
||||
|
||||
/*
|
||||
中心频率配置:433100000ul + 200000*N
|
||||
中心频率配置:470100000ul ~ 492600000ul,步进500000
|
||||
*/
|
||||
#define CH0 (433100000ul + 0) //测试频率
|
||||
#define CH1 (433100000ul + 200000)
|
||||
#define CH2 (433100000ul + 400000)
|
||||
#define CH3 (433100000ul + 600000)
|
||||
#define CH4 (433100000ul + 800000)
|
||||
#define CH5 (433100000ul + 1000000)
|
||||
#define CH6 (433100000ul + 1200000)
|
||||
#define CH7 (433100000ul + 1400000)
|
||||
#define CH8 (433100000ul + 1600000)
|
||||
#define CH9 (433100000ul + 1800000)
|
||||
#define CH10 (433100000ul + 2000000)
|
||||
#define CH0 (470100000ul) //出厂默认频率
|
||||
#define CH1 (470600000ul)
|
||||
#define CH2 (471100000ul)
|
||||
#define CH3 (471600000ul)
|
||||
#define CH4 (472100000ul)
|
||||
#define CH5 (472600000ul)
|
||||
#define CH6 (473100000ul)
|
||||
#define CH7 (473600000ul)
|
||||
#define CH8 (474100000ul)
|
||||
#define CH9 (474600000ul)
|
||||
#define CH10 (475100000ul)
|
||||
#define CH11 (475600000ul)
|
||||
#define CH12 (476100000ul)
|
||||
#define CH13 (476600000ul)
|
||||
#define CH14 (477100000ul)
|
||||
#define CH15 (477600000ul)
|
||||
#define CH16 (478100000ul)
|
||||
#define CH17 (478600000ul)
|
||||
#define CH18 (479100000ul)
|
||||
#define CH19 (479600000ul)
|
||||
#define CH20 (480100000ul)
|
||||
#define CH21 (480600000ul)
|
||||
#define CH22 (481100000ul)
|
||||
#define CH23 (481600000ul)
|
||||
#define CH24 (482100000ul)
|
||||
#define CH25 (482600000ul)
|
||||
#define CH26 (483100000ul)
|
||||
#define CH27 (483600000ul)
|
||||
#define CH28 (484100000ul)
|
||||
#define CH29 (484600000ul)
|
||||
#define CH30 (485100000ul)
|
||||
#define CH31 (485600000ul)
|
||||
#define CH32 (486100000ul)
|
||||
#define CH33 (486600000ul)
|
||||
#define CH34 (487100000ul)
|
||||
#define CH35 (487600000ul)
|
||||
#define CH36 (488100000ul)
|
||||
#define CH37 (488600000ul)
|
||||
#define CH38 (489100000ul)
|
||||
#define CH39 (489600000ul)
|
||||
#define CH40 (490100000ul)
|
||||
#define CH41 (490600000ul)
|
||||
#define CH42 (491100000ul)
|
||||
#define CH43 (491600000ul)
|
||||
#define CH44 (492100000ul)
|
||||
#define CH45 (492600000ul)
|
||||
|
||||
#if (USE_LORA_CH == 0)
|
||||
#define FREQ_CENT CH0
|
||||
@@ -792,10 +827,80 @@ typedef struct {
|
||||
#define FREQ_CENT CH9
|
||||
#elif (USE_LORA_CH == 10)
|
||||
#define FREQ_CENT CH10
|
||||
#elif (USE_LORA_CH == 11)
|
||||
#define FREQ_CENT CH11
|
||||
#elif (USE_LORA_CH == 12)
|
||||
#define FREQ_CENT CH12
|
||||
#elif (USE_LORA_CH == 13)
|
||||
#define FREQ_CENT CH13
|
||||
#elif (USE_LORA_CH == 14)
|
||||
#define FREQ_CENT CH14
|
||||
#elif (USE_LORA_CH == 15)
|
||||
#define FREQ_CENT CH15
|
||||
#elif (USE_LORA_CH == 16)
|
||||
#define FREQ_CENT CH16
|
||||
#elif (USE_LORA_CH == 17)
|
||||
#define FREQ_CENT CH17
|
||||
#elif (USE_LORA_CH == 18)
|
||||
#define FREQ_CENT CH18
|
||||
#elif (USE_LORA_CH == 19)
|
||||
#define FREQ_CENT CH19
|
||||
#elif (USE_LORA_CH == 20)
|
||||
#define FREQ_CENT CH20
|
||||
#elif (USE_LORA_CH == 21)
|
||||
#define FREQ_CENT CH21
|
||||
#elif (USE_LORA_CH == 22)
|
||||
#define FREQ_CENT CH22
|
||||
#elif (USE_LORA_CH == 23)
|
||||
#define FREQ_CENT CH23
|
||||
#elif (USE_LORA_CH == 24)
|
||||
#define FREQ_CENT CH24
|
||||
#elif (USE_LORA_CH == 25)
|
||||
#define FREQ_CENT CH25
|
||||
#elif (USE_LORA_CH == 26)
|
||||
#define FREQ_CENT CH26
|
||||
#elif (USE_LORA_CH == 27)
|
||||
#define FREQ_CENT CH27
|
||||
#elif (USE_LORA_CH == 28)
|
||||
#define FREQ_CENT CH28
|
||||
#elif (USE_LORA_CH == 29)
|
||||
#define FREQ_CENT CH29
|
||||
#elif (USE_LORA_CH == 30)
|
||||
#define FREQ_CENT CH30
|
||||
#elif (USE_LORA_CH == 31)
|
||||
#define FREQ_CENT CH31
|
||||
#elif (USE_LORA_CH == 32)
|
||||
#define FREQ_CENT CH32
|
||||
#elif (USE_LORA_CH == 33)
|
||||
#define FREQ_CENT CH33
|
||||
#elif (USE_LORA_CH == 34)
|
||||
#define FREQ_CENT CH34
|
||||
#elif (USE_LORA_CH == 35)
|
||||
#define FREQ_CENT CH35
|
||||
#elif (USE_LORA_CH == 36)
|
||||
#define FREQ_CENT CH36
|
||||
#elif (USE_LORA_CH == 37)
|
||||
#define FREQ_CENT CH37
|
||||
#elif (USE_LORA_CH == 38)
|
||||
#define FREQ_CENT CH38
|
||||
#elif (USE_LORA_CH == 39)
|
||||
#define FREQ_CENT CH39
|
||||
#elif (USE_LORA_CH == 40)
|
||||
#define FREQ_CENT CH40
|
||||
#elif (USE_LORA_CH == 41)
|
||||
#define FREQ_CENT CH41
|
||||
#elif (USE_LORA_CH == 42)
|
||||
#define FREQ_CENT CH42
|
||||
#elif (USE_LORA_CH == 43)
|
||||
#define FREQ_CENT CH43
|
||||
#elif (USE_LORA_CH == 44)
|
||||
#define FREQ_CENT CH44
|
||||
#elif (USE_LORA_CH == 45)
|
||||
#define FREQ_CENT CH45
|
||||
#endif
|
||||
|
||||
#if !defined FREQ_CENT
|
||||
#define FREQ_CENT (433100000ul + 0)//200000
|
||||
#define FREQ_CENT (470100000ul)//500000
|
||||
#endif
|
||||
#if !defined FREQ_DEV
|
||||
#define FREQ_DEV 1000000ul
|
||||
|
||||
Reference in New Issue
Block a user