cop.c
来自「MC56F802BLDC 可以使用的算法 就是电机启动有点慢」· C语言 代码 · 共 41 行
C
41 行
/*****************************************************************************
*
* Motorola Inc.
* (c) Copyright 2001 Motorola, Inc.
* ALL RIGHTS RESERVED.
*
******************************************************************************
*
* File Name: copdrv.c
*
* Description: COP driver
*
* Modules Included:
*
*****************************************************************************/
#include "types.h"
#include "arch.h"
#include "periph.h"
#include "appconfig.h"
#include "cop.h"
void cop_Init(arch_sCOP *pCopBase)
{
/* initialization of COP (watchdog) */
/* writing to COP Timeout reg first to allow using write protect bit (CWP) */
/* in COP Control Reg */
#ifdef COP_TIMEOUT_REG
periphMemWrite(COP_TIMEOUT_REG, &pCopBase->TimeoutReg);
#endif
#ifdef COP_CONTROL_REG
periphMemWrite(COP_CONTROL_REG, &pCopBase->ControlReg);
#endif
/* COP Service Register is not initialized */
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?