亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? rtl8019.lst

?? 運行環境是keil。這是一個實現嵌入式TCP/IP的程序
?? LST
?? 第 1 頁 / 共 2 頁
字號:
C51 COMPILER V7.06   RTL8019                                                               04/05/2006 12:13:02 PAGE 1   


C51 COMPILER V7.06, COMPILATION OF MODULE RTL8019
OBJECT MODULE PLACED IN .\DEBUG\rtl8019.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE RTL8019\rtl8019.c LARGE OPTIMIZE(6,SPEED) BROWSE DEBUG OBJECTEXTEND PRINT(.
                    -\DEBUG\rtl8019.lst) OBJECT(.\DEBUG\rtl8019.obj)

stmt level    source

   1          #ifndef  OS_MASTER_FILE
   2          #include    <CORE\includes.h>
   3          #endif
   4          #include <uip\uip.h>
   5          #include <global_para.h>
   6          #include "rtl8019.h"
   7          #include <serial.h>
   8          sbit   RST8019  = P3 ^ 5;
   9          
  10          /*****************************************************************************
  11          *  writeRTL( RTL_ADDRESS, RTL_DATA )
  12          *  Args:        1. unsigned char RTL_ADDRESS - register offset of RTL register
  13          *               2. unsigned char RTL_DATA - data to write to register
  14          *  Created By:  Louis Beaudoin
  15          *  Date:        September 21, 2002
  16          *  Description: Writes byte to RTL8019 register.
  17          *
  18          *  Notes - If using the External SRAM Interface, performs a write to
  19          *            address MEMORY_MAPPED_RTL8019_OFFSET + (RTL_ADDRESS<<8)
  20          *            The address is sent in the non-multiplxed upper address port so
  21          *            no latch is required.
  22          *
  23          *          If using general I/O ports, the data port is left in the input
  24          *            state with pullups enabled
  25          *
  26          *****************************************************************************/
  27          void writeRTL(unsigned char RTL_ADDRESS, unsigned char ppdata)
  28          {
  29   1        INT8U xdata *tmp;
  30   1        tmp=MEMORY_MAPPED_RTL8019_OFFSET + (((unsigned char)(RTL_ADDRESS)) << 8);
  31   1        *tmp=ppdata;
  32   1      }
  33          
  34          
  35          
  36          /*****************************************************************************
  37          *  readRTL(RTL_ADDRESS)
  38          *  Args:        unsigned char RTL_ADDRESS - register offset of RTL register
  39          *  Created By:  Louis Beaudoin
  40          *  Date:        September 21, 2002
  41          *  Description: Reads byte from RTL8019 register
  42          *
  43          *  Notes - If using the External SRAM Interface, performs a read from
  44          *            address MEMORY_MAPPED_RTL8019_OFFSET + (RTL_ADDRESS<<8)
  45          *            The address is sent in the non-multiplxed upper address port so
  46          *            no latch is required.
  47          *
  48          *          If using general I/O ports, the data port is assumed to already be
  49          *            an input, and is left as an input port when done
  50          *
  51          *****************************************************************************/
  52          unsigned char readRTL(unsigned char RTL_ADDRESS)
  53          {
  54   1        INT8U xdata *tmp;
C51 COMPILER V7.06   RTL8019                                                               04/05/2006 12:13:02 PAGE 2   

  55   1        tmp=MEMORY_MAPPED_RTL8019_OFFSET + (((unsigned char)(RTL_ADDRESS)) << 8);
  56   1        return *tmp;
  57   1      }
  58                               
  59          /*****************************************************************************
  60          *  RTL8019setupPorts(void);
  61          *
  62          *  Created By:  Louis Beaudoin
  63          *  Date:        September 21, 2002
  64          *  Description: Sets up the ports used for communication with the RTL8019 NIC
  65          *                 (data bus, address bus, read, write, and reset)
  66          *****************************************************************************/
  67          void RTL8019setupPorts(void)
  68          {
  69   1      
  70   1      
  71   1      }
  72          /*****************************************************************************
  73          *  HARD_RESET_RTL8019()
  74          *
  75          *  Created By:  Louis Beaudoin
  76          *  Date:        September 21, 2002
  77          *  Description: Simply toggles the pin that resets the NIC
  78          *****************************************************************************/
  79          void HARD_RESET_RTL8019(void)
  80          {
  81   1        INT16U COUNT;
  82   1        for(COUNT=0;COUNT<1000;COUNT++);
  83   1        RST8019=1;
  84   1      //Delay_10ms(1);
  85   1        for(COUNT=0;COUNT<5000;COUNT++);
  86   1        RST8019=0;
  87   1        for(COUNT=0;COUNT<2000;COUNT++);
  88   1      }
  89          
  90          /*****************************************************************************
  91          *  overrun(void);
  92          *
  93          *  Created By:  Louis Beaudoin
  94          *  Date:        September 21, 2002
  95          *  Description: "Canned" receive buffer overrun function originally from
  96          *                 a National Semiconductor appnote
  97          *  Notes:       This function must be called before retreiving packets from
  98          *                 the NIC if there is a buffer overrun
  99          *****************************************************************************/
 100          void overrun(void);
 101          
 102          //******************************************************************
 103          //*     REALTEK CONTROL REGISTER OFFSETS
 104          //*   All offsets in Page 0 unless otherwise specified
 105          //*       All functions accessing CR must leave CR in page 0 upon exit
 106          //******************************************************************
 107          #define CR                      0x00
 108          #define PSTART          0x01
 109          #define PAR0            0x01    // Page 1
 110          #define CR9346          0x01    // Page 3
 111          #define PSTOP           0x02
 112          #define BNRY            0x03
 113          #define TSR                     0x04
 114          #define TPSR            0x04
 115          #define TBCR0           0x05
 116          #define NCR                     0x05
