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 
9 #pragma once
10 
25 #include "riotboot/hdr.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
35 #ifndef USB_DFU_MODE_SLOT0_NAME
36 #define USB_DFU_MODE_SLOT0_NAME "RIOT-OS Slot 0"
37 #endif
38 #ifndef USB_DFU_MODE_SLOT1_NAME
39 #define USB_DFU_MODE_SLOT1_NAME "RIOT-OS Slot 1"
40 #endif
41 #ifndef USB_APP_MODE_SLOT_NAME
42 #define USB_APP_MODE_SLOT_NAME "RIOT-OS bootloader"
43 #endif
44 
50 void riotboot_usb_dfu_init(unsigned forced);
51 
52 #ifdef __cplusplus
53 }
54 #endif
RIOT "partition" header and tools.
void riotboot_usb_dfu_init(unsigned forced)
Initialize usbus DFU for riotboot bootloader.