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

📄 omap30_dspwdg_l3.c

📁 有关于USB的一些主机端驱动
💻 C
字号:
//-------------------------------------------------------------------------------
//            TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION           
//                                                                             
//   Property of Texas Instruments 
//   For  Unrestricted  Internal  Use  Only 
//   Unauthorized reproduction and/or distribution is strictly prohibited.  
//   This product is protected under copyright law and trade secret law 
//   as an unpublished work.  
//   Created 2000, (C) Copyright 1999 Texas Instruments.  All rights reserved.
//
//-------------------------------------------------------------------------------
#include  "omap30_l3.h"

//-------------------------------------------------------------------------------
//
//  FUNCTIONS
//
//-------------------------------------------------------------------------------
//----------------------------------------------------------// NAME        : DSPWDG_Disable// DESCRIPTION : Writting a predefined sequence//               0xF5 followed by 0xA0 in the 8 lsb bits//               to disable the watchdog// PARAMETERS  : None// RETURN VALUE: IS_OK if the watchdog has stopped //               NOT_OK if not// ----------------------------------------------------------UWORD16 DSPWDG_Disable(void){   DSPWDG_TIMER_MODE = 0xF5;   DSPWDG_TIMER_MODE = 0xA0;   if (TestBitIndex(DSPWDG_TIMER_MODE, DSPWDG_TIMER_MODE_WATCHDOG_POS))     {       return(NOT_OK);     }   else     {       return(IS_OK);     }}//----------------------------------------------------------// NAME        : DSPWDG_Enable// DESCRIPTION : Set the wdg timer in Watchdog mode//                                                     // PARAMETERS  : None                                 // RETURN VALUE: IS_OK if the watchdog run  //               NOT_OK if not      // ----------------------------------------------------------UWORD16 DSPWDG_Enable(void){   SetBitIndex(DSPWDG_TIMER_MODE, DSPWDG_TIMER_MODE_WATCHDOG_POS);   if (TestBitIndex(DSPWDG_TIMER_MODE, DSPWDG_TIMER_MODE_WATCHDOG_POS))     {       return(IS_OK);     }   else     {       return(NOT_OK);     }}//----------------------------------------------------------// NAME        : DSPWDG_Refresh// DESCRIPTION : Load a value in the watchdog to avoid a watchdog reset//                                                     // PARAMETERS  :
//   CounterValue = Timer setup value to be loaded                                 // RETURN VALUE: None// ----------------------------------------------------------void DSPWDG_Refresh(UWORD16 CounterValue){   DSPWDG_LOAD_TIMER = CounterValue;}

⌨️ 快捷键说明

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