summaryrefslogtreecommitdiff
path: root/chip/stm32/flash-stm32l15x.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/flash-stm32l15x.c')
-rw-r--r--chip/stm32/flash-stm32l15x.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/chip/stm32/flash-stm32l15x.c b/chip/stm32/flash-stm32l15x.c
index d110267fa6..8fa1d711d4 100644
--- a/chip/stm32/flash-stm32l15x.c
+++ b/chip/stm32/flash-stm32l15x.c
@@ -140,8 +140,8 @@ static void write_optb(int offset, uint16_t value)
*/
static uint32_t read_optb_wrp(void)
{
- return read_optb(STM32_OPTB_WRP01) |
- ((uint32_t)read_optb(STM32_OPTB_WRP23) << 16);
+ return read_optb(STM32_OPTB_WRP1L) |
+ ((uint32_t)read_optb(STM32_OPTB_WRP1H) << 16);
}
/**
@@ -149,8 +149,8 @@ static uint32_t read_optb_wrp(void)
*/
static void write_optb_wrp(uint32_t value)
{
- write_optb(STM32_OPTB_WRP01, (uint16_t)value);
- write_optb(STM32_OPTB_WRP23, value >> 16);
+ write_optb(STM32_OPTB_WRP1L, (uint16_t)value);
+ write_optb(STM32_OPTB_WRP1H, value >> 16);
}
/**