| # Copyright 2019 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| driver("usb-peripheral") { |
| sources = [ |
| "usb-function.cpp", |
| "usb-peripheral.cpp", |
| ] |
| deps = [ |
| "$zx/system/banjo/ddk.protocol.usb", |
| "$zx/system/banjo/ddk.protocol.usb.dci", |
| "$zx/system/banjo/ddk.protocol.usb.function", |
| "$zx/system/banjo/ddk.protocol.usb.modeswitch", |
| "$zx/system/banjo/ddk.protocol.usb.request", |
| "$zx/system/dev/lib/usb", |
| "$zx/system/fidl/fuchsia-hardware-usb-peripheral:c", |
| "$zx/system/ulib/ddk", |
| "$zx/system/ulib/ddktl", |
| "$zx/system/ulib/fbl", |
| "$zx/system/ulib/fidl", |
| "$zx/system/ulib/zircon", |
| "$zx/system/ulib/zxcpp", |
| ] |
| |
| # Set default configuration here, rather than relying on usbctl to do it. |
| defines = [ |
| "USB_DEVICE_VID=0x18D1", |
| "USB_DEVICE_PID=0xA020", |
| "USB_DEVICE_MANUFACTURER=\"Zircon\"", |
| "USB_DEVICE_PRODUCT=\"CDC-Ethernet\"", |
| "USB_DEVICE_SERIAL=\"0123456789ABCDEF\"", |
| "USB_DEVICE_FUNCTIONS=\"cdc\"", |
| ] |
| } |