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

@@ -253,7 +253,7 @@ int get_flash_bank_by_addr(struct target *target,
return ERROR_OK;
}
int default_flash_mem_blank_check(struct flash_bank *bank)
static int default_flash_mem_blank_check(struct flash_bank *bank)
{
struct target *target = bank->target;
const int buffer_size = 1024;