mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 19:29:18 +00:00
Patch from Landon Fuller adds const to PROGMEM, required for newer avr-gcc
This commit is contained in:
parent
9096da299e
commit
37c407b177
@ -1,9 +1,9 @@
|
|||||||
#include <avr/eeprom.h>
|
#include <avr/eeprom.h>
|
||||||
|
|
||||||
/* Link layer ipv6 address will become fe80::2 */
|
/* Link layer ipv6 address will become fe80::2 */
|
||||||
uint8_t default_mac_address[8] PROGMEM = {0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02};
|
const uint8_t default_mac_address[8] PROGMEM = {0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02};
|
||||||
uint8_t default_server_name[16] PROGMEM = "huginn";
|
const uint8_t default_server_name[16] PROGMEM = "huginn";
|
||||||
uint8_t default_domain_name[30] PROGMEM = "localhost";
|
const uint8_t default_domain_name[30] PROGMEM = "localhost";
|
||||||
uint8_t eemem_mac_address[8] EEMEM = {0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02};
|
uint8_t eemem_mac_address[8] EEMEM = {0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02};
|
||||||
uint8_t eemem_server_name[16] EEMEM = "huginn";
|
uint8_t eemem_server_name[16] EEMEM = "huginn";
|
||||||
uint8_t eemem_domain_name[30] EEMEM = "localhost";
|
uint8_t eemem_domain_name[30] EEMEM = "localhost";
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#include <avr/eeprom.h>
|
#include <avr/eeprom.h>
|
||||||
|
|
||||||
/* Link layer ipv6 address will become fe80::1 */
|
/* Link layer ipv6 address will become fe80::1 */
|
||||||
uint8_t default_mac_address[8] PROGMEM = {0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01};
|
const uint8_t default_mac_address[8] PROGMEM = {0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01};
|
||||||
uint8_t default_server_name[16] PROGMEM = "muninn";
|
const uint8_t default_server_name[16] PROGMEM = "muninn";
|
||||||
uint8_t default_domain_name[30] PROGMEM = "localhost";
|
const uint8_t default_domain_name[30] PROGMEM = "localhost";
|
||||||
uint8_t eemem_mac_address[8] EEMEM = {0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01};
|
uint8_t eemem_mac_address[8] EEMEM = {0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01};
|
||||||
uint8_t eemem_server_name[16] EEMEM = "muninn";
|
uint8_t eemem_server_name[16] EEMEM = "muninn";
|
||||||
uint8_t eemem_domain_name[30] EEMEM = "localhost";
|
uint8_t eemem_domain_name[30] EEMEM = "localhost";
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#include <avr/eeprom.h>
|
#include <avr/eeprom.h>
|
||||||
|
|
||||||
/* Link layer ipv6 address will become fe80::ff:fe:1 */
|
/* Link layer ipv6 address will become fe80::ff:fe:1 */
|
||||||
uint8_t default_mac_address[8] PROGMEM = {0x02, 0x00, 0x00, 0xff, 0xfe, 0x00, 0x00, 0x01};
|
const uint8_t default_mac_address[8] PROGMEM = {0x02, 0x00, 0x00, 0xff, 0xfe, 0x00, 0x00, 0x01};
|
||||||
uint8_t default_server_name[16] PROGMEM = "ATMEGA128rfa1";
|
const uint8_t default_server_name[16] PROGMEM = "ATMEGA128rfa1";
|
||||||
uint8_t default_domain_name[30] PROGMEM = "localhost";
|
const uint8_t default_domain_name[30] PROGMEM = "localhost";
|
||||||
uint8_t eemem_mac_address[8] EEMEM = {0x02, 0x00, 0x00, 0xff, 0xfe, 0x00, 0x00, 0x01};
|
uint8_t eemem_mac_address[8] EEMEM = {0x02, 0x00, 0x00, 0xff, 0xfe, 0x00, 0x00, 0x01};
|
||||||
uint8_t eemem_server_name[16] EEMEM = "ATMEGA128rfa1";
|
uint8_t eemem_server_name[16] EEMEM = "ATMEGA128rfa1";
|
||||||
uint8_t eemem_domain_name[30] EEMEM = "localhost";
|
uint8_t eemem_domain_name[30] EEMEM = "localhost";
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
|
|
||||||
/* Link layer ipv6 address will become fe80::ff:fe:1 */
|
/* Link layer ipv6 address will become fe80::ff:fe:1 */
|
||||||
uint8_t default_mac_address[8] PROGMEM = {0x02, 0x00, 0x00, 0xff, 0xfe, 0x00, 0x00, 0x01};
|
const uint8_t default_mac_address[8] PROGMEM = {0x02, 0x00, 0x00, 0xff, 0xfe, 0x00, 0x00, 0x01};
|
||||||
uint8_t default_server_name[16] PROGMEM = "ATMEGA128rfa1";
|
const uint8_t default_server_name[16] PROGMEM = "ATMEGA128rfa1";
|
||||||
uint8_t default_domain_name[30] PROGMEM = "localhost";
|
const uint8_t default_domain_name[30] PROGMEM = "localhost";
|
||||||
uint8_t eemem_mac_address[8] EEMEM = {0x02, 0x00, 0x00, 0xff, 0xfe, 0x00, 0x00, 0x01};
|
uint8_t eemem_mac_address[8] EEMEM = {0x02, 0x00, 0x00, 0xff, 0xfe, 0x00, 0x00, 0x01};
|
||||||
uint8_t eemem_server_name[16] EEMEM = "ATMEGA128rfa1";
|
uint8_t eemem_server_name[16] EEMEM = "ATMEGA128rfa1";
|
||||||
uint8_t eemem_domain_name[30] EEMEM = "localhost";
|
uint8_t eemem_domain_name[30] EEMEM = "localhost";
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#include <avr/eeprom.h>
|
#include <avr/eeprom.h>
|
||||||
|
|
||||||
/* Link layer ipv6 address will become fe80::11:22ff:fe33:4455 */
|
/* Link layer ipv6 address will become fe80::11:22ff:fe33:4455 */
|
||||||
uint8_t default_mac_address[8] PROGMEM = {0x02, 0x11, 0x22, 0xff, 0xfe, 0x33, 0x44, 0x55};
|
const uint8_t default_mac_address[8] PROGMEM = {0x02, 0x11, 0x22, 0xff, 0xfe, 0x33, 0x44, 0x55};
|
||||||
uint8_t default_server_name[16] PROGMEM = "Contiki-Raven";
|
const uint8_t default_server_name[16] PROGMEM = "Contiki-Raven";
|
||||||
uint8_t default_domain_name[30] PROGMEM = "localhost";
|
const uint8_t default_domain_name[30] PROGMEM = "localhost";
|
||||||
uint8_t eemem_mac_address[8] EEMEM = {0x02, 0x11, 0x22, 0xff, 0xfe, 0x33, 0x44, 0x55};
|
uint8_t eemem_mac_address[8] EEMEM = {0x02, 0x11, 0x22, 0xff, 0xfe, 0x33, 0x44, 0x55};
|
||||||
uint8_t eemem_server_name[16] EEMEM = "Contiki-Raven";
|
uint8_t eemem_server_name[16] EEMEM = "Contiki-Raven";
|
||||||
uint8_t eemem_domain_name[30] EEMEM = "localhost";
|
uint8_t eemem_domain_name[30] EEMEM = "localhost";
|
||||||
|
@ -307,8 +307,6 @@ generate_header(void *hstr)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
char http_htm[10] PROGMEM ="text/html";
|
|
||||||
char http_css[ 9] PROGMEM ="text/css";
|
|
||||||
const char httpd_mime_htm[] HTTPD_STRING_ATTR = "text/html";
|
const char httpd_mime_htm[] HTTPD_STRING_ATTR = "text/html";
|
||||||
const char httpd_mime_css[] HTTPD_STRING_ATTR = "text/css";
|
const char httpd_mime_css[] HTTPD_STRING_ATTR = "text/css";
|
||||||
const char httpd_mime_png[] HTTPD_STRING_ATTR = "image/png";
|
const char httpd_mime_png[] HTTPD_STRING_ATTR = "image/png";
|
||||||
|
Loading…
Reference in New Issue
Block a user