Hi,
I have a project where every bit of SRAM counts. So I want to store the hid device descriptor in the flash memory. I seem to recall that this is possible (correct me if I'm wrong here), but I can't remember how. I'd be happy for someone to refresh my memory (no pun intended )
Also tipps on how to make v-usb use less SRAM would be good.
Thx in advance.
Store HID-descriptor in flash memory?
Re: Store HID-descriptor in flash memory?
the HID descriptor is stored in flash by default:
PROGMEM puts it in flash.
V-USB in normal config doesn't use a lot of RAM. You can save 1 or 2 bytes by using the GPIOR registers as SRAM. But that's about it.
Code: Select all
PROGMEM char usbHidReportDescriptor[24] = {
PROGMEM puts it in flash.
V-USB in normal config doesn't use a lot of RAM. You can save 1 or 2 bytes by using the GPIOR registers as SRAM. But that's about it.