commit | 19ea60f9ac21e44dd39dce829bd11d277af9fa6b | [log] [tgz] |
---|---|---|
author | Brian Silverman <bsilver16384@gmail.com> | Wed Jan 03 21:43:15 2018 -0800 |
committer | Austin Schuh <austin@peloton-tech.com> | Wed Jan 03 22:32:33 2018 -0800 |
tree | 3b45705a7b155ddc0b5c2d7e947df4c51fa459b3 | |
parent | 8309762cf9e459684624fbd0f398e5cd877c3014 [diff] [blame] |
Pull the medium-specific pieces out of the common code Change-Id: I9cd1824a6bf535e285553fbe5f79f6d72919f048
diff --git a/motors/usb/usb.cc b/motors/usb/usb.cc index fb7fe9f..36c6456 100644 --- a/motors/usb/usb.cc +++ b/motors/usb/usb.cc
@@ -91,6 +91,8 @@ } // namespace +constexpr int UsbDevice::kEndpoint0MaxSize; + UsbDevice::UsbDevice(int index, uint16_t vendor_id, uint16_t product_id) : index_(index) { // TODO(Brian): Pass index_ into all the register access macros. Also sort out