From 90c09632ec0f53f1a875f2c5385844763ed692e0 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Fri, 4 May 2018 07:40:39 +0200 Subject: [PATCH] fixup! cpu/stm32-common: refactor flashpage driver --- cpu/stm32_common/periph/flashpage.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpu/stm32_common/periph/flashpage.c b/cpu/stm32_common/periph/flashpage.c index fc350bd12529..4a436b04c3bd 100644 --- a/cpu/stm32_common/periph/flashpage.c +++ b/cpu/stm32_common/periph/flashpage.c @@ -153,7 +153,7 @@ void flashpage_write_raw(void *target_addr, const void *data, size_t len) stmclk_enable_hsi(); #endif - DEBUG("[flashpage] write: now writing the data\n"); + DEBUG("[flashpage_raw] write: now writing the data\n"); #if !(defined(CPU_FAM_STM32L0) || defined(CPU_FAM_STM32L1)) /* set PG bit and program page to flash */ CNTRL_REG |= FLASH_CR_PG; @@ -166,7 +166,7 @@ void flashpage_write_raw(void *target_addr, const void *data, size_t len) /* clear program bit again */ CNTRL_REG &= ~(FLASH_CR_PG); - DEBUG("[flashpage] write: done writing data\n"); + DEBUG("[flashpage_raw] write: done writing data\n"); #if !(defined(CPU_FAM_STM32L0) || defined(CPU_FAM_STM32L1)) /* restore the HSI state */ @@ -193,7 +193,7 @@ void flashpage_write(int page, const void *data) uint16_t *page_addr = flashpage_addr(page); #endif - DEBUG("[flashpage_raw] unlocking the flash module\n"); + DEBUG("[flashpage] unlocking the flash module\n"); _unlock(); /* ERASE sequence */ @@ -204,6 +204,6 @@ void flashpage_write(int page, const void *data) flashpage_write_raw(page_addr, data, FLASHPAGE_SIZE); } - DEBUG("flashpage_raw] now locking the flash module again\n"); + DEBUG("flashpage] now locking the flash module again\n"); _lock(); }