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

Update V-USB to newest version #1

Merged
merged 2 commits into from Dec 11, 2016
Merged

Update V-USB to newest version #1

merged 2 commits into from Dec 11, 2016

Conversation

ConiKost
Copy link
Contributor

V-USB should be updated to the latest version, so LCD2USB can be compiled with never GCC versions.

It not, make fails with:
In file included from usbdrv/usbdrv.c:12:0:
usbdrv/usbdrv.h:455:6: error: variable 'usbDescriptorDevice' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char usbDescriptorDevice[];
^
usbdrv/usbdrv.h:461:6: error: variable 'usbDescriptorConfiguration' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char usbDescriptorConfiguration[];
^
usbdrv/usbdrv.h:467:6: error: variable 'usbDescriptorHidReport' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char usbDescriptorHidReport[];
^
usbdrv/usbdrv.h:473:6: error: variable 'usbDescriptorString0' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char usbDescriptorString0[];
^
usbdrv/usbdrv.h:479:5: error: variable 'usbDescriptorStringVendor' must be const in order to be put into read-only section by means of 'attribute((progmem))'
int usbDescriptorStringVendor[];
^
usbdrv/usbdrv.h:485:5: error: variable 'usbDescriptorStringDevice' must be const in order to be put into read-only section by means of 'attribute((progmem))'
int usbDescriptorStringDevice[];
^
usbdrv/usbdrv.h:491:5: error: variable 'usbDescriptorStringSerialNumber' must be const in order to be put into read-only section by means of 'attribute((progmem))'
int usbDescriptorStringSerialNumber[];
^
usbdrv/usbdrv.c:70:14: error: variable 'usbDescriptorString0' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM char usbDescriptorString0[] = { /* language descriptor /
^
usbdrv/usbdrv.c:80:14: error: variable 'usbDescriptorStringVendor' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM int usbDescriptorStringVendor[] = {
^
usbdrv/usbdrv.c:89:14: error: variable 'usbDescriptorStringDevice' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM int usbDescriptorStringDevice[] = {
^
usbdrv/usbdrv.c:111:14: error: variable 'usbDescriptorDevice' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM char usbDescriptorDevice[] = { /
USB device descriptor /
^
usbdrv/usbdrv.c:142:14: error: variable 'usbDescriptorConfiguration' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM char usbDescriptorConfiguration[] = { /
USB configuration descriptor */

@harbaum harbaum merged commit c06c50d into harbaum:master Dec 11, 2016
@harbaum
Copy link
Owner

harbaum commented Dec 11, 2016

Excellent. Thanks a lot.

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

Successfully merging this pull request may close these issues.

None yet

2 participants