usb: move usb subsystem to subsys/usb and cleanup header inclusion

Change-Id: I5bdfd2cf5fee62af2ca772d778477f4f378a6a55
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2016-10-30 16:33:25 -04:00 committed by Anas Nashif
commit 4d090e09d6
17 changed files with 19 additions and 12 deletions

View file

@ -36,8 +36,6 @@ source "subsys/Kconfig"
source "ext/Kconfig" source "ext/Kconfig"
source "usb/Kconfig"
source "tests/Kconfig" source "tests/Kconfig"
# #

View file

@ -392,6 +392,13 @@ S: Supported
F: ext/lib/crypto/tinycrypt/ F: ext/lib/crypto/tinycrypt/
F: tests/crypto/ F: tests/crypto/
USB
M: Jithu Joseph <jithu.joseph@intel.com>
S: Supported
F: subsys/usb
F: drivers/usb
F: samples/usb
X86 ARCH X86 ARCH
M: Benjamin Walsh <benjamin.walsh@windriver.com> M: Benjamin Walsh <benjamin.walsh@windriver.com>
M: Allan Stephens <allan.stephens@windriver.com> M: Allan Stephens <allan.stephens@windriver.com>

View file

@ -579,9 +579,9 @@ endif # $(dot-config)
# Unified kernel objects are built as a static library # Unified kernel objects are built as a static library
ifeq ($(CONFIG_KERNEL_V2),y) ifeq ($(CONFIG_KERNEL_V2),y)
libs-y := kernel/unified/ libs-y := kernel/unified/
core-y := lib/ misc/ net/ boards/ ext/ usb/ subsys/ tests/ arch/ core-y := lib/ misc/ net/ boards/ ext/ subsys/ tests/ arch/
else else
core-y := lib/ kernel/ misc/ net/ boards/ ext/ usb/ subsys/ tests/ arch/ core-y := lib/ kernel/ misc/ net/ boards/ ext/ subsys/ tests/ arch/
endif endif
drivers-y := drivers/ drivers-y := drivers/

View file

@ -36,8 +36,8 @@
#ifndef USB_DEVICE_H_ #ifndef USB_DEVICE_H_
#define USB_DEVICE_H_ #define USB_DEVICE_H_
#include "usb_dc.h" #include <drivers/usb/usb_dc.h>
#include "usbstruct.h" #include <usb/usbstruct.h>
/************************************************************************* /*************************************************************************
* USB configuration * USB configuration

View file

@ -1,3 +1 @@
ccflags-y += -I${ZEPHYR_BASE}/include/drivers/usb -I${ZEPHYR_BASE}/include/usb/ -I${ZEPHYR_BASE}/usb/include
obj-y += usb_dfu.o main.o obj-y += usb_dfu.o main.o

View file

@ -41,7 +41,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include <flash.h> #include <flash.h>
#include "usb_device.h" #include <usb/usb_device.h>
#include "usb_dfu.h" #include "usb_dfu.h"

View file

@ -41,7 +41,7 @@
#define __USB_DFU_H__ #define __USB_DFU_H__
#include <device.h> #include <device.h>
#include "usb_common.h" #include <usb/usb_common.h>
/* Intel vendor ID */ /* Intel vendor ID */
#define DFU_VENDOR_ID 0x8086 #define DFU_VENDOR_ID 0x8086

View file

@ -16,3 +16,6 @@
# #
source "subsys/fs/Kconfig" source "subsys/fs/Kconfig"
source "subsys/usb/Kconfig"

View file

@ -1 +1,2 @@
obj-$(CONFIG_FILE_SYSTEM) += fs/ obj-$(CONFIG_FILE_SYSTEM) += fs/
obj-$(CONFIG_USB) += usb/

View file

@ -45,6 +45,6 @@ config SYS_LOG_USB_LEVEL
- 4 DEBUG, write SYS_LOG_DBG in adition to previous levels - 4 DEBUG, write SYS_LOG_DBG in adition to previous levels
source "usb/class/Kconfig" source "subsys/usb/class/Kconfig"
endif # USB_DEVICE_STACK endif # USB_DEVICE_STACK

View file

@ -64,7 +64,7 @@
#if defined(USB_VUSB_EN_GPIO) #if defined(USB_VUSB_EN_GPIO)
#include <gpio.h> #include <gpio.h>
#endif #endif
#include "usb_device.h" #include <usb/usb_device.h>
#define SYS_LOG_LEVEL CONFIG_SYS_LOG_USB_LEVEL #define SYS_LOG_LEVEL CONFIG_SYS_LOG_USB_LEVEL
#define SYS_LOG_NO_NEWLINE #define SYS_LOG_NO_NEWLINE