flash: blank check use default_flash_blank_check

Use default_flash_blank_check, this will use the much faster
blank_check_memory handler if supported - 15x quicker on stm32f4.

Otherwise it will fall back to using the slower default_flash_mem_blank_check.

Change-Id: Ia231b3e95468c9e92594dbdbe1fa2d69e1506fc3
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/632
Tested-by: jenkins
This commit is contained in:
Spencer Oliver
2012-05-10 10:33:07 +01:00
parent e858451505
commit f9ea791e9b
9 changed files with 8 additions and 15 deletions

View File

@@ -822,6 +822,6 @@ struct flash_driver fm3_flash = {
.write = fm3_write_block,
.probe = fm3_probe,
.auto_probe = fm3_auto_probe,
.erase_check = default_flash_mem_blank_check,
.erase_check = default_flash_blank_check,
.info = fm3_info,
};