⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fsdata.c

📁 Contains code for freertos port to AT91SAM7X512.Anybody can use these codes for non commercial use o
💻 C
📖 第 1 页 / 共 3 页
字号:
/*-----------------------------------------------------------------------------------------------*/
static const char data_404_html[] = { "/404.html\0"
                                      "HTTP/1.0 404 "
                                      "File not found\r\nServer: uIP/0.9 "
                                      "(http://dunkels.com/adam/uip/)\r\nContent-type: text/html"
                                      "\r\n\r\n<html><body bgcolor=\"#ECE5B6\"><center><h1>404 - "
                                      "Sorry file not found</h1></center></body></html>" };  
/*-----------------------------------------------------------------------------------------------*/ 
static const char data_control_html[] = {

        "/control.html\0"
        "HTTP/1.0 200 OK\r\n"
        "Server: uIP/0.9 (http://dunkels.com/adam/uip/)"
        "\r\nContent-type: text/html\r\n\r\n"
        
        "<html>\r\n<head>\r\n<title>CDAC - T</title>"
        "\r\n</head>\r\n<body bgcolor=\"AFC7C7\">\r\n<font face=\"arial\">\r\n"
        "<img src=\"/img/logo.png\" align=\"right\">\r\n"
        "<body><font size=+2>Single Board Controller</font>\r\n<br>\r\n"
        "<br>\r\n<br>\r\n"
        "<a href=\"/cgi/rtos\" target=\"main\">Tasks</a> |\r\n"
        "<a href=\"/cgi/tcp\" target=\"main\">Connections</a> |\r\n"
        "<a href=\"/cgi/files\" target=\"main\">Files</a> |\r\n"
        "<a href=\"/cgi/stats\" target=\"main\">Stats</a><br>\r\n"
        "</font>\r\n</body>\r\n</html>"
        }; //------->>
/*-----------------------------------------------------------------------------------------------*/
static const char data_files_footer_plain[] = {
                                  "/files_footer.plain\0"
                                  "</td></tr>"
                                  "</table>\r\n"
                                  "</body>\r\n" 
                                  "</html>\r\n"
                                  };

/*-----------------------------------------------------------------------------------------------*/
static const char data_files_header_html[] = {
  
                                        "/files_header.html\0"
                                        "HTTP/1.0 200 OK\r\n"
                                        "Server: uIP/0.9 (http://dunkels.com/adam/uip/)\r\n"
                                        "Content-type: text/html\r\n\r\n"
                                        "<html>\r\n"
                                        "<html><head><title>CDAC-T</title></body>\r\n" //--->>
                                        "<body bgcolor=\"#CFECEC\">\r\n"                      //light cyan
                                        "<center>\r\n<table width\r\"600\" border=\"0\">"
                                        "\n\r"
                                       
                                  };
/*-----------------------------------------------------------------------------------------------*/ 
static const char data_stats_footer_plain[] = {
                                          "/stats_footer.plain\0"
                                          "</td></tr></table>\r\n"
                                          "</body>\r\n"
                                          "</html>\r\n"
                                        };
/*-----------------------------------------------------------------------------------------------*/                        
static const char data_stats_header_html[] = {
                              "/stats_header.html\0"
                              "HTTP/1.0 200 OK\r\n"
                              "Server: uIP/0.9 (http://dunkels.com/adam/uip/)\r\n"
                              "Content-type: text/html\r\n\r\n"
                
                                //---------------------------------------------- 	
                "Free RTOS version 5.1.0\r\n"
                "<br><body bgcolor=\"#CFECEC\">\r\n"
  	     //---------------------------------------- //Code status bar ....
                "<caption>A/I 1</caption>"
                "<table bgcolor=\"#ff0003\" border=\"5\" cellpadding=\"0\" cellspacing=\"0\" width=\"255\">\r\n"
		"<tr>\r\n"
		"<td>\r\n"
        	"<table width=\"200\" border=\"0\" cellpadding=\"0\" cellspacing=\"0=\">\r\n" 
 		"<tr><td bgcolor==\"#00ff00\">&nbsp;</td></tr>\r\n"
		"</table>\r\n"
		"</td>\r\n"
		"</tr>\r\n"
		"</table>\r\n"
		"<table border=\"0\" width=\"500\">\r\n"
		"<tr>\r\n"
        	"</tr>\r\n"
		"</table>\r\n"    
	    //----------------------------------------
                "<caption>A/I 2</caption>"
                "<table bgcolor=\"#ff0003\" border=\"5\" cellpadding=\"0\" cellspacing=\"0\" width=\"255\">\r\n"
		"<tr>\r\n"
		"<td>\r\n"
        	"<table width=\"000\" border=\"0\" cellpadding=\"0\" cellspacing=\"0=\">\r\n" 
 		"<tr><td bgcolor==\"#00ff00\">&nbsp;</td></tr>\r\n"
		"</table>\r\n"
		"</td>\r\n"
		"</tr>\r\n"
		"</table>\r\n"
		"<table border=\"0\" width=\"500\">\r\n"
		"<tr>\r\n"
        	"</tr>\r\n"
		"</table>\r\n"  
            //----------------------------------------
                            //--------------------------
                               "<script type=\"text/JavaScript\">\r\n"
                               "<!--\nfunction timedRefresh(timeoutPeriod) {\nsetTimeout(\"location.reload(true);\",timeoutPeriod);\n}\r\n"
                               "</script>\r\n"
                               "<body onload=\"JavaScript:timedRefresh(3000);\">\r\n"
                            //--------------------------
                                 
                 };
