/**
 * @file
 *
 * @author Anton Bondarev
 * @date   19 Oct 2023
 */

#include <stdint.h>

#include <drivers/flash/flash.h>
#include <drivers/flash/flash_cache.h>

//uintptr_t flash_cache_addr(struct flash_dev *flashdev) {
// 	return ((uintptr_t)fdev->block_info[0].blocks - 1);
//}

int flash_cache_clean(struct flash_dev *flashdev) {
	return flash_erase(flashdev, flashdev->block_info[0].blocks - 1);
}