C51 COMPILER V7.06   RTL8019                                                               04/05/2006 12:13:02 PAGE 3   

 117          #define TBCR1           0x06
 118          #define ISR                     0x07
 119          #define CURR            0x07   // Page 1
 120          #define RSAR0           0x08
 121          #define CRDA0           0x08
 122          #define RSAR1           0x09
 123          #define CRDA1           0x09
 124          #define RBCR0           0x0A
 125          #define RBCR1           0x0B
 126          #define RSR                     0x0C
 127          #define RCR                     0x0C
 128          #define TCR                     0x0D
 129          #define CNTR0           0x0D
 130          #define DCR                     0x0E
 131          #define CNTR1           0x0E
 132          #define IMR                     0x0F
 133          #define CNTR2           0x0F
 134          #define RDMAPORT        0x10
 135          #define RSTPORT         0x18
 136          
 137          
 138          /*****************************************************************************
 139          *
 140          * RTL ISR Register Bits
 141          *
 142          *****************************************************************************/
 143          #define ISR_RST 7
 144          #define ISR_OVW 4
 145          #define ISR_PRX 0
 146          #define ISR_RDC 6
 147          #define ISR_PTX 1
 148          
 149          
 150          /*****************************************************************************
 151          *
 152          *  RTL Register Initialization Values
 153          *
 154          *****************************************************************************/
 155          // RCR : accept broadcast packets and packets destined to this MAC
 156          //         drop short frames and receive errors
 157          #define RCR_INIT                0x04
 158          
 159          // TCR : default transmit operation - CRC is generated 
 160          #define TCR_INIT                0x00
 161          
 162          // DCR : allows send packet to be used for packet retreival
 163          //         FIFO threshold: 8-bits (works)
 164          //         8-bit transfer mode
 165          #define DCR_INIT                0x58
 166          
 167          // IMR : interrupt enabled for receive and overrun events
 168          #define IMR_INIT                0x11
 169          
 170          // buffer boundaries - transmit has 6 256-byte pages
 171          //   receive has 26 256-byte pages
 172          //   entire available packet buffer space is allocated
 173          #define TXSTART_INIT    0x40
 174          #define RXSTART_INIT    0x46
 175          #define RXSTOP_INIT     0x60
 176          
 177          
 178          
