1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-22 21:13:52 +01:00
RIOT/sys/include/riotboot/usb_dfu.h
Marian Buschsieweke cac44edec7
tree-wide: replace multiple empty lines with one
For each C source/header `$file`: `sed -e '/^$/N;/^\n$/D' -i $file`.
2025-05-21 22:51:04 +02:00

55 lines
1.1 KiB
C

/*
* Copyright (C) 2020 Mesotic SAS
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
#pragma once
/**
* @defgroup sys_riotboot_usb_dfu Initialization of USB Device Firmware
* Upgrade for riotboot
* @ingroup sys
* @{
*
* @file
* @brief USB DFU initialization for riotboot
*
* @author Dylan Laduranty <dylan.laduranty@mesotic.com>
*
* @}
*/
#include "riotboot/hdr.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name USB DFU Default slots name
* @{
*/
#ifndef USB_DFU_MODE_SLOT0_NAME
#define USB_DFU_MODE_SLOT0_NAME "RIOT-OS Slot 0"
#endif
#ifndef USB_DFU_MODE_SLOT1_NAME
#define USB_DFU_MODE_SLOT1_NAME "RIOT-OS Slot 1"
#endif
#ifndef USB_APP_MODE_SLOT_NAME
#define USB_APP_MODE_SLOT_NAME "RIOT-OS bootloader"
#endif
/** @} */
/**
* @brief Initialize usbus DFU for riotboot bootloader
*/
void riotboot_usb_dfu_init(unsigned forced);
#ifdef __cplusplus
}
#endif