diff options
author | Christian Starkjohann <cs+github@obdev.at> | 2012-12-05 23:07:22 +0100 |
---|---|---|
committer | Christian Starkjohann <cs+github@obdev.at> | 2012-12-05 23:07:22 +0100 |
commit | b6498a0104c637139035f08219cc2f39cb953e6d (patch) | |
tree | 13e7a89eeffd988c42d7d76cb808c94b87926d72 /tests/main.c | |
parent | 5e355a4f0588438632d56e2f9fef5a75b949bd24 (diff) | |
download | v-usb-b6498a0104c637139035f08219cc2f39cb953e6d.tar.gz v-usb-b6498a0104c637139035f08219cc2f39cb953e6d.tar.bz2 v-usb-b6498a0104c637139035f08219cc2f39cb953e6d.zip |
Add const keyword to all PROGMEM declarations as required by new gcc.
Diffstat (limited to 'tests/main.c')
-rw-r--r-- | tests/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/main.c b/tests/main.c index fa23ca4..8b8ba4c 100644 --- a/tests/main.c +++ b/tests/main.c @@ -48,7 +48,7 @@ void usbFunctionWriteOut(uchar *data, uchar len) #if USE_DYNAMIC_DESCRIPTOR -static PROGMEM char myDescriptorDevice[] = { /* USB device descriptor */ +static PROGMEM const char myDescriptorDevice[] = { /* USB device descriptor */ 18, /* sizeof(usbDescriptorDevice): length of descriptor in bytes */ USBDESCR_DEVICE, /* descriptor type */ 0x10, 0x01, /* USB version supported */ @@ -68,7 +68,7 @@ static PROGMEM char myDescriptorDevice[] = { /* USB device descriptor */ 1, /* number of configurations */ }; -static PROGMEM char myDescriptorConfiguration[] = { /* USB configuration descriptor */ +static PROGMEM const char myDescriptorConfiguration[] = { /* USB configuration descriptor */ 9, /* sizeof(usbDescriptorConfiguration): length of descriptor in bytes */ USBDESCR_CONFIG, /* descriptor type */ 18 + 7 * USB_CFG_HAVE_INTRIN_ENDPOINT + (USB_CFG_DESCR_PROPS_HID & 0xff), 0, |