From 906fc8e169e76ced67ecb4595f0cbd3793f98216 Mon Sep 17 00:00:00 2001 From: Fabrice DJIATSA Date: Fri, 2 Aug 2024 10:38:33 +0200 Subject: [PATCH] stm32cube: stm32u0xx: drivers: include:Legacy: remove pagesize variable Need to be commented to successfully compile posix tests Signed-off-by: Fabrice DJIATSA --- stm32cube/stm32u0xx/README | 3 +++ stm32cube/stm32u0xx/drivers/include/Legacy/stm32_hal_legacy.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/stm32cube/stm32u0xx/README b/stm32cube/stm32u0xx/README index a596e0b07..f0c03190a 100644 --- a/stm32cube/stm32u0xx/README +++ b/stm32cube/stm32u0xx/README @@ -50,4 +50,7 @@ Patch List: -Added stm32cube/stm32u0xx/drivers/include/stm32_assert.h -Removed unused stm32cube/stm32u0xx/drivers/include/stm32_assert_template.h + *Fix to remove PAGESIZE definition which conflicts with POSIX + Impacted files: + stm32cube/stm32u0xx/drivers/include/Legacy/stm32_hal_legacy.h diff --git a/stm32cube/stm32u0xx/drivers/include/Legacy/stm32_hal_legacy.h b/stm32cube/stm32u0xx/drivers/include/Legacy/stm32_hal_legacy.h index f660a0e58..9abf00a35 100644 --- a/stm32cube/stm32u0xx/drivers/include/Legacy/stm32_hal_legacy.h +++ b/stm32cube/stm32u0xx/drivers/include/Legacy/stm32_hal_legacy.h @@ -472,7 +472,7 @@ extern "C" { #define TYPEPROGRAMDATA_FASTBYTE FLASH_TYPEPROGRAMDATA_FASTBYTE #define TYPEPROGRAMDATA_FASTHALFWORD FLASH_TYPEPROGRAMDATA_FASTHALFWORD #define TYPEPROGRAMDATA_FASTWORD FLASH_TYPEPROGRAMDATA_FASTWORD -#define PAGESIZE FLASH_PAGE_SIZE +/* #define PAGESIZE FLASH_PAGE_SIZE */ #define TYPEPROGRAM_FASTBYTE FLASH_TYPEPROGRAM_BYTE #define TYPEPROGRAM_FASTHALFWORD FLASH_TYPEPROGRAM_HALFWORD #define TYPEPROGRAM_FASTWORD FLASH_TYPEPROGRAM_WORD