C51 COMPILER V7.06   RTL8019                                                               04/05/2006 12:13:02 PAGE 4   

 179          void RTL8019beginPacketSend(unsigned int packetLength)
 180          {
 181   1              unsigned int sendPacketLength;
 182   1              sendPacketLength = (packetLength>=ETHERNET_MIN_PACKET_LENGTH) ?
 183   1                               packetLength : ETHERNET_MIN_PACKET_LENGTH ;
 184   1              
 185   1              //start the NIC
 186   1              writeRTL(CR,0x22);
 187   1              
 188   1              // still transmitting a packet - wait for it to finish
 189   1              while( readRTL(CR) & 0x04 );
 190   1      
 191   1              //load beginning page for transmit buffer
 192   1              writeRTL(TPSR,TXSTART_INIT);
 193   1              
 194   1              //set start address for remote DMA operation
 195   1              writeRTL(RSAR0,0x00);
 196   1              writeRTL(RSAR1,0x40);
 197   1              
 198   1              //clear the packet stored interrupt
 199   1              writeRTL(ISR,(1<<ISR_PTX));
 200   1      
 201   1              //load data byte count for remote DMA
 202   1              writeRTL(RBCR0, (unsigned char)(packetLength));
 203   1              writeRTL(RBCR1, (unsigned char)(packetLength>>8));
 204   1      
 205   1              writeRTL(TBCR0, (unsigned char)(sendPacketLength));
 206   1              writeRTL(TBCR1, (unsigned char)((sendPacketLength)>>8));
 207   1              
 208   1              //do remote write operation
 209   1              writeRTL(CR,0x12);
 210   1      }
 211          
 212          void RTL8019sendPacketData(unsigned char * localBuffer, unsigned int length)
 213          {
 214   1              unsigned int i;
 215   1              
 216   1              for(i=0;i<length;i++)
 217   1                      writeRTL(RDMAPORT, localBuffer[i]);
 218   1      }
 219          
 220          
 221          
 222          void RTL8019endPacketSend(void)
 223          {
 224   1              //send the contents of the transmit buffer onto the network
 225   1              writeRTL(CR,0x24);
 226   1              
 227   1              // clear the remote DMA interrupt
 228   1              writeRTL(ISR, (1<<ISR_RDC));
 229   1      }
 230          
 231          
 232          //----THE ABOVE IS FOR SEND--------------
 233          //----THE LIST  IS FOR RECEIVE-----------
 234          
 235          // pointers to locations in the RTL8019 receive buffer
 236          static unsigned char nextPage;
 237          static unsigned int currentRetreiveAddress;
 238          
 239          // location of items in the RTL8019's page header
 240          #define  enetpacketstatus     0x00
