| | |
| | | hardware_pici = STMFLASH_ReadHalfWord(FLASH_HARDWARE_VERSION_MAP+2); |
| | | hardware_type = STMFLASH_ReadHalfWord(FLASH_HARDWARE_VERSION_MAP+4); |
| | | //deca_sleep(1000); |
| | | g_com_map[VERSION] = (1<<8)|26; |
| | | g_com_map[VERSION] = (1<<8)|29; |
| | | // g_com_map[DEV_ID]=1158; |
| | | // #ifdef DEBUG_MODE |
| | | // // g_com_map[GROUP_ID]=21; |
| | |
| | | // SystemClock_Config(); |
| | | irq_num++; |
| | | lora_irq_flag = 1; |
| | | // RadioIrqProcess(); |
| | | RadioIrqProcess(); |
| | | } |
| | | if(GPIO_Pin == GPIO_PIN_1)//按键 |
| | | { |
| | |
| | | else |
| | | { |
| | | // HAL_IWDG_Refresh(&hiwdg); |
| | | if(lora_irq_flag) |
| | | { |
| | | lora_irq_flag = 0; |
| | | lora_working_flag = 1; |
| | | RadioIrqProcess(); |
| | | lora_working_flag = 0; |
| | | } |
| | | // if(lora_irq_flag) |
| | | // { |
| | | // lora_irq_flag = 0; |
| | | // lora_working_flag = 1; |
| | | // RadioIrqProcess(); |
| | | // lora_working_flag = 0; |
| | | // } |
| | | // if(uwb_irq_flag) |
| | | // { |
| | | // MbxTagUwbRec(); |