projects
/
pub
/
USBasp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8b42056
)
Add const qualifier to all PROGMEM data to prevent warnings in newer AVR-GCC compiler...
author
Dean Camera
<dean@fourwalledcubicle.com>
Wed, 21 Sep 2011 06:25:31 +0000
(06:25 +0000)
committer
Dean Camera
<dean@fourwalledcubicle.com>
Wed, 21 Sep 2011 06:25:31 +0000
(06:25 +0000)
Demos/Device/ClassDriver/RNDISEthernet/Lib/Webserver.c
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/RNDISEthernet/Lib/RNDIS.c
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/RNDISEthernet/Lib/Webserver.c
patch
|
blob
|
blame
|
history
Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c
patch
|
blob
|
blame
|
history
diff --git
a/Demos/Device/ClassDriver/RNDISEthernet/Lib/Webserver.c
b/Demos/Device/ClassDriver/RNDISEthernet/Lib/Webserver.c
index
401dddf
..
241da48
100644
(file)
--- a/
Demos/Device/ClassDriver/RNDISEthernet/Lib/Webserver.c
+++ b/
Demos/Device/ClassDriver/RNDISEthernet/Lib/Webserver.c
@@
-39,22
+39,22
@@
/** HTTP server response header, for transmission before the page contents. This indicates to the host that a page exists at the
* given location, and gives extra connection information.
*/
/** HTTP server response header, for transmission before the page contents. This indicates to the host that a page exists at the
* given location, and gives extra connection information.
*/
-c
har PROGMEM HTTP200Header[]
= "HTTP/1.1 200 OK\r\n"
- "Server: LUFA RNDIS\r\n"
- "Content-type: text/html\r\n"
- "Connection: close\r\n\r\n";
+c
onst char HTTP200Header[] PROGMEM
= "HTTP/1.1 200 OK\r\n"
+
"Server: LUFA RNDIS\r\n"
+
"Content-type: text/html\r\n"
+
"Connection: close\r\n\r\n";
/** HTTP server response header, for transmission before a resource not found error. This indicates to the host that the given
* given URL is invalid, and gives extra error information.
*/
/** HTTP server response header, for transmission before a resource not found error. This indicates to the host that the given
* given URL is invalid, and gives extra error information.
*/
-c
har PROGMEM HTTP404Header[]
= "HTTP/1.1 404 Not Found\r\n"
- "Server: LUFA RNDIS\r\n"
- "Connection: close\r\n\r\n";
+c
onst char HTTP404Header[] PROGMEM
= "HTTP/1.1 404 Not Found\r\n"
+
"Server: LUFA RNDIS\r\n"
+
"Connection: close\r\n\r\n";
/** HTTP page to serve to the host when a HTTP request is made. This page is too long for a single response, thus it is automatically
* broken up into smaller blocks and sent as a series of packets each time the webserver application callback is run.
*/
/** HTTP page to serve to the host when a HTTP request is made. This page is too long for a single response, thus it is automatically
* broken up into smaller blocks and sent as a series of packets each time the webserver application callback is run.
*/
-c
har PROGMEM HTTPPage[]
=
+c
onst char HTTPPage[] PROGMEM
=
"<html>"
" <head>"
" <title>"
"<html>"
" <head>"
" <title>"
diff --git
a/Demos/Device/LowLevel/RNDISEthernet/Lib/RNDIS.c
b/Demos/Device/LowLevel/RNDISEthernet/Lib/RNDIS.c
index
a56b347
..
6acfff2
100644
(file)
--- a/
Demos/Device/LowLevel/RNDISEthernet/Lib/RNDIS.c
+++ b/
Demos/Device/LowLevel/RNDISEthernet/Lib/RNDIS.c
@@
-38,12
+38,12
@@
#include "RNDIS.h"
/** Physical MAC address of the network adapter, which becomes the MAC address of the host for packets sent to the adapter. */
#include "RNDIS.h"
/** Physical MAC address of the network adapter, which becomes the MAC address of the host for packets sent to the adapter. */
-static
MAC_Address_t PROGMEM AdapterMACAddress
= {ADAPTER_MAC_ADDRESS};
+static
const MAC_Address_t PROGMEM AdapterMACAddress
= {ADAPTER_MAC_ADDRESS};
/** Vendor description of the adapter. This is overridden by the INF file required to install the appropriate RNDIS drivers for
* the device, but may still be used by the OS in some circumstances.
*/
/** Vendor description of the adapter. This is overridden by the INF file required to install the appropriate RNDIS drivers for
* the device, but may still be used by the OS in some circumstances.
*/
-static c
har PROGMEM AdapterVendorDescription[]
= "LUFA RNDIS Adapter";
+static c
onst char PROGMEM AdapterVendorDescription[]
= "LUFA RNDIS Adapter";
/** List of RNDIS OID commands supported by this adapter. */
static const uint32_t PROGMEM AdapterSupportedOIDList[] =
/** List of RNDIS OID commands supported by this adapter. */
static const uint32_t PROGMEM AdapterSupportedOIDList[] =
diff --git
a/Demos/Device/LowLevel/RNDISEthernet/Lib/Webserver.c
b/Demos/Device/LowLevel/RNDISEthernet/Lib/Webserver.c
index
7bd083d
..
d5c4152
100644
(file)
--- a/
Demos/Device/LowLevel/RNDISEthernet/Lib/Webserver.c
+++ b/
Demos/Device/LowLevel/RNDISEthernet/Lib/Webserver.c
@@
-39,22
+39,22
@@
/** HTTP server response header, for transmission before the page contents. This indicates to the host that a page exists at the
* given location, and gives extra connection information.
*/
/** HTTP server response header, for transmission before the page contents. This indicates to the host that a page exists at the
* given location, and gives extra connection information.
*/
-char PROGMEM HTTP200Header[] = "HTTP/1.1 200 OK\r\n"
- "Server: LUFA RNDIS\r\n"
- "Content-type: text/html\r\n"
- "Connection: close\r\n\r\n";
+c
onst c
har PROGMEM HTTP200Header[] = "HTTP/1.1 200 OK\r\n"
+
"Server: LUFA RNDIS\r\n"
+
"Content-type: text/html\r\n"
+
"Connection: close\r\n\r\n";
/** HTTP server response header, for transmission before a resource not found error. This indicates to the host that the given
* given URL is invalid, and gives extra error information.
*/
/** HTTP server response header, for transmission before a resource not found error. This indicates to the host that the given
* given URL is invalid, and gives extra error information.
*/
-char PROGMEM HTTP404Header[] = "HTTP/1.1 404 Not Found\r\n"
- "Server: LUFA RNDIS\r\n"
- "Connection: close\r\n\r\n";
+c
onst c
har PROGMEM HTTP404Header[] = "HTTP/1.1 404 Not Found\r\n"
+
"Server: LUFA RNDIS\r\n"
+
"Connection: close\r\n\r\n";
/** HTTP page to serve to the host when a HTTP request is made. This page is too long for a single response, thus it is automatically
* broken up into smaller blocks and sent as a series of packets each time the webserver application callback is run.
*/
/** HTTP page to serve to the host when a HTTP request is made. This page is too long for a single response, thus it is automatically
* broken up into smaller blocks and sent as a series of packets each time the webserver application callback is run.
*/
-char PROGMEM HTTPPage[] =
+c
onst c
har PROGMEM HTTPPage[] =
"<html>"
" <head>"
" <title>"
"<html>"
" <head>"
" <title>"
diff --git
a/Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c
b/Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c
index
9e7260a
..
2158f4d
100644
(file)
--- a/
Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c
+++ b/
Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c
@@
-41,7
+41,7
@@
*
* \hideinitializer
*/
*
* \hideinitializer
*/
-static uint8_t SPIMaskFromSCKDuration[] PROGMEM =
+static
const
uint8_t SPIMaskFromSCKDuration[] PROGMEM =
{
#if (F_CPU == 8000000)
SPI_SPEED_FCPU_DIV_2, // AVRStudio = 8MHz SPI, Actual = 4MHz SPI
{
#if (F_CPU == 8000000)
SPI_SPEED_FCPU_DIV_2, // AVRStudio = 8MHz SPI, Actual = 4MHz SPI
@@
-68,7
+68,7
@@
static uint8_t SPIMaskFromSCKDuration[] PROGMEM =
*
* \hideinitializer
*/
*
* \hideinitializer
*/
-static uint16_t TimerCompareFromSCKDuration[] PROGMEM =
+static
const
uint16_t TimerCompareFromSCKDuration[] PROGMEM =
{
TIMER_COMP(96386), TIMER_COMP(89888), TIMER_COMP(84211), TIMER_COMP(79208), TIMER_COMP(74767),
TIMER_COMP(70797), TIMER_COMP(67227), TIMER_COMP(64000), TIMER_COMP(61069), TIMER_COMP(58395),
{
TIMER_COMP(96386), TIMER_COMP(89888), TIMER_COMP(84211), TIMER_COMP(79208), TIMER_COMP(74767),
TIMER_COMP(70797), TIMER_COMP(67227), TIMER_COMP(64000), TIMER_COMP(61069), TIMER_COMP(58395),