MCCI Trusted Bootloader
Simple trusted bootloader and tools for small embedded systems
mccibootloaderplatform_fail.c
Go to the documentation of this file.
1/*
2
3Module: mccibootloaderplatform_fail.c
4
5Function:
6 McciBootloaderPlatform_fail()
7
8Copyright and License:
9 This file copyright (C) 2021 by
10
11 MCCI Corporation
12 3520 Krums Corners Road
13 Ithaca, NY 14850
14
15 See accompanying LICENSE file for copyright and license information.
16
17Author:
18 Terry Moore, MCCI Corporation March 2021
19
20*/
21
22#include "mcci_bootloader.h"
23
25
26/****************************************************************************\
27|
28| Manifest constants & typedefs.
29|
30\****************************************************************************/
31
32
33
34/****************************************************************************\
35|
36| Read-only data.
37|
38\****************************************************************************/
39
40
41
42/****************************************************************************\
43|
44| Variables.
45|
46\****************************************************************************/
47
48/// \brief set to boot failure code.
50
51/*
52
53Name: McciBootloaderPlatform_fail()
54
55Function:
56
57
58Definition:
59 void McciBootloaderPlatform_fail(
60 McciBootloaderError_t error
61 );
62
63Description:
64 Deal with a bootloader failure. Does not return.
65
66Returns:
67 No explicit result.
68
69Notes:
70 We save the error code, and then call the platform failure method.
71
72*/
73
74#define FUNCTION "McciBootloaderPlatform_fail"
75
76void
87
88#undef FUNCTION
89
90/**** end of mccibootloaderplatform_fail.c ****/
#define MCCI_BOOTLOADER_NOT_REACHED()
uint32_t McciBootloaderError_t
error codes for the bootloader
const McciBootloaderPlatform_Interface_t gk_McciBootloaderPlatformInterface
McciBootloaderError_t g_McciBootloader_failureCode
set to boot failure code.
void McciBootloaderPlatform_fail(McciBootloaderError_t error)