mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
bootloaders/riotboot_dfu: Use ztimer instead of ztimer
This commit is contained in:
parent
5dfc4725c8
commit
fa95a39471
@ -5,7 +5,8 @@ APPLICATION = riotboot_dfu
|
|||||||
USEMODULE += riotboot_usb_dfu
|
USEMODULE += riotboot_usb_dfu
|
||||||
|
|
||||||
# Use xtimer for scheduled reboot
|
# Use xtimer for scheduled reboot
|
||||||
USEMODULE += xtimer
|
USEMODULE += ztimer
|
||||||
|
USEMODULE += ztimer_auto_init
|
||||||
|
|
||||||
# USB device vendor and product ID
|
# USB device vendor and product ID
|
||||||
# pid.codes test VID/PID, not globally unique
|
# pid.codes test VID/PID, not globally unique
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
#include "panic.h"
|
#include "panic.h"
|
||||||
#include "riotboot/slot.h"
|
#include "riotboot/slot.h"
|
||||||
#include "riotboot/usb_dfu.h"
|
#include "riotboot/usb_dfu.h"
|
||||||
|
#include "ztimer.h"
|
||||||
|
|
||||||
#include "bootloader_selection.h"
|
#include "bootloader_selection.h"
|
||||||
|
|
||||||
@ -70,6 +71,9 @@ void kernel_init(void)
|
|||||||
riotboot_slot_jump(slot);
|
riotboot_slot_jump(slot);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Init ztimer before starting DFU mode */
|
||||||
|
ztimer_init();
|
||||||
|
|
||||||
/* Nothing to boot, stay in DFU mode to flash a slot */
|
/* Nothing to boot, stay in DFU mode to flash a slot */
|
||||||
riotboot_usb_dfu_init(1);
|
riotboot_usb_dfu_init(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user