2013-07-31 08:48:23 -07:00
|
|
|
/************************************************************************************//**
|
|
|
|
* \file Source\boot.h
|
|
|
|
* \brief Bootloader core module header file.
|
|
|
|
* \ingroup Core
|
|
|
|
* \internal
|
|
|
|
*----------------------------------------------------------------------------------------
|
|
|
|
* C O P Y R I G H T
|
|
|
|
*----------------------------------------------------------------------------------------
|
|
|
|
* Copyright (c) 2011 by Feaser http://www.feaser.com All rights reserved
|
|
|
|
*
|
|
|
|
*----------------------------------------------------------------------------------------
|
|
|
|
* L I C E N S E
|
|
|
|
*----------------------------------------------------------------------------------------
|
|
|
|
* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as published by the Free
|
|
|
|
* Software Foundation, either version 3 of the License, or (at your option) any later
|
|
|
|
* version.
|
|
|
|
*
|
|
|
|
* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with OpenBLT.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
2016-03-01 06:24:23 -08:00
|
|
|
* A special exception to the GPL is included to allow you to distribute a combined work
|
|
|
|
* that includes OpenBLT without being obliged to provide the source code for any
|
2013-07-31 08:48:23 -07:00
|
|
|
* proprietary components. The exception text is included at the bottom of the license
|
|
|
|
* file <license.html>.
|
2016-03-01 06:24:23 -08:00
|
|
|
*
|
2013-07-31 08:48:23 -07:00
|
|
|
* \endinternal
|
2011-11-10 09:55:56 -08:00
|
|
|
****************************************************************************************/
|
|
|
|
#ifndef BOOT_H
|
|
|
|
#define BOOT_H
|
|
|
|
|
2013-08-01 01:58:35 -07:00
|
|
|
/****************************************************************************************
|
|
|
|
* Defines
|
|
|
|
****************************************************************************************/
|
|
|
|
/** \brief Main version of the bootloader core. */
|
2014-07-24 02:52:07 -07:00
|
|
|
#define BOOT_VERSION_CORE_MAIN (1u)
|
2013-08-01 01:58:35 -07:00
|
|
|
/** \brief Minor version of the bootloader core. */
|
2016-02-25 05:51:12 -08:00
|
|
|
#define BOOT_VERSION_CORE_MINOR (2u)
|
2013-08-01 01:58:35 -07:00
|
|
|
/** \brief Bufgix version of the bootloader core. */
|
2014-12-16 08:22:18 -08:00
|
|
|
#define BOOT_VERSION_CORE_BUGFIX (0u)
|
2013-08-01 01:58:35 -07:00
|
|
|
|
|
|
|
|
2011-11-10 09:55:56 -08:00
|
|
|
/****************************************************************************************
|
|
|
|
* Include files
|
|
|
|
****************************************************************************************/
|
2013-08-01 01:58:35 -07:00
|
|
|
/* Note that it is possible to override the standard blt_conf.h configuration header
|
2016-03-01 06:24:23 -08:00
|
|
|
* file with a project specific one that is defined in the IDE/makefile. For example,
|
2013-08-01 01:58:35 -07:00
|
|
|
* the following define could be configured: PROJ_BLT_CONF_H="my_boot_config.h". This can
|
|
|
|
* be handy if you use the bootloader in several projects with a different configuration,
|
|
|
|
* and enables you to have just one bootloader source base.
|
|
|
|
*/
|
2011-11-10 09:55:56 -08:00
|
|
|
#include "types.h" /* variable types */
|
|
|
|
#include "assert.h" /* assertion checks */
|
2013-08-01 01:58:35 -07:00
|
|
|
#ifdef PROJ_BLT_CONF_H
|
|
|
|
#include PROJ_BLT_CONF_H /* custom configuration */
|
|
|
|
#else
|
|
|
|
#include "blt_conf.h" /* bootloader configuration */
|
|
|
|
#endif /* PROJ_BLT_CONF_H */
|
2011-11-10 09:55:56 -08:00
|
|
|
#include "plausibility.h" /* plausibility checks */
|
|
|
|
#include "cpu.h" /* cpu driver module */
|
|
|
|
#include "cop.h" /* watchdog driver module */
|
|
|
|
#include "nvm.h" /* memory driver module */
|
|
|
|
#include "timer.h" /* timer driver module */
|
|
|
|
#include "backdoor.h" /* backdoor entry module */
|
2013-05-22 06:37:47 -07:00
|
|
|
#include "file.h" /* file system module */
|
2011-11-10 09:55:56 -08:00
|
|
|
#include "com.h" /* communication interface */
|
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************************
|
|
|
|
* Function prototypes
|
|
|
|
****************************************************************************************/
|
|
|
|
void BootInit(void);
|
|
|
|
void BootTask(void);
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* BOOT_H */
|
|
|
|
/*********************************** end of boot.h *************************************/
|