diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-09-22 16:08:41 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-09-22 16:08:41 +0200 |
commit | 859317842837095a406a0ff7866091c012e1923e (patch) | |
tree | cd1ad52ddd976bf4679db0c7d388b93b7da5e483 /usb/f1_usb.h | |
parent | 0ca572bc7a0fbe26b216cab519d89187ae49a28b (diff) |
Use strongly typed enumeration for EPType to avoid name conflicts.
Diffstat (limited to 'usb/f1_usb.h')
-rw-r--r-- | usb/f1_usb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usb/f1_usb.h b/usb/f1_usb.h index f59ccab..166c051 100644 --- a/usb/f1_usb.h +++ b/usb/f1_usb.h @@ -30,7 +30,7 @@ class USB_f1 : public USB_generic { uint32_t old_epr = usb.reg.EPR[ep]; //uint32_t new_epr = 0x3220; - uint32_t new_epr = 0x8080 | ((type == Bulk ? 0 : type == Control ? 1 : type == Isochronous ? 2 : 3) << 9) | ep; + uint32_t new_epr = 0x8080 | ((type == EPType::Bulk ? 0 : type == EPType::Control ? 1 : type == EPType::Isochronous ? 2 : 3) << 9) | ep; if(in || ep == 0) { usb.bufd[ep].ADDR_TX = buf_end; |