picnic.c

来自「Pic Nic 16f877/18f452控制 rtl8019as 原代码」· C语言 代码 · 共 47 行

C
47
字号
/*
 * P I C N I C   3 . 0
 * http://picnic.sf.net
 *
 * PIC Embedded Web Server using a NE2000 compatible NIC or a Realtek 8019AS chip
 *
 * C Compiler: CCS C (TODO: Port to SDCC)
 *
 * This program is free software under the terms of the GNU General Public License
 * Please read the file LICENCE in the same directory for more information
 *
 * This is the main file of picnic project. Run the compiler on this file
 *
 * Based upon David Witt's PIC Web Server (http://www.davidwitt.ca)
 *
 * Vesrion 3.1
 *
 * Copyright (c) 2003-2004 Rafael V. Aroca <rva@grad.icmc.usp.br or rafaelaroca@users.sf.net>
 *
 */

//Configuration directives
//Comment the features you don't want to use
#define ENABLE_TEMPERATURE          //Enable temperature reading and showing from a One Wire Sensor Dallas ds1820
#define ENABLE_ICMP                 //Enable "Ping answers"
//#define DEBUG                       //Enable debugging messages
//#define DEBUG_IO                    //NIC IO Data

#define CLOCK_SPEED 20000000        //Crystal: 20MHz/4 -> 5Mhz -> 0.2uS each clock cycle

//Para contar o uptime
//#define COUNT_UPTIME


//Initial PIC IP Address
//#define MY_IP0  192
//#define MY_IP1  168
//#define MY_IP2  2
//#define MY_IP3  100
#define MY_IP0  10
#define MY_IP1  36
#define MY_IP2  87
#define MY_IP3  135


// Definifi珲es do LCD (n鉶 estou usando o padr鉶 da biblioteca)
// por isso 

⌨️ 快捷键说明

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