C51 COMPILER V7.06   RTL8019                                                               04/05/2006 12:13:02 PAGE 5   

 241          #define  nextblock_ptr        0x01
 242          #define  enetpacketLenL           0x02
 243          #define  enetpacketLenH           0x03
 244          
 245          unsigned int RTL8019beginPacketRetreive(void)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国内外成人在线| 美女视频黄a大片欧美| 久久综合九色综合97婷婷| 欧美嫩在线观看| 4438x亚洲最大成人网| 欧美日韩精品欧美日韩精品| 在线观看免费成人| 欧美亚洲动漫另类| 欧美久久一区二区| 欧美一区国产二区| 日韩欧美久久久| 久久久久免费观看| 中文字幕亚洲视频| 国产精品毛片久久久久久| 曰韩精品一区二区| 人禽交欧美网站| 国产成人欧美日韩在线电影| 北条麻妃一区二区三区| 色婷婷综合久久久久中文一区二区| 日本道色综合久久| 91精品国产一区二区| 久久久久久久性| 亚洲免费视频成人| 黄色资源网久久资源365| 成人性生交大片免费| 在线免费观看视频一区| 欧美sm美女调教| 18涩涩午夜精品.www| 日韩不卡在线观看日韩不卡视频| 国产又粗又猛又爽又黄91精品| 国产成人夜色高潮福利影视| 91久久一区二区| 日韩精品一区二区三区三区免费| 中文字幕在线不卡| 蜜桃免费网站一区二区三区| 9i在线看片成人免费| 在线播放亚洲一区| 成人欧美一区二区三区小说| 久久精品国产亚洲高清剧情介绍| av一区二区三区| 日韩精品综合一本久道在线视频| 亚洲精品免费在线播放| 狠狠狠色丁香婷婷综合激情 | 亚洲一区视频在线| 久久精品久久综合| 在线视频亚洲一区| 久久一二三国产| 日本不卡高清视频| 色综合天天综合色综合av| 日韩你懂的电影在线观看| 亚洲精品国产无套在线观| 国产自产v一区二区三区c| 欧美私模裸体表演在线观看| 国产精品久久午夜夜伦鲁鲁| 韩日av一区二区| 在线综合视频播放| 亚洲综合区在线| 91在线码无精品| 欧美激情在线一区二区三区| 国产在线视频精品一区| 日韩免费一区二区| 麻豆精品新av中文字幕| 在线电影国产精品| 亚洲成av人片在线| 91国产福利在线| 亚洲欧美另类在线| 91麻豆精品在线观看| 国产精品福利在线播放| 成人动漫中文字幕| 中文文精品字幕一区二区| 国产精品亚洲午夜一区二区三区| 久久综合视频网| 国产乱子伦一区二区三区国色天香| 欧美成人精品二区三区99精品| 日韩精品视频网站| 欧美一卡二卡在线| 老司机精品视频在线| 日韩丝袜美女视频| 九九久久精品视频| 久久久亚洲精品一区二区三区| 国产伦理精品不卡| 欧美韩日一区二区三区四区| 成人免费视频播放| 亚洲精品日韩专区silk| 在线视频国内自拍亚洲视频| 五月天亚洲精品| 精品区一区二区| 国产v综合v亚洲欧| 亚洲黄色尤物视频| 欧美xxxx老人做受| 成人h版在线观看| 亚洲精品欧美激情| 日韩一区二区三区免费观看| 国产一区二区毛片| 中文字幕一区二区三区在线观看| 欧美专区在线观看一区| 蜜臀久久99精品久久久久宅男| xvideos.蜜桃一区二区| 成人福利视频网站| 日本成人中文字幕在线视频 | 中文字幕在线不卡国产视频| 在线精品亚洲一区二区不卡| 麻豆精品视频在线观看视频| 亚洲欧美日韩中文字幕一区二区三区| 在线视频综合导航| 韩国成人在线视频| 一区二区久久久| 精品国产一区久久| 色天使久久综合网天天| 九一久久久久久| 亚洲男同性恋视频| www亚洲一区| 欧美日韩中文字幕精品| 国产91精品欧美| 视频一区二区国产| 国产精品欧美极品| 日韩一区二区三区电影| 91丨国产丨九色丨pron| 激情偷乱视频一区二区三区| 一区二区高清在线| 久久久精品日韩欧美| 欧美美女视频在线观看| 99精品一区二区| 国产一区二区久久| 亚洲成人第一页| 中文字幕一区二区视频| 久久蜜桃香蕉精品一区二区三区| 欧美在线观看禁18| 成人黄色国产精品网站大全在线免费观看 | 亚洲欧美影音先锋| 亚洲精品一线二线三线 | 九九视频精品免费| 午夜精品一区在线观看| 亚洲精品国产精品乱码不99| 国产精品乱码久久久久久| 精品久久久久久无| 日韩一卡二卡三卡| 在线观看欧美日本| 色噜噜狠狠一区二区三区果冻| 成人少妇影院yyyy| 国产成人精品影视| 国产成人鲁色资源国产91色综| 免费不卡在线视频| 蜜臀av一区二区| 天天色综合天天| 日韩在线观看一区二区| 午夜激情久久久| 午夜精品成人在线| 日韩综合小视频| 日韩高清国产一区在线| 日韩va亚洲va欧美va久久| 性久久久久久久久| 奇米色777欧美一区二区| 日韩中文字幕不卡| 久久精品国产免费看久久精品| 秋霞午夜av一区二区三区 | 国产欧美一区二区精品忘忧草| 精品sm捆绑视频| 国产欧美日韩精品一区| 亚洲国产精品传媒在线观看| 国产精品福利一区| 亚洲欧美另类综合偷拍| 亚洲一区二区欧美激情| 婷婷综合五月天| 久久国产综合精品| 欧亚洲嫩模精品一区三区| 欧美自拍偷拍一区| 91精品国产aⅴ一区二区| 日韩免费性生活视频播放| 精品国产伦一区二区三区观看体验| 久久久另类综合| 亚洲视频免费看| 日日摸夜夜添夜夜添亚洲女人| 国产又粗又猛又爽又黄91精品| 成人美女在线视频| 日本久久一区二区| 日韩精品综合一本久道在线视频| 久久久777精品电影网影网 | 精品视频一区二区三区免费| 777亚洲妇女| 国产区在线观看成人精品| 亚洲女厕所小便bbb| 视频一区在线播放| 国产成人在线视频网站| 欧美午夜片在线看| wwww国产精品欧美| 一区二区三区在线播| 久久97超碰国产精品超碰| 北岛玲一区二区三区四区| 欧美另类一区二区三区| 国产日韩欧美高清在线| 亚洲成人一区在线| 成人一级视频在线观看| 欧美精品日韩综合在线| 国产精品免费视频一区| 日韩综合小视频| 色88888久久久久久影院野外 | 中文字幕一区二区三区在线观看| 性做久久久久久免费观看| 成人aaaa免费全部观看|