tinyusb_dfu.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 Gunar Schorcht
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 
20 #include "riotboot/flashwrite.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
29 typedef struct tinyusb_dfu_device {
31  uint8_t slot;
32 #ifdef MODULE_RIOTBOOT_TINYUSB_DFU
33  riotboot_flashwrite_t writer;
34 #endif
36 
40 void tinyusb_dfu_init(void);
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
riotboot flash writing module
firmware update state structure
Definition: flashwrite.h:105
tinyUSB DFU device interface context
Definition: tinyusb_dfu.h:29
bool skip_signature
Skip RIOTBOOT signature status.
Definition: tinyusb_dfu.h:30
uint8_t slot
Download slot.
Definition: tinyusb_dfu.h:31
void tinyusb_dfu_init(void)
Initialize the tinyUSB DFU device interface context.
struct tinyusb_dfu_device tinyusb_dfu_device_t
tinyUSB DFU device interface context