文章
博客 网店

 STM32G0 LL库示例-IWDG



  //iwdg
  LL_IWDG_Enable(IWDG);
  LL_IWDG_EnableWriteAccess(IWDG);
  LL_IWDG_SetPrescaler(IWDG,LL_IWDG_PRESCALER_64);//时钟为内部40KHz 分频64
  LL_IWDG_SetReloadCounter(IWDG,1000);
  while(LL_IWDG_IsReady(IWDG) == 0);
  LL_IWDG_ReloadCounter(IWDG);//复位


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