1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

bootloaders/riotboot_dfu: Use ztimer instead of ztimer

This commit is contained in:
Koen Zandberg 2021-10-25 22:25:25 +02:00
parent 5dfc4725c8
commit fa95a39471
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B
2 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,8 @@ APPLICATION = riotboot_dfu
USEMODULE += riotboot_usb_dfu
# Use xtimer for scheduled reboot
USEMODULE += xtimer
USEMODULE += ztimer
USEMODULE += ztimer_auto_init
# USB device vendor and product ID
# pid.codes test VID/PID, not globally unique

View File

@ -26,6 +26,7 @@
#include "panic.h"
#include "riotboot/slot.h"
#include "riotboot/usb_dfu.h"
#include "ztimer.h"
#include "bootloader_selection.h"
@ -70,6 +71,9 @@ void kernel_init(void)
riotboot_slot_jump(slot);
}
/* Init ztimer before starting DFU mode */
ztimer_init();
/* Nothing to boot, stay in DFU mode to flash a slot */
riotboot_usb_dfu_init(1);
}