1 /* 2 * Copyright (c) 2018 Intel Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/kernel.h> 8 #include <zephyr/sys/printk.h> 9 #include <zephyr/usb/usbd.h> 10 11 #include <sample_usbd.h> 12 main(void)13int main(void) 14 { 15 struct usbd_context *sample_usbd; 16 int ret; 17 18 sample_usbd = sample_usbd_init_device(NULL); 19 if (sample_usbd == NULL) { 20 printk("Failed to initialize USB device"); 21 return -ENODEV; 22 } 23 24 ret = usbd_enable(sample_usbd); 25 if (ret != 0) { 26 printk("Failed to enable USB"); 27 return 0; 28 } 29 30 printk("Bluetooth over USB sample\n"); 31 return 0; 32 } 33