Skip to content

Commit

Permalink
Reduce size of HID class request buffer
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dkonigsberg authored and sakumisu committed Sep 27, 2024
1 parent bb79408 commit 5a15f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class/hid/usbh_hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5a15f71

Please sign in to comment.