Main Page | Modules | Directories | File List | Globals | Related Pages

webport.h

Go to the documentation of this file.
00001 #ifndef _APP_WEBPORT_H_
00002 #define _APP_WEBPORT_H_
00003 
00004 /*
00005  * Copyright (C) 2002-2005 by egnite Software GmbH. All rights reserved.
00006  *
00007  * Redistribution and use in source and binary forms, with or without
00008  * modification, are permitted provided that the following conditions
00009  * are met:
00010  *
00011  * 1. Redistributions of source code must retain the above copyright
00012  *    notice, this list of conditions and the following disclaimer.
00013  * 2. Redistributions in binary form must reproduce the above copyright
00014  *    notice, this list of conditions and the following disclaimer in the
00015  *    documentation and/or other materials provided with the distribution.
00016  * 3. Neither the name of the copyright holders nor the names of
00017  *    contributors may be used to endorse or promote products derived
00018  *    from this software without specific prior written permission.
00019  *
00020  * THIS SOFTWARE IS PROVIDED BY EGNITE SOFTWARE GMBH AND CONTRIBUTORS
00021  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00022  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
00023  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL EGNITE
00024  * SOFTWARE GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
00025  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
00026  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
00027  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
00028  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00029  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
00030  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00031  * SUCH DAMAGE.
00032  *
00033  * For additional information see http://www.ethernut.de/
00034  *
00035  */
00036 
00037 /*
00038  * $Log$
00039  */
00040 
00041 /*!
00042  * \file webport.h
00043  * \brief Main header file.
00044  */
00045 
00046 /*!
00047  * \addtogroup xgWPDefs
00048  */
00049 /*@{*/
00050 
00051 /*!
00052  * \brief Device name for optional status messages.
00053  *
00054  * If defined, the RS232 port will display status messages.
00055  * Remove this definition if you intend to use the port
00056  * for other purposes.
00057  */
00058 #define WP_STATUSOUT        "uart0"
00059 
00060 #define HTTP_PORT           80  /*!< \brief TCP port number to listen to. */
00061 #define LOW_MEM_MARK        4096        /*!< \brief Delay responses if available memory falls below. */
00062 #define NUM_HTTP_THREADS    6   /*!< \brief Total number of concurrent HTTP server threads. */
00063 #define HTTP_THREAD_STACK   640 /*!< \brief Stack size given to each HTTP server thread. */
00064 
00065 #define PORT_CONTROL_CGI    "ccports.cgi"       /*!< \brief Name of the CGI to control CPU ports. */
00066 #define PORT_STATUS_CGI     "csports.cgi"       /*!< \brief Name of the CGI to display CPU ports. */
00067 #define RELAY_CONTROL_CGI   "relay.cgi" /*!< \brief Name of the CGI to control shift register outputs. */
00068 #define OPTO_STATUS_CGI     "opto.cgi"  /*!< \brief Name of the CGI to display shift register inputs. */
00069 #define CHARON_CONTROL_CGI  "ch2led.cgi"        /*!< \brief Name of the CGI to control Charon II LEDs. */
00070 #define CHARON_STATUS_CGI   "ch2switch.cgi"     /*!< \brief Name of the CGI to display Charon II switch settings. */
00071 
00072 /*@}*/
00073 
00074 /*
00075  * CGI prototypes.
00076  */
00077 
00078 __BEGIN_DECLS                   /* Function prototypes */
00079 extern int CpuPortControl(FILE * sostream, REQUEST * req);
00080 extern int CpuPortStatus(FILE * sostream, REQUEST * req);
00081 
00082 extern int SpiRelayControl(FILE * sostream, REQUEST * req);
00083 extern int SpiOptoStatus(FILE * sostream, REQUEST * req);
00084 
00085 extern int CharonLedControl(FILE * stream, REQUEST * req);
00086 extern int CharonSwitchStatus(FILE * stream, REQUEST * req);
00087 
00088 __END_DECLS
00089 #endif

© 2002-2004 by egnite Software GmbH - visit http://www.ethernut.de/