From 859317842837095a406a0ff7866091c012e1923e Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 22 Sep 2012 16:08:41 +0200 Subject: Use strongly typed enumeration for EPType to avoid name conflicts. --- usb/generic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usb/generic.h') 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) { -- cgit v1.2.3