I'm running avr-gcc (GCC) 4.7.0 and found that usb_serial.c version 1.1 from http://www.pjrc.com/teensy/usb_serial.html no longer compiles with the following error,
error: variable 'device_descriptor' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
It seems reasonable, to require const since the program can't modify it, so here's an updated usb_serial.c and diff.
On a side note, it seems strange that a forum for microcontroller programming and support doesn't allow the .c .cc .cpp .h .diff .gz and like file extensions.
error: variable 'device_descriptor' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
It seems reasonable, to require const since the program can't modify it, so here's an updated usb_serial.c and diff.
On a side note, it seems strange that a forum for microcontroller programming and support doesn't allow the .c .cc .cpp .h .diff .gz and like file extensions.
Attachments
Last edited: