From eb55d2bce2efd03714b6daf1d7f5d985b540192b Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Tue, 5 Mar 2019 15:24:37 +0100 Subject: [PATCH] Remove extra space in comment and add define for user info pages size in user flash --- include/core/iap.h | 2 +- include/core/user_information_block.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/core/iap.h b/include/core/iap.h index a982c5d..e516c47 100644 --- a/include/core/iap.h +++ b/include/core/iap.h @@ -101,7 +101,7 @@ int iap_prepare_flash(uint32_t start_sector, uint32_t end_sector); */ int iap_erase_flash_sectors(uint32_t start_sector, uint32_t end_sector); -/* Erase pages from the programm memory +/* Erase pages from the programm memory * Page numbers start at 0. A flash page size is 512 bytes. * Provide the same page number as start and end to erase a single page. * Of course, end page number MUST be higher than (or equal to) start page number. diff --git a/include/core/user_information_block.h b/include/core/user_information_block.h index 40ec43e..71be6d3 100644 --- a/include/core/user_information_block.h +++ b/include/core/user_information_block.h @@ -46,6 +46,8 @@ #include "lib/stdint.h" +#define LPC_USER_INFO_PAGE_SIZE 512 + struct user_info { char name[48]; uint32_t version; -- 2.43.0