aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKévin Redon <kredon@sysmocom.de>2019-01-16 18:16:35 +0100
committerKévin Redon <kredon@sysmocom.de>2019-01-16 18:41:23 +0100
commit9bd6f6f47442f14320896d451e676cc6402a16dc (patch)
tree9f1ae6f7d5756b2cb363c3be676a5113b27300de
parente49a3dbebad53e8088f8eab39e5d413f5f2c9615 (diff)
reduce number of endpoints
only endpoint 0 is used, thus there is no need to define more. this also saves RAM. Change-Id: I52a5d2d3c3d09ca7dfa165535ccc295bf190841b
-rw-r--r--config/hpl_usb_config.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/hpl_usb_config.h b/config/hpl_usb_config.h
index 02439a3..4445de5 100644
--- a/config/hpl_usb_config.h
+++ b/config/hpl_usb_config.h
@@ -39,7 +39,7 @@
// <CONF_USB_D_N_EP_MAX"> Max possible (by "Max Endpoint Number" config)
// <id> usbd_num_ep_sp
#ifndef CONF_USB_D_NUM_EP_SP
-#define CONF_USB_D_NUM_EP_SP CONF_USB_D_N_EP_MAX
+#define CONF_USB_D_NUM_EP_SP CONF_USB_N_1
#endif
// </h>
@@ -60,7 +60,7 @@
// <i> The number of physical endpoints - 1
// <id> usbd_arch_max_ep_n
#ifndef CONF_USB_D_MAX_EP_N
-#define CONF_USB_D_MAX_EP_N CONF_USB_N_2
+#define CONF_USB_D_MAX_EP_N CONF_USB_N_0
#endif
// <y> USB Speed Limit