03 2020 档案
摘要:任务A :1ms任务,将通信timeout cnt++ , 优先级低; 任务B :中断触发的任务,当报文正常时,会将timeout cnt 清零 , 优先级高; 假设使用在任务B中直接将timeout cnt = 0的方式,可能存在风险; 查看汇编代码,可以知道,timeout cnt++的操作实际
阅读全文
摘要:1 if(SET != FLASH_OB_GetRDP()) 2 { 3 printf("Flash read protection not set, protection.....\n"); 4 FLASH_Unlock(); 5 FLASH_OB_Unlock(); 6 7 //FLASH_OB
阅读全文

浙公网安备 33010602011771号