PE的看门狗用起来很方便/* ---------------- COP_DOG ------------------ */void INT_COP_DOG(void)
{
SIM_COPC |= SIM_COPC_COPT(0x03);
}
void Disable_COP(void)
{
SIM_COPC |= SIM_COPC_COPT(0x00);
}
void COP_FEED_DOG(void)
{
SIM_SRVCOP=SIM_SRVCOP_SRVCOP(0X55);
SIM_SRVCOP=SIM_SRVCOP_SRVCOP(0XAA);
}
|