Statistics
| Branch: | Tag: | Revision:

amiro-blt / Target / Source / cop.c @ 1446566f

History | View | Annotate | Download (3.209 KB)

1
/************************************************************************************//**
2
* \file         Source\cop.c
3
* \brief        Bootloader watchdog module source file.
4
* \ingroup      Core
5
* \internal
6
*----------------------------------------------------------------------------------------
7
*                          C O P Y R I G H T
8
*----------------------------------------------------------------------------------------
9
*   Copyright (c) 2011  by Feaser    http://www.feaser.com    All rights reserved
10
*
11
*----------------------------------------------------------------------------------------
12
*                            L I C E N S E
13
*----------------------------------------------------------------------------------------
14
* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or
15
* modify it under the terms of the GNU General Public License as published by the Free
16
* Software Foundation, either version 3 of the License, or (at your option) any later
17
* version.
18
*
19
* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
20
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
21
* PURPOSE. See the GNU General Public License for more details.
22
*
23
* You should have received a copy of the GNU General Public License along with OpenBLT.
24
* If not, see <http://www.gnu.org/licenses/>.
25
*
26
* A special exception to the GPL is included to allow you to distribute a combined work 
27
* that includes OpenBLT without being obliged to provide the source code for any 
28
* proprietary components. The exception text is included at the bottom of the license
29
* file <license.html>.
30
* 
31
* \endinternal
32
****************************************************************************************/
33

    
34
/****************************************************************************************
35
* Include files
36
****************************************************************************************/
37
#include "boot.h"                                /* bootloader generic header          */
38

    
39

    
40
/****************************************************************************************
41
* Hook functions
42
****************************************************************************************/
43
#if (BOOT_COP_HOOKS_ENABLE > 0)
44
extern void CopInitHook(void);
45
extern void CopServiceHook(void);
46
#endif
47

    
48

    
49
/************************************************************************************//**
50
** \brief     Watchdog initialization function.
51
** \return    none
52
**
53
****************************************************************************************/
54
void CopInit(void)
55
{
56
#if (BOOT_COP_HOOKS_ENABLE > 0)
57
  CopInitHook();
58
#endif
59
} /*** end of CopInit ***/
60

    
61

    
62
/************************************************************************************//**
63
** \brief     Watchdog service function to prevent the watchdog from timing out.
64
** \return    none
65
**
66
****************************************************************************************/
67
void CopService(void)
68
{
69
#if (BOOT_COP_HOOKS_ENABLE > 0)
70
  CopServiceHook();
71
#endif
72
} /*** end of CopService ***/
73

    
74

    
75
/*********************************** end of cop.c **************************************/