/* * Copyright (c) 2016 Intel Corporation * Copyright (c) 2017 Phytec Messtechnik GmbH * * SPDX-License-Identifier: Apache-2.0 */ /* Sample app for USB DFU class driver. */ #include #include #include LOG_MODULE_REGISTER(main); int main(void) { int ret; ret = usb_enable(NULL); if (ret != 0) { LOG_ERR("Failed to enable USB"); return 0; } LOG_INF("This device supports USB DFU class.\n"); return 0; }