FreeCalypso > hg > freecalypso-citrine
comparison services/dar/dar_watchdog.c @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:75a11d740a02 |
---|---|
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 "../../riviera/rv/rv_defined_swe.h" | |
20 #ifdef RVM_DAR_SWE | |
21 #ifndef _WINDOWS | |
22 #include "../../include/config.h" | |
23 #endif | |
24 | |
25 #include "../../riviera/rv/rv_general.h" | |
26 #include "../../riviera/rvm/rvm_gen.h" | |
27 #include "../../riviera/rvm/rvm_priorities.h" | |
28 #include "dar_api.h" | |
29 #include "dar_gen.h" | |
30 #include "dar_diagnose_i.h" | |
31 | |
32 /**** Global variable ****/ | |
33 | |
34 /* Get the dar_current status */ | |
35 extern T_DAR_RECOVERY_STATUS dar_current_status; | |
36 | |
37 /***************************************************************************/ | |
38 /* */ | |
39 /* Function Name: dar_watchdog_reset */ | |
40 /* */ | |
41 /* Purpose: This function is called to reset the system when the general*/ | |
42 /* general purpose timer expires */ | |
43 /* */ | |
44 /* Input Parameters: */ | |
45 /* Pointer to the message to store */ | |
46 /* Data Format, */ | |
47 /* Data level, */ | |
48 /* Data Use Id, */ | |
49 /* */ | |
50 /* Output Parameters: */ | |
51 /* Validation of the function execution. */ | |
52 /* */ | |
53 /* Note: */ | |
54 /* None */ | |
55 /* */ | |
56 /***************************************************************************/ | |
57 | |
58 void dar_watchdog_reset(void) | |
59 { | |
60 /* Update the current status */ | |
61 dar_current_status = DAR_WATCHDOG; | |
62 | |
63 /* reset the system */ | |
64 dar_reset(); | |
65 | |
66 } /* dar_watchdog_reset */ | |
67 | |
68 | |
69 #endif /* #ifdef RVM_DAR_SWE */ |