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.
|
|
|
|
*
|
2016-07-25 01:33:52 -07:00
|
|
|
* You have received a copy of the GNU General Public License along with OpenBLT. It
|
2016-04-30 15:52:15 -07:00
|
|
|
* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy.
|
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. */
|
2017-01-04 06:51:55 -08:00
|
|
|
#define BOOT_VERSION_CORE_MINOR (3u)
|
2016-11-23 07:53:53 -08:00
|
|
|
/** \brief Build version of the bootloader core. */
|
2017-05-03 08:36:12 -07:00
|
|
|
#define BOOT_VERSION_CORE_BUILD (2u)
|
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 *************************************/
|