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

📄 main.lst

📁 ENC system full - ENC28J60
💻 LST
📖 第 1 页 / 共 3 页
字号:
   1               		.file	"main.c"
   2               	__SREG__ = 0x3f
   3               	__SP_H__ = 0x3e
   4               	__SP_L__ = 0x3d
   5               	__CCP__  = 0x34
   6               	__tmp_reg__ = 0
   7               	__zero_reg__ = 1
   8               		.global __do_copy_data
   9               		.global __do_clear_bss
  11               		.text
  12               	.Ltext0:
 109               		.data
 110               	.LC0:
 111 0000 3F3F 3F20 		.string	"??? : ip proto "
 111      3A20 6970 
 111      2070 726F 
 111      746F 2000 
 112               		.text
 114               	.global	main
 116               	main:
   1:main.c        **** /*
   2:main.c        **** ,-----------------------------------------------------------------------------------------.
   3:main.c        **** | main
   4:main.c        **** |-----------------------------------------------------------------------------------------
   5:main.c        **** | this file implements the main loop of the whole webserver project
   6:main.c        **** |
   7:main.c        **** | Author   : Simon Schulz / avr{AT}auctionant.de
   8:main.c        **** |
   9:main.c        **** | 
  10:main.c        **** |
  11:main.c        **** |-----------------------------------------------------------------------------------------
  12:main.c        **** | License:
  13:main.c        **** | This program is free software; you can redistribute it and/or modify it under
  14:main.c        **** | the terms of the GNU General Public License as published by the Free Software
  15:main.c        **** | Foundation; either version 2 of the License, or (at your option) any later
  16:main.c        **** | version.
  17:main.c        **** | This program is distributed in the hope that it will be useful, but
  18:main.c        **** |
  19:main.c        **** | WITHOUT ANY WARRANTY;
  20:main.c        **** |
  21:main.c        **** | without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  22:main.c        **** | PURPOSE. See the GNU General Public License for more details.
  23:main.c        **** |
  24:main.c        **** | You should have received a copy of the GNU General Public License along with
  25:main.c        **** | this program; if not, write to the Free Software Foundation, Inc., 51
  26:main.c        **** | Franklin St, Fifth Floor, Boston, MA 02110, USA
  27:main.c        **** |
  28:main.c        **** | http://www.gnu.de/gpl-ger.html
  29:main.c        **** `-----------------------------------------------------------------------------------------*/
  30:main.c        **** #include "main.h"
  31:main.c        **** 
  32:main.c        **** #define F_CPU F_OSC
  33:main.c        **** 
  34:main.c        **** #include <avr/io.h>
  35:main.c        **** #include <stdint.h>
  36:main.c        **** #include <stdio.h>
  37:main.c        **** #include <avr/delay.h>
  38:main.c        **** #include <stdint.h>
  39:main.c        **** #include "update/flashloader.h"
  40:main.c        **** #include <compat/deprecated.h>
  41:main.c        **** 
  42:main.c        **** 
  43:main.c        **** #include "io/dataflash.h"
  44:main.c        **** #include "io/plot.h"
  45:main.c        **** #include "io/filesystem.h"
  46:main.c        **** #include "io/lm75.h"
  47:main.c        **** #include "io/mca25.h"
  48:main.c        **** #include "io/mpf10.h"
  49:main.c        **** 
  50:main.c        **** //ACTIVATE DEBUG by editing this file:
  51:main.c        **** #include "debug.h"
  52:main.c        **** 
  53:main.c        **** #include "io/clock.h"
  54:main.c        **** #include "io/plot.h"
  55:main.c        **** 
  56:main.c        **** #include "net/mynic.h"
  57:main.c        **** #include "net/icmp.h"
  58:main.c        **** #include "net/ip.h"
  59:main.c        **** #include "net/arp.h"
  60:main.c        **** #include "net/tcp.h"
  61:main.c        **** #include "net/httpd.h"
  62:main.c        **** #include "net/http_client.h"
  63:main.c        **** #include "net/base64.h"
  64:main.c        **** #include "util/string.h"
  65:main.c        **** #include "main.h"
  66:main.c        **** 
  67:main.c        **** //interrupt:
  68:main.c        **** #include <avr/interrupt.h>
  69:main.c        **** #include <inttypes.h>
  70:main.c        **** #include <avr/signal.h>
  71:main.c        **** #define NOP() asm volatile ("nop"::);
  72:main.c        **** #include "config.h"
  73:main.c        **** 
  74:main.c        **** 
  75:main.c        **** 
  76:main.c        **** //global ethernetbuffer
  77:main.c        **** unsigned char buffer[NIC_BUFFERSIZE];
  78:main.c        **** 
  79:main.c        **** int main(void){
 117               	1
 118               	.LM0:
 119               	.LFBB1:
 120 0000 1F93      		push r17
 121 0002 CF93      		push r28
 122 0004 DF93      		push r29
 123               	/* prologue: function */
 124               	/* frame size = 0 */
  80:main.c        **** F;
  81:main.c        **** 	PORTB = 0xFF;
  82:main.c        **** 
  83:main.c        **** 	//flash status led 5 times
  84:main.c        **** 
 125               	68,0,84,.LM1-.LFBB1
 126               	.LM1:
 127 0006 8FEF      		ldi r24,lo8(-1)
 128 0008 87BB      		out 55-32,r24
  85:main.c        **** 
 129               	abn	68,0,85,.LM2-.LFBB1
 130               	.LM2:
 131 000a 84BB      		out 52-32,r24
  86:main.c        **** ile ("nop"::);
 132               	,79,.LM0-.LFBB1
 133               	.LM0:
 134 000c 88BB      	.LFBB1:
  87:main.c        **** e "main.h"
  88:main.c        **** 
  89:main.c        **** //interrupt:
  90:main.c        **** #include <avr/interrupt.h>
  91:main.c        **** #include <inttypes.h>
  92:main.c        **** #include <avr/signal.h>
  93:main.c        **** #define NOP() asm volatile ("nop"::);
  94:main.c        **** #include "config.h"
 135               	sh r17
 136               		push r28
 137 000e 0E94 0000 		push r29
  95:main.c        **** pt:
 138               	prologue: function */
 139               	/* frame size = 0 */
 141 0014 90E0      	.LM1:
 142 0016 0E94 0000 		ldi r24,lo8(-1)
  96:main.c        **** tcp.h"
 143               	55-32,r24
 145 001a 0E94 0000 	.LM2:
  97:main.c        **** lude "io/clock.h"
  98:main.c        **** #include "io/plot.h"
 146               	in:
 148 001e 0E94 0000 	.LM0:
  99:main.c        **** 75.h"
 149               	BB1:
 150               		push r17
 151 0022 0E94 0000 		push r28
 100:main.c        **** 
 101:main.c        **** #include "update/flashloader.h"
 152               	sh r29
 153               	/* prologue: function */
 154 0026 0E94 0000 	/* frame size = 0 */
 102:main.c        **** de "main.h"
 155               	tabn	68,0,84,.LM1-.LFBB1
 156               	.LM1:
 157 002a 0E94 0000 		ldi r24,lo8(-1)
 103:main.c        **** h Floor, Boston, MA 02110, USA
 158               	t 55-32,r24
 160 002e 0E94 0000 	.LM2:
 104:main.c        **** ceived a copy of the GNU General Public License along with
 161               	in:
 163 0032 0E94 0000 	.LM0:
 105:main.c        **** NTABILITY or FITNESS FOR A PARTICULAR
 164               	BB1:
 165               		push r17
 166 0036 0E94 0000 		push r28
 106:main.c        **** ion.
 167               	sh r29
 168               	/* prologue: function */
 169 003a 0E94 0000 	/* frame size = 0 */
 107:main.c        **** and/or modify it under
 170               	tabn	68,0,84,.LM1-.LFBB1
 171               	.LM1:
 172 003e 0E94 0000 		ldi r24,lo8(-1)
 108:main.c        **** t.de
 109:main.c        **** |
 173               	t 55-32,r24
 175 0042 0E94 0000 	.LM2:
 110:main.c        **** 
 176               	in:
 178 0046 0E94 0000 	.LM0:
 179 004a 80E0      	.LFBB1:

⌨️ 快捷键说明

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