mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
58 lines
1.1 KiB
C
58 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.
|
|
*/
|
|
|
|
/**
|
|
* @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>
|
|
*
|
|
* @}
|
|
*/
|
|
|
|
#ifndef RIOTBOOT_USB_DFU_H
|
|
#define RIOTBOOT_USB_DFU_H
|
|
|
|
#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
|
|
|
|
#endif /* RIOTBOOT_USB_DFU_H */
|