diff options
Diffstat (limited to 'firmware/usbstack/usb_core.c')
-rw-r--r-- | firmware/usbstack/usb_core.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/firmware/usbstack/usb_core.c b/firmware/usbstack/usb_core.c index 81333fe0d2..c4450af964 100644 --- a/firmware/usbstack/usb_core.c +++ b/firmware/usbstack/usb_core.c | |||
@@ -31,19 +31,19 @@ | |||
31 | #include "usb_core.h" | 31 | #include "usb_core.h" |
32 | #include "usb_class_driver.h" | 32 | #include "usb_class_driver.h" |
33 | 33 | ||
34 | #if defined(USB_STORAGE) | 34 | #if defined(USB_ENABLE_STORAGE) |
35 | #include "usb_storage.h" | 35 | #include "usb_storage.h" |
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | #if defined(USB_SERIAL) | 38 | #if defined(USB_ENABLE_SERIAL) |
39 | #include "usb_serial.h" | 39 | #include "usb_serial.h" |
40 | #endif | 40 | #endif |
41 | 41 | ||
42 | #if defined(USB_CHARGING_ONLY) | 42 | #if defined(USB_ENABLE_CHARGING_ONLY) |
43 | #include "usb_charging_only.h" | 43 | #include "usb_charging_only.h" |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | #if defined(USB_HID) | 46 | #if defined(USB_ENABLE_HID) |
47 | #include "usb_hid.h" | 47 | #include "usb_hid.h" |
48 | #endif | 48 | #endif |
49 | 49 | ||
@@ -182,7 +182,7 @@ static struct | |||
182 | 182 | ||
183 | static struct usb_class_driver drivers[USB_NUM_DRIVERS] = | 183 | static struct usb_class_driver drivers[USB_NUM_DRIVERS] = |
184 | { | 184 | { |
185 | #ifdef USB_STORAGE | 185 | #ifdef USB_ENABLE_STORAGE |
186 | [USB_DRIVER_MASS_STORAGE] = { | 186 | [USB_DRIVER_MASS_STORAGE] = { |
187 | .enabled = false, | 187 | .enabled = false, |
188 | .needs_exclusive_storage = true, | 188 | .needs_exclusive_storage = true, |
@@ -201,7 +201,7 @@ static struct usb_class_driver drivers[USB_NUM_DRIVERS] = | |||
201 | #endif | 201 | #endif |
202 | }, | 202 | }, |
203 | #endif | 203 | #endif |
204 | #ifdef USB_SERIAL | 204 | #ifdef USB_ENABLE_SERIAL |
205 | [USB_DRIVER_SERIAL] = { | 205 | [USB_DRIVER_SERIAL] = { |
206 | .enabled = false, | 206 | .enabled = false, |
207 | .needs_exclusive_storage = false, | 207 | .needs_exclusive_storage = false, |
@@ -220,7 +220,7 @@ static struct usb_class_driver drivers[USB_NUM_DRIVERS] = | |||
220 | #endif | 220 | #endif |
221 | }, | 221 | }, |
222 | #endif | 222 | #endif |
223 | #ifdef USB_CHARGING_ONLY | 223 | #ifdef USB_ENABLE_CHARGING_ONLY |
224 | [USB_DRIVER_CHARGING_ONLY] = { | 224 | [USB_DRIVER_CHARGING_ONLY] = { |
225 | .enabled = false, | 225 | .enabled = false, |
226 | .needs_exclusive_storage = false, | 226 | .needs_exclusive_storage = false, |
@@ -239,7 +239,7 @@ static struct usb_class_driver drivers[USB_NUM_DRIVERS] = | |||
239 | #endif | 239 | #endif |
240 | }, | 240 | }, |
241 | #endif | 241 | #endif |
242 | #ifdef USB_HID | 242 | #ifdef USB_ENABLE_HID |
243 | [USB_DRIVER_HID] = { | 243 | [USB_DRIVER_HID] = { |
244 | .enabled = false, | 244 | .enabled = false, |
245 | .needs_exclusive_storage = false, | 245 | .needs_exclusive_storage = false, |