//----------------------------------------------------------------------------------
// <copyright file="boot.h" company="LiquidRobotics">
//	Copyright (c) Liquid Robotics Corporation.  All rights reserved.
// </copyright>
//
// <summary>
// 	Header file for boot.c
// </summary>
//
// <owner>Mike Cookson</owner>
//---------------------------------------------------------------------------------

#ifndef __BOOT_H__
#define __BOOT_H__

#ifndef FALSE
typedef uint8_t BOOL;
#define FALSE		((BOOL) 0)
#define TRUE		(!FALSE)
#endif

void BootCheckProgramImage();
void BootClearTentativeImage();
BOOL BootImageIsTentative();
BOOL BootCausedByWatchdog();
BOOL BootCheckProgramMD5(uint32_t imageLength, uint8_t* pExpectedMD5, uint8_t* pCalculatedMD5);
void BootRestart(BOOL intentional);
void BootSelectProgram(BOOL newSelectedImage);

#endif
