03 2020 档案

摘要:任务A :1ms任务,将通信timeout cnt++ , 优先级低; 任务B :中断触发的任务,当报文正常时,会将timeout cnt 清零 , 优先级高; 假设使用在任务B中直接将timeout cnt = 0的方式,可能存在风险; 查看汇编代码,可以知道,timeout cnt++的操作实际 阅读全文
posted @ 2020-03-26 09:03 Kconfig 阅读(197) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2020-03-19 15:49 Kconfig 阅读(748) 评论(0) 推荐(0)