X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/4bd44139b1d120e73c6b8863578b0ef6996f7368..a7aaa45ec4c3f415bf6073a5cc016635d5ecf77d:/Projects/Webserver/Webserver.h diff --git a/Projects/Webserver/Webserver.h b/Projects/Webserver/Webserver.h index 8d23bc1d5..a9621e32f 100644 --- a/Projects/Webserver/Webserver.h +++ b/Projects/Webserver/Webserver.h @@ -43,27 +43,15 @@ #include #include - #include #include + #include + #include #include - #include - #include - #include - #include - - #include "Lib/WebserverApp.h" + #include "USBDeviceMode.h" + #include "USBHostMode.h" /* Macros: */ - /** IP address that the webserver should use once connected to a RNDIS device. */ - #define DEVICE_IP_ADDRESS (uint8_t[]){192, 168, 1, 10} - - /** Netmask that the webserver should once connected to a RNDIS device. */ - #define DEVICE_NETMASK (uint8_t[]){255, 255, 255, 0} - - /** IP address of the default gateway the webserver should use when routing outside the local subnet. */ - #define DEVICE_GATEWAY (uint8_t[]){192, 168, 1, 1} - /** LED mask for the library LED driver, to indicate that the USB interface is not ready. */ #define LEDMASK_USB_NOTREADY LEDS_LED1 @@ -78,16 +66,8 @@ /** LED mask for the library LED driver, to indicate that the USB interface is busy. */ #define LEDMASK_USB_BUSY LEDS_LED2 - + /* Function Prototypes: */ void SetupHardware(void); - void ProcessIncommingPacket(void); - void ManageConnections(void); - - void EVENT_USB_Host_HostError(const uint8_t ErrorCode); - void EVENT_USB_Host_DeviceAttached(void); - void EVENT_USB_Host_DeviceUnattached(void); - void EVENT_USB_Host_DeviceEnumerationFailed(const uint8_t ErrorCode, const uint8_t SubErrorCode); - void EVENT_USB_Host_DeviceEnumerationComplete(void); #endif