Check whether a valid DFU file exists on the filesystem.
const struct device *logger = DEVICE_DT_GET_ONE(embeint_data_logger_exfat);
uint8_t upgrade_partition = FIXED_PARTITION_ID(slot1_partition);
if (boot_request_upgrade_multi(0, 0) == 0) {
}
}
}
int dfu_exfat_app_upgrade_exists(const struct device *dev, struct mcuboot_img_sem_ver *upgrade)
Check whether a valid DFU file exists on the filesystem.
int dfu_exfat_app_upgrade_copy(const struct device *dev, struct mcuboot_img_sem_ver upgrade, uint8_t flash_area_id, dfu_exfat_progress_cb_t progress_cb)
Copy DFU file from filesystem onto flash area.
_NORETURN void infuse_reboot(enum infuse_reboot_reason reason, uint32_t info1, uint32_t info2)
Trigger a system reboot.
@ INFUSE_REBOOT_DFU
Rebooting for device firmware update.
Definition reboot.h:56
#define infuse_version
Definition version.h:37