1# Copyright (c) 2020 Intel Corporation
2# SPDX-License-Identifier: Apache-2.0
3
4menuconfig USB_DFU_CLASS
5	bool "USB DFU Class Driver"
6	select MPU_ALLOW_FLASH_WRITE
7	select POLL
8	depends on IMG_MANAGER
9	select IMG_ERASE_PROGRESSIVELY if SOC_FLASH_NRF
10	help
11	  USB DFU class driver
12
13if USB_DFU_CLASS
14
15config USB_DEVICE_DFU_PID
16	hex "USB DFU Product ID"
17	default 0xFFFF
18	help
19	  USB device product ID in DFU mode. MUST be configured by vendor.
20
21config USB_DFU_DETACH_TIMEOUT
22	int
23	default 1000
24
25config USB_DFU_DEFAULT_POLLTIMEOUT
26	int "Default value for bwPollTimeout"
27	default 256
28	range 0 1000
29	help
30	  Default value for bwPollTimeout (in ms)
31
32endif # USB_DFU_CLASS
33