X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Farm%2Fdrv%2Fflash_at91.c;fp=bertos%2Fcpu%2Farm%2Fdrv%2Fflash_at91.c;h=d501102a63d413b77bd3e014d173f11584a28d8e;hb=af6f92fdde767ddb88623acead8a59a468c1ae15;hp=adeb558f2f6a823c9f6c2f7916f6d4a9711ef344;hpb=144f8f1b4079593b00cded5db9b7f2b2da5ecc87;p=bertos.git diff --git a/bertos/cpu/arm/drv/flash_at91.c b/bertos/cpu/arm/drv/flash_at91.c index adeb558f..d501102a 100644 --- a/bertos/cpu/arm/drv/flash_at91.c +++ b/bertos/cpu/arm/drv/flash_at91.c @@ -139,9 +139,6 @@ static bool flash_getStatus(struct KBlock *blk) static size_t at91_flash_readDirect(struct KBlock *blk, block_idx_t idx, void *buf, size_t offset, size_t size) { - ASSERT(offset == 0); - ASSERT(size == blk->blk_size); - memcpy(buf, (void *)(idx * blk->blk_size + FLASH_BASE), size); return size; }