- 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))
- {
- fls->hw->status |= FLASH_WR_ERR;
- LOG_ERR("flash not erased..\n");
- return false;
- }
-
- /*
- * This bit is set to one if we programming of at least one locked lock
- * region.
- */
- if(EEFC0_FSR & BV(EEFC_FSR_FLOCKE))
- {
- fls->hw->status |= FLASH_WR_PROTECT;
- LOG_ERR("wr protect..\n");
- return false;
- }