view gsm-fw/services/dar/dar_watchdog.c @ 992:a7b0b426f9ca

target-utils: boot ROM UART autodetection revamped The new implementation should work with both the familiar Calypso C035 boot ROM version found in our regular targets as well as the older Calypso F741979B version found on the vintage D-Sample board.
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Wed, 30 Dec 2015 21:28:41 +0000
parents a7087f91c752
children
line wrap: on
line source

/****************************************************************************/
/*                                                                          */
/*  File Name:  dar_watchdog.c                                              */
/*                                                                          */
/*  Purpose:   This function contains the DAR watchdog functions            */
/*                                                                          */
/*                                                                          */
/*  Version   0.1                                                           */
/*                                                                          */
/*  Date                 Modification                                       */
/*  ------------------------------------                                    */
/*  8 November 2001    Create                                               */
/*                                                                          */
/*  Author     Stephanie Gerthoux                                           */
/*                                                                          */
/* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved*/
/****************************************************************************/

#include "../../riviera/rv/rv_defined_swe.h"
#ifdef RVM_DAR_SWE
   #ifndef _WINDOWS
      #include "../../include/config.h"
   #endif

   #include "../../riviera/rv/rv_general.h"
   #include "../../riviera/rvm/rvm_gen.h"
   #include "../../riviera/rvm/rvm_priorities.h"
   #include "dar_api.h"
   #include "dar_gen.h"
   #include "dar_diagnose_i.h"

   /**** Global variable ****/

   /* Get the dar_current status */
   extern T_DAR_RECOVERY_STATUS dar_current_status;

   /***************************************************************************/
   /*                                                                         */
   /*    Function Name:   dar_watchdog_reset                                  */
   /*                                                                         */
   /*    Purpose: This function is called to reset the system when the general*/
   /*             general purpose timer expires                               */
   /*                                                                         */
   /*    Input Parameters:                                                    */
   /*        Pointer to the message to store                                  */
   /*        Data Format,                                                     */
   /*        Data level,                                                      */
   /*        Data Use Id,                                                     */
   /*                                                                         */
   /*    Output Parameters:                                                   */
   /*        Validation of the function execution.                            */
   /*                                                                         */
   /*    Note:                                                                */
   /*        None                                                             */
   /*                                                                         */
   /***************************************************************************/

   void dar_watchdog_reset(void)
   {
      /* Update the current status */
      dar_current_status = DAR_WATCHDOG;

      /* reset the system */
      dar_reset(); 
 
   } /* dar_watchdog_reset */


#endif /* #ifdef RVM_DAR_SWE */