Statistics
| Branch: | Tag: | Revision:

amiro-blt / Target / Source / boot.h @ 470d0567

History | View | Annotate | Download (4.533 KB)

1 69661903 Thomas Schöpping
/************************************************************************************//**
2
* \file         Source\boot.h
3
* \brief        Bootloader core module header 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
#ifndef BOOT_H
34
#define BOOT_H
35
36
/****************************************************************************************
37
* Defines
38
****************************************************************************************/
39
/** \brief Main version of the bootloader core. */
40
#define BOOT_VERSION_CORE_MAIN     (1u)
41
/** \brief Minor version of the bootloader core. */
42
#define BOOT_VERSION_CORE_MINOR    (0u)
43
/** \brief Bufgix version of the bootloader core. */
44
#define BOOT_VERSION_CORE_BUGFIX   (1u)
45
46
47
/****************************************************************************************
48
* Include files
49
****************************************************************************************/
50
/* Note that it is possible to override the standard blt_conf.h configuration header
51
 * file with a project specific one that is defined in the IDE/makefile. For example, 
52
 * the following define could be configured: PROJ_BLT_CONF_H="my_boot_config.h". This can
53
 * be handy if you use the bootloader in several projects with a different configuration,
54
 * and enables you to have just one bootloader source base.
55
 */
56
#include "types.h"                                    /* variable types                */
57
#include "assert.h"                                   /* assertion checks              */
58
#ifdef PROJ_BLT_CONF_H
59
#include PROJ_BLT_CONF_H                              /* custom configuration          */
60
#else
61
#include "blt_conf.h"                                 /* bootloader configuration      */
62
#endif /* PROJ_BLT_CONF_H */
63
#include "plausibility.h"                             /* plausibility checks           */
64
#include "cpu.h"                                      /* cpu driver module             */
65
#include "cop.h"                                      /* watchdog driver module        */
66
#include "nvm.h"                                      /* memory driver module          */
67
#include "timer.h"                                    /* timer driver module           */
68
#include "backdoor.h"                                 /* backdoor entry module         */
69
#include "file.h"                                     /* file system module            */
70
#include "com.h"                                      /* communication interface       */
71
#include "gateway.h"                                  /* gateway interface             */
72
#include "xcp.h"                                      /* xcp communication layer       */
73
74
75
/****************************************************************************************
76
* Function prototypes
77
****************************************************************************************/
78
void BootInit(void);
79
void BootTask(void);
80
81
82
#endif /* BOOT_H */
83
/*********************************** end of boot.h *************************************/