| | |
| | | SCB->AIRCR = 0X05FA0000|(unsigned int)0x04; //软复位回到bootloader |
| | | } |
| | | Radio.Standby(); |
| | | Radio.Rx( 80 ); |
| | | Radio.Rx( 100 ); |
| | | // LED_TB_OFF; |
| | | } |
| | | extern LPTIM_HandleTypeDef hlptim1; |
| | |
| | | { |
| | | UWB_Wkup(); |
| | | // memcpy(&test111,&RX_Buffer[1],2); |
| | | MbxTagUwbRec(); |
| | | MbxTagUwbRec(); |
| | | test111++; |
| | | // HAL_GPIO_WritePin(GPIOC, GPIO_PIN_5, GPIO_PIN_RESET); |
| | | // printf("LORA IdleTask:%x",test111); |
| | | HAL_GPIO_WritePin(RADIO_NSS_GPIO_Port, RADIO_NSS_Pin, GPIO_PIN_RESET); //片选lora有效 |
| | |
| | | } |
| | | HAL_GPIO_WritePin(GPIOC, GPIO_PIN_7, GPIO_PIN_SET); |
| | | HAL_GPIO_WritePin(GPIOC, GPIO_PIN_13, GPIO_PIN_SET); |
| | | memcpy(&xiafayuyin_data,&RX_Buffer[9],RX_Buffer[8]); |
| | | memcpy(&xiafayuyin_data,&RX_Buffer[PWTAG_WRITE_VALUE_IDX],BufferSize-PWTAG_WRITE_VALUE_IDX); |
| | | yuyin_sendflag=1; |
| | | yuyinzidongguan_time=0; |
| | | yuyin_no_sleep_flag=1; |
| | | yuyin_no_sleep_flag=1; |
| | | // SYN_FrameInfo(0,xiafayuyin_data); //播放内容 |
| | | // memset(xiafayuyin_data,0,sizeof(xiafayuyin_data)); |
| | | LoraRspWriteCommap(SUBMSG_WRITE_ANCPARA); |
| | | no_rx_flag = 1; |
| | | }else{ |
| | | memcpy(&rec_value,&RX_Buffer[PWTAG_WRITE_VALUE_IDX],2); |
| | | g_com_map[rec_index/2] = rec_value; |