MCCI Trusted Bootloader
Simple trusted bootloader and tools for small embedded systems
mccibootloaderplatform_entry.c
Go to the documentation of this file.
1/*
2
3Module: mccibootloaderplatform_entry.c
4
5Function:
6 McciBootloaderPlatform_entry()
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#include <string.h>
26
27/****************************************************************************\
28|
29| Manifest constants & typedefs.
30|
31\****************************************************************************/
32
33
34
35/****************************************************************************\
36|
37| Read-only data.
38|
39\****************************************************************************/
40
41
42
43/****************************************************************************\
44|
45| Variables.
46|
47\****************************************************************************/
48
49
50/*
51
52Name: McciBootloaderPlatform_entry()
53
54Function:
55 Perform platform-specific initialization.
56
57Definition:
58 void McciBootloaderPlatform_entry(
59 void
60 );
61
62Description:
63 This routine initializes zero RAM, copies init data to RAM, and sets
64 up the hardware. Key hardware setup: clocks, potentially the debug UART,
65 and brown-out detect.
66
67Returns:
68 No explicit result.
69
70Notes:
71
72
73*/
74
75#define FUNCTION "McciBootloaderPlatform_entry()"
76
77void
79 void
80 )
81 {
84
85 /* copy the initialized data */
87
88 /* zero BSS */
89 memset(&g_McciBootloader_BssBase, 0, nBss);
90
91 /* call the platform init function */
93 }
94
95#undef FUNCTION
96
97/**** end of mccibootloaderplatform_entry.c ****/
void * g_McciBootloader_DataTop
const void * gk_McciBootloader_DataImageBase
void * g_McciBootloader_BssBase
void * g_McciBootloader_BssTop
void * g_McciBootloader_DataBase
static size_t McciBootloader_codeSize(const void *base, const void *top)
static void McciBootloaderPlatform_systemInit(void)
void McciBootloaderPlatform_entry(void)