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/generic.h | |
parent | 0ca572bc7a0fbe26b216cab519d89187ae49a28b (diff) |
Use strongly typed enumeration for EPType to avoid name conflicts.
Diffstat (limited to 'usb/generic.h')
-rw-r--r-- | usb/generic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usb/generic.h b/usb/generic.h index 87fe089..8c9a965 100644 --- a/usb/generic.h +++ b/usb/generic.h @@ -13,7 +13,7 @@ struct desc_t { }; enum SetupStatus {Unhandled, Ok, Stall}; -enum EPType {Control, Bulk, Interrupt, Isochronous}; +enum class EPType {Control, Bulk, Interrupt, Isochronous}; class USB_class_driver { friend class USB_generic; @@ -139,7 +139,7 @@ class USB_generic { void handle_reset() { current_configuration = 0; - hw_conf_ep(0, Control, 64); + hw_conf_ep(0, EPType::Control, 64); } void handle_setup(const uint32_t* bufp) { |