Skip to content
Browse files

dfu: mcuboot: Added defines for upgrade request modes

Added defines for the two upgrade request modes of

Signed-off-by: Dennis Wildmark <>
  • Loading branch information...
dwildmark authored and nashif committed May 20, 2019
1 parent 4f4b23b commit 5c29d0ef9cc41e1dec0962fd9b8ee4db3926267f
Showing with 7 additions and 2 deletions.
  1. +7 −2 include/dfu/mcuboot.h
@@ -152,14 +152,19 @@ int boot_write_img_confirmed(void);
int mcuboot_swap_type(void);

/** Boot upgrade request modes */

* @brief Marks the image in slot 1 as pending. On the next reboot, the system
* will perform a boot of the slot 1 image.
* @param permanent Whether the image should be used permanently or
* only tested once:
* 0=run image once, then confirm or revert.
* 1=run image forever.
* BOOT_UPGRADE_TEST=run image once, then confirm or revert.
* BOOT_UPGRADE_PERMANENT=run image forever.
* @return 0 on success, negative errno code on fail.
int boot_request_upgrade(int permanent);

0 comments on commit 5c29d0e

Please sign in to comment.
You can’t perform that action at this time.