diff options
author | Ilya Stolyarov <i.stolyarov@thirdpin.ru> | 2019-10-23 22:12:55 +0300 |
---|---|---|
committer | Ilya Stolyarov <i.stolyarov@thirdpin.ru> | 2019-10-23 22:21:18 +0300 |
commit | 572361340c788cd040107583beb53c33f1542838 (patch) | |
tree | d3a0e9f9b5254a7ee9b8298976a42df5029ccc36 | |
parent | 9e1be674b4578d5eb19a4d695bc19d444ae27c0a (diff) |
FIX: [usb] Count of USB endpoints
OTG FS has 4 endpoints, but OTG HS has 8.
Restore default value of the count of endpoints
and add the possibility to redefine it
-rw-r--r-- | lib/usb/usb_private.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/usb/usb_private.h b/lib/usb/usb_private.h index 8e1a091c..a7ebbb9a 100644 --- a/lib/usb/usb_private.h +++ b/lib/usb/usb_private.h @@ -41,7 +41,8 @@ LGPL License Terms @ref lgpl_license #define MAX_USER_CONTROL_CALLBACK 4 #define MAX_USER_SET_CONFIG_CALLBACK 4 -#define ENDPOINT_COUNT 8 +#ifndef ENDPOINT_COUNT +#define ENDPOINT_COUNT 4 #define MIN(a, b) ((a) < (b) ? (a) : (b)) |