From 5a15f714f571718ecd6a6bb07d95f22e6f5fd5f5 Mon Sep 17 00:00:00 2001 From: Derek Konigsberg Date: Fri, 27 Sep 2024 09:02:57 -0700 Subject: [PATCH] Reduce size of HID class request buffer With the change from cherry-embedded#260, this buffer no longer needs to be so large. It can be reduced to the save a lot of memory. --- class/hid/usbh_hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/hid/usbh_hid.c b/class/hid/usbh_hid.c index 71dbe4ae..de1ddc07 100644 --- a/class/hid/usbh_hid.c +++ b/class/hid/usbh_hid.c @@ -20,7 +20,7 @@ #define INTF_DESC_bInterfaceNumber 2 /** Interface number offset */ #define INTF_DESC_bAlternateSetting 3 /** Alternate setting offset */ -USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_hid_buf[CONFIG_USBHOST_MAX_HID_CLASS][USB_ALIGN_UP(256, CONFIG_USB_ALIGN_SIZE)]; +USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_hid_buf[CONFIG_USBHOST_MAX_HID_CLASS][USB_ALIGN_UP(64, CONFIG_USB_ALIGN_SIZE)]; static struct usbh_hid g_hid_class[CONFIG_USBHOST_MAX_HID_CLASS]; static uint32_t g_devinuse = 0;