/* Enables or disables a system reset when the CM0 lockup happened.  */
void MISC_LockResetCmd(uint32_t NewState)
/* Enables or disables a system reset when the CM0 lockup happened.  */
void MISC_LockResetCmd(uint32_t NewState)
{ 
  assert_parameters(IS_FUNCTIONAL_STATE(NewState)); 
  if (NewState == ENABLE)
  {
    MISC1->IRQLAT |= MISC1_IRQLAT_LOCKRESET;
  }
  else
  {
    MISC1->IRQLAT &= ~MISC1_IRQLAT_LOCKRESET;
  }
}