1 /*
2  * Copyright (c) 2024, Nordic Semiconductor
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <zephyr/logging/log.h>
8 LOG_MODULE_DECLARE(net_http_server_sample, LOG_LEVEL_DBG);
9 
10 #include <zephyr/usb/usb_device.h>
11 #include <zephyr/net/net_config.h>
12 
init_usb(void)13 int init_usb(void)
14 {
15 	int ret;
16 
17 	ret = usb_enable(NULL);
18 	if (ret != 0) {
19 		LOG_ERR("Cannot enable USB (%d)", ret);
20 		return ret;
21 	}
22 
23 	(void)net_config_init_app(NULL, "Initializing network");
24 
25 	return 0;
26 }
27