Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typos in USB_Device_SetConfiguration #66

Closed
matlo opened this issue Dec 8, 2015 · 5 comments
Closed

Typos in USB_Device_SetConfiguration #66

matlo opened this issue Dec 8, 2015 · 5 comments

Comments

@matlo
Copy link

matlo commented Dec 8, 2015

#elif defined(USE_SRAM_DESCRIPTORS)

I think there are two typos:

  • USE_SRAM_DESCRIPTORS should be USE_RAM_DESCRIPTORS
  • MEMSPACE_SRAM should be MEMSPACE_RAM
@abcminiuser
Copy link
Owner

SRAM means Static Random Access Memory, which is a variant of generic RAM/Random Access Memory. I chose that naming because that's what Atmel specifically call their internal RAM in the device data sheets, and wanted to keep the terminology the same so as not to confuse people.

I could change it now, however as all three targets (UC3, XMEGA and AVR8) use SRAM in their data sheets I think it's best left the way it is so as not to introduce a migration issue for no real benefit.

@matlo
Copy link
Author

matlo commented Dec 9, 2015

Isn't the token named USE_RAM_DESCRIPTORS in LUFAConfig.h?
And the enum value MEMSPACE_RAM?

@abcminiuser
Copy link
Owner

Nuts, you're right. I'll change the code but add a compatibility fix to accept the current naming as well.

@abcminiuser
Copy link
Owner

Thanks!

Fixed in 40e1caa. Seems you're really exercising the corner parts of LUFA! It's an issue only for applications that do not define FIXED_NUM_CONFIGURATION (something that is rare) but do define USE_RAM_DESCRIPTORS.

@matlo
Copy link
Author

matlo commented Dec 15, 2015

Hi Dean,
You're right, the USB proxy I'm developing only has RAM descriptors, and the number of configurations depends on the target device.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants