summaryrefslogtreecommitdiff
path: root/usb/dwc_otg.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2012-09-22 16:08:41 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2012-09-22 16:08:41 +0200
commit859317842837095a406a0ff7866091c012e1923e (patch)
treecd1ad52ddd976bf4679db0c7d388b93b7da5e483 /usb/dwc_otg.h
parent0ca572bc7a0fbe26b216cab519d89187ae49a28b (diff)
Use strongly typed enumeration for EPType to avoid name conflicts.
Diffstat (limited to 'usb/dwc_otg.h')
-rw-r--r--usb/dwc_otg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/usb/dwc_otg.h b/usb/dwc_otg.h
index 673d418..ccfaf03 100644
--- a/usb/dwc_otg.h
+++ b/usb/dwc_otg.h
@@ -73,7 +73,7 @@ class USB_otg : public USB_generic {
uint8_t in = ep & 0x80;
ep &= 0x7f;
- uint32_t epctl = ((type == Control ? 0 : type == Isochronous ? 1 : type == Bulk ? 2 : 3) << 18);
+ uint32_t epctl = ((type == EPType::Control ? 0 : type == EPType::Isochronous ? 1 : type == EPType::Bulk ? 2 : 3) << 18);
epctl |= (1 << 31) | (1 << 28) | (1 << 15) | (ep == 0 ? 64 : size); // EPENA, USBAEP, SD0PID
if(ep == 0) {