bootloader: Adds bootloader_sha256_flash_contents()

This commit is contained in:
KonstantinKondrashov
2020-08-06 15:22:26 +08:00
parent e3edc15f94
commit a6dc125aec
7 changed files with 56 additions and 4 deletions

View File

@@ -22,6 +22,7 @@
#define FLASH_SECTOR_SIZE 0x1000
#define FLASH_BLOCK_SIZE 0x10000
#define MMAP_ALIGNED_MASK 0x0000FFFF
/* Provide a Flash API for bootloader_support code,
that can be used from bootloader or app code.
@@ -35,7 +36,7 @@
*
* @return Number of free pages
*/
uint32_t bootloader_mmap_get_free_pages();
uint32_t bootloader_mmap_get_free_pages(void);
/**
* @brief Map a region of flash to data memory