Loading...
Searching...
No Matches
usb_dfu.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 Mesotic SAS
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
23#ifndef RIOTBOOT_USB_DFU_H
24#define RIOTBOOT_USB_DFU_H
25
26#include "riotboot/hdr.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
36#ifndef USB_DFU_MODE_SLOT0_NAME
37#define USB_DFU_MODE_SLOT0_NAME "RIOT-OS Slot 0"
38#endif
39#ifndef USB_DFU_MODE_SLOT1_NAME
40#define USB_DFU_MODE_SLOT1_NAME "RIOT-OS Slot 1"
41#endif
42#ifndef USB_APP_MODE_SLOT_NAME
43#define USB_APP_MODE_SLOT_NAME "RIOT-OS bootloader"
44#endif
45
51void riotboot_usb_dfu_init(unsigned forced);
52
53#ifdef __cplusplus
54}
55#endif
56
57#endif /* RIOTBOOT_USB_DFU_H */
RIOT "partition" header and tools.
void riotboot_usb_dfu_init(unsigned forced)
Initialize usbus DFU for riotboot bootloader.