yincheng.zhong
2024-03-01 04bf7f56b700d45fd44175b67d25e0c535aa0941
Src/radio/Lora.h
@@ -17,6 +17,17 @@
void SwitchLoraSettingstest(uint32_t freq,uint8_t sf);
uint8_t GetLoraBufferAndLen(uint8_t* buffer,uint16_t* lp_count);
uint16_t GetLoraSyncCount(void);
//#define TEST_FREQ
#ifdef  TEST_FREQ
    #define LORA_UPCHANNEL_FRQ 456
    #define LORA_UPCHANNEL_SF 7
    #define SYNC_CHANNEL_FRQ 457
    #define SYNC_CHANNEL_SF 7
    #define UWB_CHANNEL_FRQ 450
    #define UWB_CHANNEL_SF 5
#else
#define LORA_UPCHANNEL_FRQ 476
#define LORA_UPCHANNEL_SF 7
@@ -25,6 +36,7 @@
#define UWB_CHANNEL_FRQ 470
#define UWB_CHANNEL_SF 5
#endif
#define APP2_ADRESS 0X8012800
#define APP1_ADRESS 0X8005000