comparison src/cs/services/dar/dar_watchdog.c @ 0:945cf7f506b2

src/cs: chipsetsw import from tcs211-fcmodem binary blobs and LCD demo files have been excluded, all line endings are LF only
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 25 Sep 2016 22:50:11 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:945cf7f506b2
1 /****************************************************************************/
2 /* */
3 /* File Name: dar_watchdog.c */
4 /* */
5 /* Purpose: This function contains the DAR watchdog functions */
6 /* */
7 /* */
8 /* Version 0.1 */
9 /* */
10 /* Date Modification */
11 /* ------------------------------------ */
12 /* 8 November 2001 Create */
13 /* */
14 /* Author Stephanie Gerthoux */
15 /* */
16 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved*/
17 /****************************************************************************/
18
19 #include "rv/rv_defined_swe.h"
20 #ifdef RVM_DAR_SWE
21 #ifndef _WINDOWS
22 #include "config/swconfig.cfg"
23 #include "config/sys.cfg"
24 #include "config/chipset.cfg"
25 #endif
26
27 #include "rv/rv_general.h"
28 #include "rvm/rvm_gen.h"
29 #include "rvm/rvm_priorities.h"
30 #include "dar/dar_api.h"
31 #include "dar/dar_gen.h"
32 #include "dar/dar_diagnose_i.h"
33
34 /**** Global variable ****/
35
36 /* Get the dar_current status */
37 extern T_DAR_RECOVERY_STATUS dar_current_status;
38
39 /********************************************************************************/
40 /* */
41 /* Function Name: dar_watchdog_reset */
42 /* */
43 /* Purpose: This function is called to reset the system when the general */
44 /* general purpose timer expires */
45 /* */
46 /* Input Parameters: */
47 /* Pointer to the message to store */
48 /* Data Format, */
49 /* Data level, */
50 /* Data Use Id, */
51 /* */
52 /* Output Parameters: */
53 /* Validation of the function execution. */
54 /* */
55 /* Note: */
56 /* None */
57 /* */
58 /********************************************************************************/
59
60 void dar_watchdog_reset(void)
61 {
62 /* Update the current status */
63 dar_current_status = DAR_WATCHDOG;
64
65 /* reset the system */
66 dar_reset();
67
68 } /* dar_watchdog_reset */
69
70
71 #endif /* #ifdef RVM_DAR_SWE */