文章
博客 网店

 STM32F1 LL库示例 - IWDG



  //启用WDT  
  LL_IWDG_Enable(IWDG);
  LL_IWDG_EnableWriteAccess(IWDG);
  LL_IWDG_SetPrescaler(IWDG,LL_IWDG_PRESCALER_64);
  LL_IWDG_SetReloadCounter(IWDG,500);//0.8秒  40k/64/500=1.25Hz
  while(LL_IWDG_IsReady(IWDG) != 1){}
  LL_IWDG_ReloadCounter(IWDG);//喂狗操作


芯艺工作室    蒙ICP备06005492号
Copyright© 2004-2023 ChipArt Studio All Rights Reserved