/*-----------------------------------------------------------------------------------------------*/
static const char data_tcp_footer_plain[] = {
                                        "/tcp_footer.plain\0\r\n"
                                        "</td></tr></table>\r\n"
                                        "</center>\r\n"
                                        "</body>\r\n"
                                        "</html>"
                                   };
/*-----------------------------------------------------------------------------------------------*/
static const char data_tcp_header_html[] = {
                                            "/tcp_header.html\0"
                                            "HTTP/1.0 200 OK\r\n"
                                            "Server: uIP/0.9 (http://dunkels.com/adam/uip/)\r\n"
                                            "Content-type: text/html\r\n"
                                            "\r\n"
                                            "<html>\r\n"
                                            "<body bgcolor=\"#CFECEC\">\r\n"
                                            "<center>\r\n"
                                            "<table width=\"600\" border=\"0\">\r\n"
                                            "<tr><th>Remote</th><th>State</th><th>Retransmissions</th><th>Timer</th><th>Flags</th></tr>\r\n"
                                            "\r\n"
                                           
                              };
/*-----------------------------------------------------------------------------------------------*/
static const char data_img_logo_png[] = {
  
  
/*|------------data_img_logo_png[]-------------- -----|
/img/logo.png HTTP/1.0 200 OK
Server: uIP/0.9 (http://dunkels.com/adam/uip/)
Content-type: image/png

[* * * * rem 8663 bytes of image ]

|-----------------------------------------------------|
*/
	/* /img/logo.png */
	0x2f, 0x69, 0x6d, 0x67, 0x2f, 0x6c, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x6e, 0x67, 0,
	0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x32, 
	0x30, 0x30, 0x20, 0x4f, 0x4b, 0xd, 0xa, 0x53, 0x65, 0x72, 
	0x76, 0x65, 0x72, 0x3a, 0x20, 0x75, 0x49, 0x50, 0x2f, 0x30, 
	0x2e, 0x39, 0x20, 0x28, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 
	0x2f, 0x64, 0x75, 0x6e, 0x6b, 0x65, 0x6c, 0x73, 0x2e, 0x63, 
	0x6f, 0x6d, 0x2f, 0x61, 0x64, 0x61, 0x6d, 0x2f, 0x75, 0x69, 
	0x70, 0x2f, 0x29, 0xd, 0xa, 0x43, 0x6f, 0x6e, 0x74, 0x65, 
	0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x69, 
	0x6d, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x6e, 0x67, 0xd, 0xa, 
	0xd, 0xa,
0x89,0x50,0x4E,0x47,0x0D,0x0A,0x1A,0x0A,0x00,0x00,0x00,0x0D,0x49,0x48,0x44,0x52,0x00,
0x00,0x00,0x63,0x00,0x00,0x00,0x3B,0x08,0x02,0x00,0x00,0x00,0xE0,0x84,0xA3,0x58,0x00,
0x00,0x00,0x04,0x67,0x41,0x4D,0x41,0x00,0x00,0xB1,0x8F,0x0B,0xFC,0x61,0x05,0x00,0x00,
0x0D,0x78,0x49,0x44,0x41,0x54,0x78,0x5E,0xED,0x5C,0x3D,0x6B,0x23,0xBD,0x16,0xDE,0x9F,
0x91,0xD6,0x65,0x4A,0x97,0x6E,0x53,0xBA,0x4C,0xE9,0x36,0x65,0xD8,0xE2,0x62,0x5C,0x98,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -