ice40: indent

This commit is contained in:
Gwenhael Goavec-Merou 2021-06-26 08:34:41 +02:00
parent 79a0e84f1f
commit fb8f50cb52
1 changed files with 6 additions and 6 deletions

View File

@ -81,17 +81,17 @@ void Ice40::program(unsigned int offset)
_spi->gpio_clear(_rst_pin);
SPIFlash flash(reinterpret_cast<SPIInterface *>(_spi), _quiet);
flash.reset();
flash.power_up();
flash.reset();
flash.power_up();
printf("%02x\n", flash.read_status_reg());
flash.read_id();
flash.erase_and_prog(offset, bit.getData(), bit.getLength() / 8);
printf("%02x\n", flash.read_status_reg());
flash.read_id();
flash.erase_and_prog(offset, bit.getData(), bit.getLength() / 8);
if (_verify)
printWarn("writing verification not supported");
_spi->gpio_set(_rst_pin);
_spi->gpio_set(_rst_pin);
usleep(12000);
printInfo("Wait for CDONE ", false);