Replace WEBSERVER by AVR_WEBSERVER

This commit is contained in:
David Kopf 2011-07-24 11:43:17 -04:00
parent 506eced1bc
commit 0bb585fd60
6 changed files with 16 additions and 16 deletions

View File

@ -12,7 +12,7 @@ volatile unsigned long seconds;
long sleepseconds;
/* Set RADIOSTATS to monitor radio on time (must also be set in the radio driver) */
#if RF230BB && WEBSERVER
#if RF230BB && AVR_WEBSERVER
#define RADIOSTATS 1
#endif

View File

@ -142,7 +142,7 @@ struct timestamp {
#endif
/* See clock.c and httpd-cgi.c for RADIOSTATS code */
#if WEBSERVER
#if AVR_WEBSERVER
#define RADIOSTATS 1
#endif
#if RADIOSTATS

View File

@ -74,7 +74,7 @@
#include "raven-lcd.h"
#endif
#if WEBSERVER
#if AVR_WEBSERVER
#include "httpd-fs.h"
#include "httpd-cgi.h"
#endif
@ -125,7 +125,7 @@ FUSES ={.low = 0xe2, .high = 0x99, .extended = 0xff,};
/* Use existing EEPROM if it passes the integrity test, else reinitialize with build values */
/* Put default MAC address in EEPROM */
#if WEBSERVER
#if AVR_WEBSERVER
extern uint8_t mac_address[8]; //These are defined in httpd-fsdata.c via makefsdata.h
extern uint8_t server_name[16];
extern uint8_t domain_name[30];
@ -354,7 +354,7 @@ uint8_t i;
/*--------------------------Announce the configuration---------------------*/
#if ANNOUNCE_BOOT
#if WEBSERVER
#if AVR_WEBSERVER
uint8_t i;
char buf[80];
unsigned int size;
@ -385,7 +385,7 @@ uint8_t i;
#else
PRINTA("Online\n");
#endif /* WEBSERVER */
#endif /* AVR_WEBSERVER */
#endif /* ANNOUNCE_BOOT */
}

View File

@ -66,7 +66,7 @@
#include "contiki-lib.h"
#include "contiki-net.h"
#if WEBSERVER
#if AVR_WEBSERVER
#include "webserver-nogui.h"
#include "httpd-cgi.h"
#endif
@ -306,13 +306,13 @@ raven_gui_loop(process_event_t ev, process_data_t data)
raven_ping6();
break;
case SEND_TEMP:
#if WEBSERVER
#if AVR_WEBSERVER
/* Set temperature string in web server */
web_set_temp((char *)cmd.frame);
#endif
break;
case SEND_ADC2:
#if WEBSERVER
#if AVR_WEBSERVER
/* Set ext voltage string in web server */
web_set_voltage((char *)cmd.frame);
#endif
@ -449,7 +449,7 @@ raven_lcd_show_text(char *text) {
send_frame(REPORT_TEXT_MSG, textlen, (uint8_t *) text);
}
#if WEBSERVER
#if AVR_WEBSERVER
static void
lcd_show_servername(void) {
@ -469,7 +469,7 @@ PROCESS_THREAD(raven_lcd_process, ev, data)
PROCESS_BEGIN();
#if WEBSERVER
#if AVR_WEBSERVER
lcd_show_servername();
#endif

View File

@ -4,7 +4,7 @@ raven-webserver_src = webserver-nogui.c httpd.c http-strings.c psock.c memb.c \
raven-webserver_dsc = webserver-dsc.c
#Tell platform main routine webserver is present, for parameter display at startup
CFLAGS += -DWEBSERVER
CFLAGS += -DAVR_WEBSERVER
#$(CONTIKI)/apps/webserver/http-strings.c: $(CONTIKI)/apps/webserver/http-strings
# cd $(CONTIKI)/apps/webserver/; $(CONTIKI)/tools/makestrings $<

View File

@ -76,7 +76,7 @@
#include "raven-lcd.h"
#endif
#if WEBSERVER
#if AVR_WEBSERVER
#include "httpd-fs.h"
#include "httpd-cgi.h"
#endif
@ -125,7 +125,7 @@ FUSES ={.low = 0xe2, .high = 0x99, .extended = 0xff,};
/* Use existing EEPROM if it passes the integrity test, else reinitialize with build values */
/* Put default MAC address in EEPROM */
#if WEBSERVER
#if AVR_WEBSERVER
extern uint8_t mac_address[8]; //These are defined in httpd-fsdata.c via makefsdata.h
extern uint8_t server_name[16];
extern uint8_t domain_name[30];
@ -340,7 +340,7 @@ uint8_t i;
/*--------------------------Announce the configuration---------------------*/
#if ANNOUNCE_BOOT
#if WEBSERVER
#if AVR_WEBSERVER
uint8_t i;
char buf[80];
unsigned int size;
@ -371,7 +371,7 @@ uint8_t i;
#else
PRINTF("Online\n");
#endif /* WEBSERVER */
#endif /* AVR_WEBSERVER */
#endif /* ANNOUNCE_BOOT */
}