From: asterix Date: Thu, 12 Aug 2010 17:04:21 +0000 (+0000) Subject: Clean up. X-Git-Tag: 2.6.0~208 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=9f2476c9032b3ed23c190b9d4f468ed1a83c8cb9;p=bertos.git Clean up. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4182 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/cortex-m3/drv/flash_stm32.c b/bertos/cpu/cortex-m3/drv/flash_stm32.c index 39f16182..013642af 100644 --- a/bertos/cpu/cortex-m3/drv/flash_stm32.c +++ b/bertos/cpu/cortex-m3/drv/flash_stm32.c @@ -174,7 +174,6 @@ static size_t stm32_flash_writeDirect(struct KBlock *blk, block_idx_t idx, const uint32_t addr = idx * blk->blk_size; const uint8_t *buf = (const uint8_t *)_buf; - kprintf("idx[%ld],size[%u]\n", idx, size); while (size) { uint16_t data = (*(buf + 1) << 8) | *buf; @@ -243,8 +242,8 @@ void flash_hw_init(Flash *fls) fls->blk.priv.buf = flash_buf; /* Load the first block in the cache */ - void *a = 0; - memcpy(fls->blk.priv.buf, a, fls->blk.blk_size); + void *flash_start = 0x0; + memcpy(fls->blk.priv.buf, flash_start, fls->blk.blk_size); } void flash_hw_initUnbuffered(Flash *fls)