1 /* 2 * Copyright (c) 2016 Intel Corporation 3 * Copyright (c) 2017 Phytec Messtechnik GmbH 4 * 5 * SPDX-License-Identifier: Apache-2.0 6 */ 7 8 /* Sample app for USB DFU class driver. */ 9 10 #include <zephyr/kernel.h> 11 #include <zephyr/logging/log.h> 12 #include <zephyr/usb/usb_device.h> 13 LOG_MODULE_REGISTER(main); 14 main(void)15int main(void) 16 { 17 int ret; 18 19 ret = usb_enable(NULL); 20 if (ret != 0) { 21 LOG_ERR("Failed to enable USB"); 22 return 0; 23 } 24 25 LOG_INF("This device supports USB DFU class.\n"); 26 return 0; 27 } 28