summaryrefslogtreecommitdiff
path: root/chip/stm32/flash-stm32f100.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/flash-stm32f100.c')
-rw-r--r--chip/stm32/flash-stm32f100.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/stm32/flash-stm32f100.c b/chip/stm32/flash-stm32f100.c
index 907b246e84..7932a85df4 100644
--- a/chip/stm32/flash-stm32f100.c
+++ b/chip/stm32/flash-stm32f100.c
@@ -314,7 +314,7 @@ int flash_physical_write(int offset, int size, const char *data)
STM32_FLASH_CR |= PG;
for ( ; size > 0; size -= sizeof(uint16_t)) {
-#ifdef CONFIG_TASK_WATCHDOG
+#ifdef CONFIG_WATCHDOG
/* Reload the watchdog timer to avoid watchdog reset when doing
* long writing with interrupt disabled.
*/
@@ -383,7 +383,7 @@ int flash_physical_erase(int offset, int size)
/* set STRT bit : start erase */
STM32_FLASH_CR |= STRT;
-#ifdef CONFIG_TASK_WATCHDOG
+#ifdef CONFIG_WATCHDOG
/*
* Reload the watchdog timer to avoid watchdog reset during a
* long erase operation.