| | |
| | | extern u32 Loratx_frequency; |
| | | |
| | | uint8_t flag_writepara_needreset = 0; |
| | | uint32_t wg_lost_count; |
| | | uint32_t wg_lost_count = 10; |
| | | uint32_t lora_zhuangtai; |
| | | uint16_t current_count; |
| | | extern wg_state_enum wg_state; |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | extern u8 active_flag; |
| | | void LoraInit(void) |
| | | { |
| | | RadioEvents.TxDone = OnTxDone; |
| | |
| | | |
| | | Radio.Init( &RadioEvents ); |
| | | SwitchLoraSettings(UWB_CHANNEL_FRQ+g_com_map[GROUP_ID],5,0); //切换lora接收频点 |
| | | Radio.Rx( 0 ); |
| | | if(active_flag) |
| | | { |
| | | Radio.Rx( 0 ); |
| | | }else{ |
| | | Radio.Sleep(); |
| | | } |
| | | // Radio.SetRxDutyCycle(RxDutyCycle_RX_time,RxDutyCycle_SLEEP_time); |
| | | |
| | | } |