From fd5774fdebc04f92983e677f4bc210c75e8fcc94 Mon Sep 17 00:00:00 2001 From: Fredrik Thulin Date: Fri, 20 May 2016 17:19:54 +0200 Subject: Add code to reset FPGA using FPGA_PROGRAM_B and FPGA_INIT_B. Also add code to erase FPGA config memory and check status of FPGA_DONE. --- spiflash_n25q128.c | 1 - 1 file changed, 1 deletion(-) (limited to 'spiflash_n25q128.c') diff --git a/spiflash_n25q128.c b/spiflash_n25q128.c index 10f5954..985e727 100644 --- a/spiflash_n25q128.c +++ b/spiflash_n25q128.c @@ -317,7 +317,6 @@ int n25q128_write_data(struct spiflash_ctx *ctx, uint32_t offset, const uint8_t } for (page = 0; page < len / N25Q128_PAGE_SIZE; page++) { - /* Wait until the flash memory is done writing (wip = Write In Progress) */ if (! _wait_while_wip(ctx, 1000)) return -5; if (! n25q128_write_page(ctx, offset / N25Q128_PAGE_SIZE, buf)) { -- cgit v1.2.3