⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 f24xwdog.c

📁 TI的digital motor control lib的源代码。了解TI的编程规范
💻 C
字号:
/* ==================================================================================
File name:       F24xWDOG.c
                    
Originator:	Digital Control Systems Group
			Texas Instruments
Description:                                   
This file contains the source for the Watchdog drivers.     
For the function prototypes include the file watchdog.h in your build. 
Applicability of these functions is indicated in the Table 1               
=====================================================================================
History:
-------------------------------------------------------------------------------------
 9-15-2000	Release	Rev 1.0                                                   */
/*----------------------------------------------------------------------------*/
/*                           T A B L E      1                                 */
/*----------------------------------------------------------------------------*/
/*     Function Name    |    Applicability                                    */
/*----------------------------------------------------------------------------*/
/*                      |      F240 | F241| F243 | LF2402 | LF2406 | LF2407   */
/*                      |           |     |      |        |        |          */
/* F24x_WD_ResetCounter |       Y   |  Y  |  Y   |   Y    |   Y    |   Y      */
/* F24x_WD_Disable      |       Y   |  Y  |  Y   |   Y    |   Y    |   Y      */
/*                      |           |     |      |        |        |          */
/*                      |           |     |      |        |        |          */
/*                      |           |     |      |        |        |          */
/*                      |           |     |      |        |        |          */
/*                      |           |     |      |        |        |          */
/*----------------------------------------------------------------------------*/

#include "..\include\regs24x.h"


void F24x_WD_ResetCounter(void)
{
        WDKEY=0x5555;                  /* Reset WDog   */
        WDKEY=0xaaaa;
}

void F24x_WD_Disable(void)
{
        WDCR=0x006f;                /* Write Control Register to Disable Watchdog */
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -