#include <avr/power.h>\r
\r
#include <LUFA/Version.h>\r
- #include <LUFA/Drivers/Misc/TerminalCodes.h>\r
#include <LUFA/Drivers/Board/LEDs.h>\r
#include <LUFA/Drivers/USB/USB.h>\r
#include <LUFA/Drivers/USB/Class/RNDIS.h>\r
#include <timer.h>\r
\r
#include "Lib/WebserverApp.h"\r
+ #include "Lib/DHCPApp.h"\r
\r
/* Macros: */\r
- /** IP address that the webserver should use once connected to a RNDIS device. */\r
+ /** IP address that the webserver should use once connected to a RNDIS device (when DHCP is disabled). */\r
#define DEVICE_IP_ADDRESS (uint8_t[]){192, 168, 1, 10}\r
\r
- /** Netmask that the webserver should once connected to a RNDIS device. */\r
+ /** Netmask that the webserver should once connected to a RNDIS device (when DHCP is disabled). */\r
#define DEVICE_NETMASK (uint8_t[]){255, 255, 255, 0}\r
\r
- /** IP address of the default gateway the webserver should use when routing outside the local subnet. */\r
+ /** IP address of the default gateway the webserver should use when routing outside the local subnet\r
+ * (when DHCP is disabled).\r
+ */\r
#define DEVICE_GATEWAY (uint8_t[]){192, 168, 1, 1}\r
\r
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */\r
\r
/** LED mask for the library LED driver, to indicate that the USB interface is busy. */\r
#define LEDMASK_USB_BUSY LEDS_LED2\r
+ \r
+ /* External Variables: */\r
+ extern struct uip_eth_addr MACAddress;\r
\r
/* Function Prototypes: */\r
void SetupHardware(void);\r