Skip to content

Commit 1f278ea

Browse files
soburiKhiemNguyenT
authored andcommitted
hal: renesas: bsp: Allows custom implementation of option setting memory
FSP does not set the option setting memory if CONFIG_SOC_OPTION_SETTING_MEMORY is enabled. This change is to keep it compatible with the existing RA4M1 implementation. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 97f0602 commit 1f278ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/ra/fsp/src/bsp/mcu/all/bsp_rom_registers.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ BSP_DONT_REMOVE static const uint32_t g_bsp_id_codes[] BSP_PLACE_IN_SECTION (BSP
7171

7272
#if 33U != __CORTEX_M && 85U != __CORTEX_M // NOLINT(readability-magic-numbers)
7373

74+
#if !defined(CONFIG_SOC_OPTION_SETTING_MEMORY)
7475
/** ROM registers defined here. Some have masks to make sure reserved bits are set appropriately. */
7576
BSP_DONT_REMOVE static const uint32_t g_bsp_rom_registers[] BSP_PLACE_IN_SECTION (BSP_SECTION_ROM_REGISTERS) =
7677
{
@@ -92,6 +93,7 @@ BSP_DONT_REMOVE static const uint32_t g_bsp_rom_registers[] BSP_PLACE_IN_SECTION
9293
(uint32_t) BSP_ROM_REG_MPU_CONTROL_SETTING
9394
#endif
9495
};
96+
#endif /* !defined(CONFIG_SOC_OPTION_SETTING_MEMORY) */
9597

9698
#elif BSP_FEATURE_FLASH_SUPPORTS_ID_CODE == 1
9799

0 commit comments

Comments
 (0)