diff options
Diffstat (limited to 'src/target/target.c')
-rw-r--r-- | src/target/target.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/target/target.c b/src/target/target.c index 8c479189..0a44e7b3 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -1136,6 +1136,23 @@ int target_checksum_memory(struct target_s *target, u32 address, u32 size, u32* return retval; } +int target_blank_check_memory(struct target_s *target, u32 address, u32 size, u32* blank) +{ + int retval; + if (!target->type->examined) + { + LOG_ERROR("Target not examined yet"); + return ERROR_FAIL; + } + + if (target->type->blank_check_memory == 0) + return ERROR_TARGET_RESOURCE_NOT_AVAILABLE; + + retval = target->type->blank_check_memory(target, address, size, blank); + + return retval; +} + int target_read_u32(struct target_s *target, u32 address, u32 *value) { u8 value_buf[4]; |