- LOG_INFO("Writing page %ld...\n", page);
-
- IRQ_SAVE_DISABLE(flags);
- write_page(page);
-
- IRQ_RESTORE(flags);
- LOG_INFO("Done\n");
-}
-
-/**
- * Return true if no error are occurred after flash memory
- * read or write operation, otherwise return error code.
- */
-static bool flash_getStatus(struct KBlock *blk)
-{
- Flash *fls = FLASH_CAST(blk);
- /*
- * This bit is set to one if an invalid command and/or a bad keywords was/were
- * written in the Flash Command Register.
- */
- if(EEFC0_FSR & BV(EEFC_FSR_FCMDE))