diff options
| author | Derek Konigsberg <[email protected]> | 2024-09-27 09:02:57 -0700 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-09-28 00:27:38 +0800 |
| commit | 5a15f714f571718ecd6a6bb07d95f22e6f5fd5f5 (patch) | |
| tree | 0c614d42e22ff3e94bb43b3953125e611dc8bc48 | |
| parent | bb794082752f1657e7f81f47cfb44ddc240efd5a (diff) | |
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.
| -rw-r--r-- | class/hid/usbh_hid.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
