Bootloader Code Listing (V3.0)
// TI File $Revision: /main/2 $
// Checkin $Date: January 10, 2005 14:39:44 $
//###########################################################################
//
// FILE: SysCtrl_Boot.c
//
// TITLE: F2810/12 Boot Rom System Control Routines
//
// Functions:
//
// void WatchDogDisable(void)
// void WatchDogEnable(void)
//
// Notes:
//
//###########################################################################
// $TI Release:$
// $Release Date:$
//###########################################################################
#include "DSP280x_Device.h"
//---------------------------------------------------------------
// This module disables the watchdog timer.
//---------------------------------------------------------------
void WatchDogDisable()
{
EALLOW;
SysCtrlRegs.WDCR = 0x0068; // Disable watchdog module
EDIS;
}
//---------------------------------------------------------------
// This module enables the watchdog timer.
//---------------------------------------------------------------
void WatchDogEnable()
{
EALLOW;
SysCtrlRegs.WDCR = 0x0028; // Enable watchdog module
SysCtrlRegs.WDKEY = 0x55; // Clear the WD counter
SysCtrlRegs.WDKEY = 0xAA;
EDIS;
}
// EOF --------
64 Bootloader Code Overview SPRU722C – November 2004 – Revised October 2006
Submit Documentation Feedback