![]() |
MCCI Trusted Bootloader
Simple trusted bootloader and tools for small embedded systems
|
#include "mcci_bootloader_platform_types.h"Go to the source code of this file.
Data Structures | |
| struct | McciBootloaderPlatform_AnnunciatorInterface_t |
| annunciator interface structure More... | |
| struct | McciBootloaderPlatform_Interface_t |
| interface structure to platform functions More... | |
| struct | McciBootloaderPlatform_SpiInterface_t |
| SPI interface structure. More... | |
| struct | McciBootloaderPlatform_StorageInterface_t |
| interface for storage More... | |
Macros | |
| #define | _mcci_bootloader_platform_h_ /* prevent multiple includes */ |
Variables | |
| const McciBootloaderPlatform_Interface_t | gk_McciBootloaderPlatformInterface |
| #define _mcci_bootloader_platform_h_ /* prevent multiple includes */ |
Definition at line 23 of file mcci_bootloader_platform.h.
|
inlinestatic |
Definition at line 195 of file mcci_bootloader_platform.h.
References gk_McciBootloaderPlatformInterface.
Referenced by McciBootloader_main().
|
inlinestatic |
Definition at line 189 of file mcci_bootloader_platform.h.
References gk_McciBootloaderPlatformInterface.
Referenced by McciBootloader_main().
| const McciBootloader_AppInfo_t * McciBootloaderPlatform_checkImageValid | ( | const void * | pHeader, |
| size_t | nHeader, | ||
| uintptr_t | targetAddress, | ||
| size_t | targetSize | ||
| ) |
Definition at line 85 of file mccibootloaderplatform_checkimagevalid.c.
References McciBootloader_CortexPageZero_t::CortexAppEntry, Mcci_CortexAppEntryContents_t::entry, g_McciBootloader_SocRamBase, g_McciBootloader_SocRamTop, McciBootloaderPlatform_getAppInfo(), and Mcci_CortexAppEntryContents_t::stack.
Referenced by McciBootloader_checkCodeValid(), and McciBootloader_checkStorageImage().
|
inlinestatic |
Definition at line 130 of file mcci_bootloader_platform.h.
References gk_McciBootloaderPlatformInterface.
Referenced by McciBootloaderFlash_Mx25v8035f_storageInit(), and storagePowerOn().
| void McciBootloaderPlatform_entry | ( | void | ) |
Definition at line 78 of file mccibootloaderplatform_entry.c.
References g_McciBootloader_BssBase, g_McciBootloader_BssTop, g_McciBootloader_DataBase, g_McciBootloader_DataTop, gk_McciBootloader_DataImageBase, McciBootloader_codeSize(), and McciBootloaderPlatform_systemInit().
Referenced by McciBootloader_main().
| void MCCI_BOOTLOADER_NORETURN_PFX McciBootloaderPlatform_fail | ( | McciBootloaderError_t | errorCode | ) |
Definition at line 77 of file mccibootloaderplatform_fail.c.
References g_McciBootloader_failureCode, gk_McciBootloaderPlatformInterface, and MCCI_BOOTLOADER_NOT_REACHED.
Referenced by McciBootloader_main(), McciBootloader_Stm32L0_systemInit(), and McciBootloaderFlash_Mx25v8035f_storageInit().
| const McciBootloader_AppInfo_t * McciBootloaderPlatform_getAppInfo | ( | const void * | pHeader, |
| size_t | nHeader | ||
| ) |
Definition at line 78 of file mccibootloaderplatform_getappinfo.c.
References McciBootloader_CortexPageZeroContents_t::AppInfo, MCCI_BOOTLOADER_APP_INFO_MAGIC, and McciBootloader_CortexPageZero_t::PageZero.
Referenced by McciBootloader_checkStorageImage(), McciBootloader_main(), and McciBootloaderPlatform_checkImageValid().
|
inlinestatic |
Definition at line 164 of file mcci_bootloader_platform.h.
References gk_McciBootloaderPlatformInterface.
Referenced by McciBootloader_main().
|
inlinestatic |
Definition at line 158 of file mcci_bootloader_platform.h.
References gk_McciBootloaderPlatformInterface.
Referenced by McciBootloader_main().
| const McciBootloader_SignatureBlock_t * McciBootloaderPlatform_getSignatureBlock | ( | const McciBootloader_AppInfo_t * | pAppInfo | ) |
Definition at line 78 of file mccibootloaderplatform_getsignatureblock.c.
Referenced by McciBootloader_main().
|
inlinestatic |
Definition at line 86 of file mcci_bootloader_platform.h.
References gk_McciBootloaderPlatformInterface.
Referenced by McciBootloader_main().
|
inlinestatic |
Definition at line 80 of file mcci_bootloader_platform.h.
References gk_McciBootloaderPlatformInterface.
Referenced by McciBootloaderPlatform_startApp().
|
inlinestatic |
Definition at line 92 of file mcci_bootloader_platform.h.
References gk_McciBootloaderPlatformInterface.
Referenced by McciBootloader_main().
|
inlinestatic |
Definition at line 170 of file mcci_bootloader_platform.h.
References gk_McciBootloaderPlatformInterface.
Referenced by McciBootloaderBoard_Catena46xx_storageInit(), and McciBootloaderBoard_Catena4801_storageInit().
|
inlinestatic |
Definition at line 176 of file mcci_bootloader_platform.h.
References gk_McciBootloaderPlatformInterface.
Referenced by McciBootloaderFlash_Mx25v8035f_storageInit(), and McciBootloaderFlash_Mx25v8035f_storageRead().
| MCCI_BOOTLOADER_NORETURN_PFX void McciBootloaderPlatform_startApp | ( | const void * | pAppBase | ) |
Definition at line 88 of file mccibootloaderplatform_startapp.c.
References Mcci_CortexAppEntryContents_t::entry, MCCI_CM0PLUS_SCB_VTOR, MCCI_CM0PLUS_SCB_VTOR_TBLOFF, McciArm_putReg(), McciBootloaderPlatform_prepareForLaunch(), and Mcci_CortexAppEntryContents_t::stack.
Referenced by McciBootloader_main().
|
inlinestatic |
Definition at line 138 of file mcci_bootloader_platform.h.
References gk_McciBootloaderPlatformInterface.
Referenced by McciBootloader_main().
|
inlinestatic |
Definition at line 144 of file mcci_bootloader_platform.h.
References gk_McciBootloaderPlatformInterface.
Referenced by McciBootloader_checkStorageImage(), and McciBootloader_programAndCheckFlash().
|
inlinestatic |
Definition at line 98 of file mcci_bootloader_platform.h.
References gk_McciBootloaderPlatformInterface.
Referenced by McciBootloader_programAndCheckFlash().
|
inlinestatic |
Definition at line 110 of file mcci_bootloader_platform.h.
References gk_McciBootloaderPlatformInterface.
Referenced by McciBootloader_programAndCheckFlash().
|
inlinestatic |
Definition at line 74 of file mcci_bootloader_platform.h.
References gk_McciBootloaderPlatformInterface.
Referenced by McciBootloaderPlatform_entry().
|
extern |
Definition at line 41 of file mccibootloaderboard_catena46xx_platforminterface.c.
Referenced by McciBootloaderPlatform_annunciatorIndicateState(), McciBootloaderPlatform_annunciatorInit(), McciBootloaderPlatform_delayMs(), McciBootloaderPlatform_fail(), McciBootloaderPlatform_getFallbackStorageAddress(), McciBootloaderPlatform_getPrimaryStorageAddress(), McciBootloaderPlatform_getUpdateFlag(), McciBootloaderPlatform_prepareForLaunch(), McciBootloaderPlatform_setUpdateFlag(), McciBootloaderPlatform_spiInit(), McciBootloaderPlatform_spiTransfer(), McciBootloaderPlatform_storageInit(), McciBootloaderPlatform_storageRead(), McciBootloaderPlatform_systemFlashErase(), McciBootloaderPlatform_systemFlashWrite(), and McciBootloaderPlatform_systemInit().